Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.0.9 #13

Open
wants to merge 40 commits into
base: prod
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e3caaa3
feat: Add russian support
Apr 3, 2024
f361692
docs: Change app version
Apr 15, 2024
1bab822
Add Daily measurement starting the day
Apr 15, 2024
4b81ff0
Change fro getMilliseconds to getTime
Apr 15, 2024
e5e0b66
Use getDate instead of getDay to check if the last measurement was do…
Apr 15, 2024
a2f3637
Add french translation
Apr 29, 2024
8796a0f
Add featureflag
May 1, 2024
56f1bc5
Save version
May 2, 2024
cbf7886
Add test mode
May 6, 2024
a6b30ab
Add feature flags
May 7, 2024
d4ca0cb
fix settings get features feature
Jun 10, 2024
f55f3b8
add note to measurement
Jun 17, 2024
7bc736a
retry speed test if connection is not available
Jul 11, 2024
7cc95aa
Merge branch 'release/1.0.10' into release/1.0.9
Jul 11, 2024
05074f9
Add measurementOfReconnect if a measure fail for lack of internet
Jul 16, 2024
9d6aa0c
fix typo
Jul 29, 2024
fe392fd
Fix Notes bug
Aug 1, 2024
a058814
remove console logs
Aug 1, 2024
a13dd46
set next measurement depending of previous one
Aug 5, 2024
19b654f
Add make option
Aug 5, 2024
3f3250d
upgrade version of the app
Aug 5, 2024
e6dfcb9
upgrade to ndt7
vipulbhavsar94 Sep 8, 2024
688453b
Add build app command
Sep 10, 2024
06dbfff
Set sentry dsn
Sep 11, 2024
17799db
Broadcast measurement status and data
Sep 11, 2024
a892a87
Fix start Test page to show test status
Sep 11, 2024
b56361e
parse ndt7 values to the mesurement schema
Sep 11, 2024
c8b6b1c
ad key to translation file
Sep 11, 2024
14b0b07
Merge branch 'ndt7' into release/1.0.9
Sep 11, 2024
545b7dd
feat: Update data usage in UploadService and MeasurementClientService
Sep 16, 2024
8172bb0
chore: Update package and app version to 1.0.9
Sep 17, 2024
cc13eca
set windows size for dev and not dev env
Sep 17, 2024
fb05ed4
Self hosting changes (#14)
adityaa-nagarro Sep 23, 2024
898f939
feat: Fix translation issue in search country page
Sep 23, 2024
e6a3072
refactor: Update UUID retrieval in MeasurementClientService
Sep 26, 2024
70e0b16
Update environment configuration and header component
Sep 26, 2024
5359291
Add build:electron-publish script and fix failover in access network …
Victor1Ja Oct 14, 2024
97a18c0
Fix schedular and refactor (#17)
vipulbhavsar94 Oct 14, 2024
777d145
refactor: Move upload section in starttest page HTML
Oct 14, 2024
3186eb8
Update search school page to search by school ID and country code
Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Semaphore:

1. [ ] Change from the default daily semaphore to custom semaphore, setting by default two semaphores per day. This will allow us to have better control over the semaphore and to be able to set the semaphore to be used in the future.
Ideally with be good to use a priority or set to store the semaphores and remove any semaphore that was used or is in the past.

5 changes: 3 additions & 2 deletions electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unicef-pdca",
"version": "1.0.8",
"version": "1.0.9",
"description": "Unicef Project Connect Daily Check App",
"author": {
"name": "Unicef"
Expand All @@ -18,7 +18,8 @@
"electron:start-live": "node ./live-runner.js",
"electron:start": "npm run build && electron --inspect=5858 ./",
"electron:pack": "npm run build && electron-builder build --dir -c ./electron-builder.config.json",
"electron:make": "npm run build && electron-builder build -c ./electron-builder.config.json -p always --x64 --ia32"
"electron:make": "npm run build && electron-builder build -c ./electron-builder.config.json -p always --x64 --ia32",
"electron:make-not-publish": "npm run build && electron-builder build -c ./electron-builder.config.json always --x64 --ia32"
},
"dependencies": {
"@capacitor-community/electron": "^4.1.0",
Expand Down
45 changes: 21 additions & 24 deletions electron/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ unhandled({
}
});

Sentry.init({ dsn: "https://9a70105db9fb49e3ab0a9bdbd585ce8a@o4504957350445056.ingest.sentry.io/4504957357981696" });

//New ICTD Sentry
//Sentry.init({dsn: 'https://[email protected]/47'});
Sentry.init({ dsn: "https://[email protected]/47" });

let isQuiting = false;
let mainWindow = null;
Expand Down Expand Up @@ -131,9 +128,9 @@ if (!gotTheLock) {
if (!isDownloaded) {
isDownloaded = true;
try {
// autoUpdater.quitAndInstall(true, true)
// autoUpdater.quitAndInstall(true, true)

//for auto update comment the below codes, and uncomment the above line of code
//for auto update comment the below codes, and uncomment the above line of code


const dialogOpts = {
Expand All @@ -148,7 +145,7 @@ if (!gotTheLock) {
})


//throw new Error("opps there is unexpected error")
//throw new Error("opps there is unexpected error")
} catch (error) {
console.error('Error during update installation:', error);
const dialogOpts = {
Expand All @@ -168,24 +165,24 @@ if (!gotTheLock) {


});
/*
autoUpdater.on('error', (error) => {
console.error('Update Error:', error);
/*
autoUpdater.on('error', (error) => {
console.error('Update Error:', error);

const dialogOpts = {
type: 'info',
buttons: ['Restart / Reinicie / Перезапустить', 'Later / Después / Позже'],
title: 'PCDC Update',

message: `A new version of PCDC has been downloaded. Restart the application to apply the updates.\n\nUna nueva version de PCDC ha sido descargada. Reinicie la aplicación para aplicar los cambios.\n\nБыла загружена новая версия PCDC. Перезапустите приложение, чтобы применить обновления.`
};
dialog.showMessageBox(dialogOpts).then((returnValue) => {
if (returnValue.response === 0) autoUpdater.quitAndInstall(false, true)
})

const dialogOpts = {
type: 'info',
buttons: ['Restart / Reinicie / Перезапустить', 'Later / Después / Позже'],
title: 'PCDC Update',

message: `A new version of PCDC has been downloaded. Restart the application to apply the updates.\n\nUna nueva version de PCDC ha sido descargada. Reinicie la aplicación para aplicar los cambios.\n\nБыла загружена новая версия PCDC. Перезапустите приложение, чтобы применить обновления.`
};
dialog.showMessageBox(dialogOpts).then((returnValue) => {
if (returnValue.response === 0) autoUpdater.quitAndInstall(false, true)
})

});

*/
});

*/



Expand Down
34 changes: 18 additions & 16 deletions electron/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ export class ElectronCapacitorApp {
private TrayIcon: Tray | null = null;
private CapacitorFileConfig: CapacitorElectronConfig;
private TrayMenuTemplate: (MenuItem | MenuItemConstructorOptions)[] = [
new MenuItem({ label: 'Open', click: function(){
this.MainWindow.show();
}
new MenuItem({
label: 'Open', click: function () {
this.MainWindow.show();
}
}),
new MenuItem({ label: 'Quit App', click: function(){
new MenuItem({
label: 'Quit App', click: function () {
isQuiting = true;
app.quit();
this.MainWindow.close();
}
}
}),
];
private AppMenuBarMenuTemplate: (MenuItem | MenuItemConstructorOptions)[] = [
Expand Down Expand Up @@ -93,7 +95,7 @@ export class ElectronCapacitorApp {
scheme: this.customScheme,
});
}


// Helper function to load in the app.
private async loadMainWindow(thisRef: any) {
Expand Down Expand Up @@ -130,8 +132,8 @@ export class ElectronCapacitorApp {
// titleBarOverlay: true,
maximizable: false,
minimizable: false,
resizable: false,
transparent: true,
resizable: true,
transparent: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: true,
Expand All @@ -140,6 +142,7 @@ export class ElectronCapacitorApp {
preload: preloadPath,
},
});
this.MainWindow.setSize(376, 550);
this.mainWindowState.manage(this.MainWindow);

if (this.CapacitorFileConfig.backgroundColor) {
Expand All @@ -152,8 +155,6 @@ export class ElectronCapacitorApp {
this.SplashScreen.getSplashWindow().close();
}
});


// When the tray icon is enabled, setup the options.
if (this.CapacitorFileConfig.electron?.trayIconAndMenuEnabled) {
this.TrayIcon = new Tray(icon);
Expand Down Expand Up @@ -239,6 +240,7 @@ export class ElectronCapacitorApp {
setTimeout(() => {
if (this.CapacitorFileConfig.electron?.electronIsDev) {
this.MainWindow.webContents.openDevTools();
this.MainWindow.setSize(800, 600);
}
CapElectronEventEmitter.emit('CAPELECTRON_DeeplinkListenerInitialized', '');
}, 400);
Expand All @@ -254,7 +256,7 @@ export class ElectronCapacitorApp {
this.MainWindow.restore();
} else {
this.MainWindow.show();
}
}
this.MainWindow.focus();
}
});
Expand All @@ -266,16 +268,16 @@ export class ElectronCapacitorApp {
});

measureAppAutoLuncher.enable();
measureAppAutoLuncher.isEnabled().then(function(isEnabled){
if(isEnabled){
return;
measureAppAutoLuncher.isEnabled().then(function (isEnabled) {
if (isEnabled) {
return;
}
measureAppAutoLuncher.enable();
})
.catch(function(err){
.catch(function (err) {
// handle error
console.log(err)
});
});
// End of Auto lunching code

}
Expand Down
Loading