Skip to content

Commit

Permalink
(fake) Release v2.5.0 - to main (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarski authored Oct 24, 2023
2 parents 2024350 + cc076a4 commit 282f395
Show file tree
Hide file tree
Showing 141 changed files with 1,005 additions and 1,281 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ JIRA Reference: [CP-XXX]

### :memo: Description ️

-
-

### :muscle: Checklist before requesting a review - nice to have

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nexus-pre-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ jobs:
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
export ENVIVORMENT_CATALOG_NAME=pre-production
export APP_VERSION=`echo -n v && cat packages/app/package.json | jq -r .version`
export APP_VERSION=`cat packages/app/package.json | jq -r .version`
echo "GITTAG=$APP_VERSION" >> $GITHUB_ENV
export GITTAG="$APP_VERSION"
curl -v -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./packages/app/release/Mudita-Center.exe https://nexus.mudita.com/repository/mudita-center/releases/$ENVIVORMENT_CATALOG_NAME/$APP_VERSION/Mudita-Center.exe
curl -v -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./packages/app/release/Mudita-Center.AppImage https://nexus.mudita.com/repository/mudita-center/releases/$ENVIVORMENT_CATALOG_NAME/$APP_VERSION/Mudita-Center.AppImage
curl -v -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./packages/app/release/Mudita-Center.dmg https://nexus.mudita.com/repository/mudita-center/releases/$ENVIVORMENT_CATALOG_NAME/$APP_VERSION/Mudita-Center.dmg
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mudita/mudita-center-app",
"version": "2.2.3",
"version": "2.5.0",
"description": "Mudita Center",
"main": "./dist/main.js",
"productName": "Mudita Center",
Expand Down
8 changes: 0 additions & 8 deletions packages/app/src/__deprecated__/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ import registerCopyFileListener from "App/__deprecated__/main/functions/register
import registerWriteGzipListener from "App/__deprecated__/main/functions/register-write-gzip-listener"
import registerRmdirListener from "App/__deprecated__/main/functions/register-rmdir-listener"
import registerArchiveFilesListener from "App/__deprecated__/main/functions/register-archive-files-listener"
import registerReadFileListener from "App/file-system/listeners/read-file.listener"
import createDownloadListenerRegistrar from "App/__deprecated__/main/functions/create-download-listener-registrar"
import registerEncryptFileListener from "App/file-system/listeners/encrypt-file.listener"
import registerDecryptFileListener from "App/file-system/listeners/decrypt-file.listener"
import registerUnlinkFileListener from "App/file-system/listeners/unlink-file.listener"
import {
registerDownloadHelpHandler,
removeDownloadHelpHandler,
Expand Down Expand Up @@ -196,10 +192,6 @@ const createWindow = async () => {
registerRmdirListener()
registerWriteGzipListener()
registerArchiveFilesListener()
registerEncryptFileListener()
registerReadFileListener()
registerUnlinkFileListener()
registerDecryptFileListener()
registerMetadataAllGetValueListener()
registerMetadataGetValueListener()
registerMetadataSetValueListener()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,9 @@
"module.overview.systemDownloadAction": "Download now",
"module.overview.systemLastUpdate": "Updated: {date}",
"module.overview.systemUpdateAction": "Update now",
"module.overview.systemUpdateAvailable": "Update is available",
"module.overview.systemUpdateCheckFailed": "Checking for update failed",
"module.overview.systemUpdateDownloaded": "Update is available",
"module.overview.systemUpdateAvailable": "Version {version} is available",
"module.overview.systemUpdateCheckFailed": "Checking for updates failed",
"module.overview.systemUpdateDownloaded": "Install now",
"module.overview.systemUpdateUpToDate": "You’re up to date.",
"module.overview.systemVersion": "MuditaOS version",
"module.overview.systemVersionTitle": "Current version:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,12 @@
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
*/

export const ControllerPrefix = "analytic-data-tracker"

export enum IpcAnalyticDataTrackerEvent {
Track = "track",
TrackUnique = "track-unique",
TrackWithoutDeviceCheck = "track-without-device-check",
TrackUniqueWithoutDeviceCheck = "track-unique-without-device-check",
ToggleTracking = "toggle-tracking",
SetExternalUsageDevice = "set-external-usage-device",
SetVisitorMetadata = "set-visitor-metadata",
}

export enum IpcAnalyticDataTrackerRequest {
Track = "analytic-data-tracker-track",
TrackUnique = "analytic-data-tracker-track-unique",
TrackWithoutDeviceCheck = "analytic-data-tracker-track-without-device-check",
TrackUniqueWithoutDeviceCheck = "analytic-data-tracker-track-unique-without-device-check",
ToggleTracking = "analytic-data-tracker-toggle-tracking",
SetExternalUsageDevice = "analytic-data-tracker-set-external-usage-device",
SetVisitorMetadata = "analytic-data-tracker-set-visitor-metadata",
Track = "analytic_track",
TrackUnique = "analytic_track-unique",
TrackWithoutDeviceCheck = "analytic_track-without-device-check",
TrackUniqueWithoutDeviceCheck = "analytic_track-unique-without-device-check",
ToggleTracking = "analytic_toggle-tracking",
SetExternalUsageDevice = "analytic_set-external-usage-device",
SetVisitorMetadata = "analytic_set-visitor-metadata",
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
*/

import { Controller, IpcEvent } from "App/core/decorators"
import {
ControllerPrefix,
IpcAnalyticDataTrackerEvent,
} from "App/analytic-data-tracker/constants"
import { IpcEvent } from "App/core/decorators"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"
import {
AnalyticDataTrackerClass,
VisitorMetadata,
} from "App/analytic-data-tracker/services"
import { TrackEvent } from "App/analytic-data-tracker/types"

@Controller(ControllerPrefix)
export class AnalyticDataTrackerController {
constructor(private tracker: AnalyticDataTrackerClass) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"

export const setExternalUsageDeviceRequest = async (
flag: boolean
): Promise<void> => {
return ipcRenderer.callMain(
IpcAnalyticDataTrackerRequest.SetExternalUsageDevice,
IpcAnalyticDataTrackerEvent.SetExternalUsageDevice,
flag
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"
import { VisitorMetadata } from "App/analytic-data-tracker/services"

export const setVisitorMetadataRequest = async (
visitorMetadata: VisitorMetadata
): Promise<void> => {
return ipcRenderer.callMain(
IpcAnalyticDataTrackerRequest.SetVisitorMetadata,
IpcAnalyticDataTrackerEvent.SetVisitorMetadata,
visitorMetadata
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"

export const toggleTrackingRequest = async (flag: boolean): Promise<void> => {
return ipcRenderer.callMain(IpcAnalyticDataTrackerRequest.ToggleTracking, flag)
return ipcRenderer.callMain(IpcAnalyticDataTrackerEvent.ToggleTracking, flag)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"
import { TrackEvent } from "App/analytic-data-tracker/types"

export const trackUniqueWithoutDeviceCheckRequest = async (
event: TrackEvent
): Promise<void> => {
return ipcRenderer.callMain(
IpcAnalyticDataTrackerRequest.TrackUniqueWithoutDeviceCheck,
IpcAnalyticDataTrackerEvent.TrackUniqueWithoutDeviceCheck,
event
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"
import { TrackEvent } from "App/analytic-data-tracker/types"

export const trackUniqueRequest = async (event: TrackEvent): Promise<void> => {
return ipcRenderer.callMain(IpcAnalyticDataTrackerRequest.TrackUnique, event)
return ipcRenderer.callMain(IpcAnalyticDataTrackerEvent.TrackUnique, event)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"
import { TrackEvent } from "App/analytic-data-tracker/types"

export const trackWithoutDeviceCheckRequest = async (
event: TrackEvent
): Promise<void> => {
return ipcRenderer.callMain(
IpcAnalyticDataTrackerRequest.TrackWithoutDeviceCheck,
IpcAnalyticDataTrackerEvent.TrackWithoutDeviceCheck,
event
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcAnalyticDataTrackerRequest } from "App/analytic-data-tracker/constants"
import { IpcAnalyticDataTrackerEvent } from "App/analytic-data-tracker/constants"
import { TrackEvent } from "App/analytic-data-tracker/types"

export const trackRequest = async (event: TrackEvent): Promise<void> => {
return ipcRenderer.callMain(IpcAnalyticDataTrackerRequest.Track, event)
return ipcRenderer.callMain(IpcAnalyticDataTrackerEvent.Track, event)
}
12 changes: 3 additions & 9 deletions packages/app/src/backup/constants/controller.constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
export const ControllerPrefix = "backup"

export enum IpcBackupEvent {
LoadBackups = "load-backups",
CreateBackup = "create-backup",
RestoreBackup = "restore-backup",
}

export enum IpcBackupRequest {
LoadBackups = "backup-load-backups",
CreateBackup = "backup-create-backup",
RestoreBackup = "backup-restore-backup",
LoadBackups = "backup_load-backups",
CreateBackup = "backup_create-backup",
RestoreBackup = "backup_restore-backup",
}
9 changes: 2 additions & 7 deletions packages/app/src/backup/controllers/backup.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
*/

import { Controller, IpcEvent } from "App/core/decorators"
import { IpcEvent } from "App/core/decorators"
import { ResultObject } from "App/core/builder"
import { Backup } from "App/backup/dto"
import {
BackupError,
ControllerPrefix,
IpcBackupEvent,
} from "App/backup/constants"
import { BackupError, IpcBackupEvent } from "App/backup/constants"
import {
BackupCreateService,
BackupRestoreService,
LoadBackupService,
} from "App/backup/services"
import { CreateDeviceBackup, RestoreDeviceBackup } from "App/backup/types"

@Controller(ControllerPrefix)
export class BackupController {
constructor(
private backupCreateService: BackupCreateService,
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/backup/requests/create-backup.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

import { ipcRenderer } from "electron-better-ipc"
import { ResultObject } from "App/core/builder"
import { IpcBackupRequest } from "App/backup/constants"
import { IpcBackupEvent } from "App/backup/constants"
import { CreateDeviceBackup } from "App/backup/types"

export const createBackupRequest = async (
options: CreateDeviceBackup
): Promise<ResultObject<string[]>> => {
return ipcRenderer.callMain(IpcBackupRequest.CreateBackup, options)
return ipcRenderer.callMain(IpcBackupEvent.CreateBackup, options)
}
4 changes: 2 additions & 2 deletions packages/app/src/backup/requests/load-backups.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

import { ipcRenderer } from "electron-better-ipc"
import { ResultObject } from "App/core/builder"
import { IpcBackupRequest } from "App/backup/constants"
import { IpcBackupEvent } from "App/backup/constants"
import { Backup } from "App/backup/dto"

export const loadBackupsRequest = async (
options: string
): Promise<ResultObject<Backup[]>> => {
return ipcRenderer.callMain(IpcBackupRequest.LoadBackups, options)
return ipcRenderer.callMain(IpcBackupEvent.LoadBackups, options)
}
4 changes: 2 additions & 2 deletions packages/app/src/backup/requests/restore-backup.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

import { ipcRenderer } from "electron-better-ipc"
import { ResultObject } from "App/core/builder"
import { BackupError, IpcBackupRequest } from "App/backup/constants"
import { BackupError, IpcBackupEvent } from "App/backup/constants"
import { RestoreDeviceBackup } from "App/backup/types"

export const restoreBackupRequest = async (
options: RestoreDeviceBackup
): Promise<ResultObject<boolean, BackupError>> => {
return ipcRenderer.callMain(IpcBackupRequest.RestoreBackup, options)
return ipcRenderer.callMain(IpcBackupEvent.RestoreBackup, options)
}
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const ContactDetails: FunctionComponent<ContactDetailsProps> = ({
<Input
type={"text"}
data-testid={ContactDetailsTestIds.PrimaryPhoneInput}
value={contact.primaryPhoneNumber}
value={contact.primaryPhoneNumber ?? ""}
label={intl.formatMessage(messages.noPrimaryNumber)}
// TODO: Implement additional toggles for this feature
trailingIcons={
Expand All @@ -229,7 +229,7 @@ const ContactDetails: FunctionComponent<ContactDetailsProps> = ({
<Input
type={"text"}
data-testid={ContactDetailsTestIds.SecondaryPhoneInput}
value={contact.secondaryPhoneNumber}
value={contact.secondaryPhoneNumber ?? ""}
label={intl.formatMessage(messages.noSecondNumber)}
// TODO: Implement additional toggles for this feature
trailingIcons={
Expand Down
14 changes: 3 additions & 11 deletions packages/app/src/contacts/constants/controller.constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,8 @@
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
*/

export const ControllerPrefix = "contact"

export enum IpcContactEvent {
CreateContact = "create-contact",
EditContact = "edit-contact",
DeleteContacts = "delete-contacts",
}

export enum IpcContactRequest {
CreateContact = "contact-create-contact",
EditContact = "contact-edit-contact",
DeleteContacts = "contact-delete-contacts",
CreateContact = "contact_create-contact",
EditContact = "contact_edit-contact",
DeleteContacts = "contact_delete-contacts",
}
5 changes: 2 additions & 3 deletions packages/app/src/contacts/controllers/contact.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
*/

import { Controller, IpcEvent } from "App/core/decorators"
import { IpcEvent } from "App/core/decorators"
import { ContactService } from "App/contacts/services"
import { RequestResponse } from "App/core/types/request-response.interface"
import { ControllerPrefix, IpcContactEvent } from "App/contacts/constants"
import { IpcContactEvent } from "App/contacts/constants"
import { Contact, ContactID } from "App/contacts/reducers"

@Controller(ControllerPrefix)
export class ContactController {
constructor(private contactService: ContactService) {}

Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/contacts/requests/create-contact.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcContactRequest } from "App/contacts/constants"
import { IpcContactEvent } from "App/contacts/constants"
import { Contact, NewContact } from "App/contacts/reducers/contacts.interface"
import { RequestResponse } from "App/core/types/request-response.interface"

export const createContactRequest = async (
newContact: NewContact
): Promise<RequestResponse<Contact>> => {
return ipcRenderer.callMain(IpcContactRequest.CreateContact, newContact)
return ipcRenderer.callMain(IpcContactEvent.CreateContact, newContact)
}
7 changes: 2 additions & 5 deletions packages/app/src/contacts/requests/delete-contacts.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
*/

import { ipcRenderer } from "electron-better-ipc"
import { IpcContactRequest } from "App/contacts/constants"
import { IpcContactEvent } from "App/contacts/constants"
import { ContactID } from "App/contacts/reducers/contacts.interface"
import { RequestResponse } from "App/core/types/request-response.interface"

export const deleteContactsRequest = async (
contactIds: ContactID[]
): Promise<RequestResponse<ContactID[]>> => {
return await ipcRenderer.callMain(
IpcContactRequest.DeleteContacts,
contactIds
)
return await ipcRenderer.callMain(IpcContactEvent.DeleteContacts, contactIds)
}
Loading

0 comments on commit 282f395

Please sign in to comment.