From 7ff7a8bbf20ee3012a31424968ca167c4bb1a19e Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Mon, 8 Dec 2025 12:55:22 +0100 Subject: [PATCH] fix: resolve build errors and add missing electron IPC - Replace deprecated reminderId with remindAt in templates - Add fileSyncListFiles to electron preload - Fix Typia type narrowing in validate-state.service - Fix jasmine matcher type in hydrator spec --- electron/preload.ts | 2 ++ .../operation-log/processing/validate-state.service.ts | 2 +- .../operation-log/store/operation-log-hydrator.service.spec.ts | 2 +- src/app/features/boards/board-panel/board-panel.component.html | 2 +- .../schedule/schedule-event/schedule-event.component.html | 2 +- src/app/features/tasks/task/task.component.html | 2 +- .../scheduled-list-page/scheduled-list-page.component.html | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/electron/preload.ts b/electron/preload.ts index 17a305aa8..45404b629 100644 --- a/electron/preload.ts +++ b/electron/preload.ts @@ -45,6 +45,8 @@ const ea: ElectronAPI = { dataStr: string | undefined; }>, fileSyncRemove: (filePath) => _invoke('FILE_SYNC_REMOVE', filePath) as Promise, + fileSyncListFiles: ({ dirPath }) => + _invoke('FILE_SYNC_LIST_FILES', dirPath) as Promise, checkDirExists: (dirPath) => _invoke('CHECK_DIR_EXISTS', dirPath) as Promise, diff --git a/src/app/core/persistence/operation-log/processing/validate-state.service.ts b/src/app/core/persistence/operation-log/processing/validate-state.service.ts index 9ca7f16a7..8276f53aa 100644 --- a/src/app/core/persistence/operation-log/processing/validate-state.service.ts +++ b/src/app/core/persistence/operation-log/processing/validate-state.service.ts @@ -197,7 +197,7 @@ export class ValidateStateService { const typiaResult = validateAllData(state); if (!typiaResult.success) { result.isValid = false; - result.typiaErrors = typiaResult.errors || []; + result.typiaErrors = (typiaResult as IValidation.IFailure).errors || []; OpLog.warn('[ValidateStateService] Typia validation failed', { errorCount: result.typiaErrors.length, }); diff --git a/src/app/core/persistence/operation-log/store/operation-log-hydrator.service.spec.ts b/src/app/core/persistence/operation-log/store/operation-log-hydrator.service.spec.ts index c6363b389..01da0b2e4 100644 --- a/src/app/core/persistence/operation-log/store/operation-log-hydrator.service.spec.ts +++ b/src/app/core/persistence/operation-log/store/operation-log-hydrator.service.spec.ts @@ -759,7 +759,7 @@ describe('OperationLogHydratorService', () => { isEnabled: true, // Other sync settings preserved }), }), - }), + }) as any, }), ); diff --git a/src/app/features/boards/board-panel/board-panel.component.html b/src/app/features/boards/board-panel/board-panel.component.html index 339f3ae14..74e220bdc 100644 --- a/src/app/features/boards/board-panel/board-panel.component.html +++ b/src/app/features/boards/board-panel/board-panel.component.html @@ -44,7 +44,7 @@ [task]="task" [tagsToHide]="panelCfg().includedTagIds || []" > - @if (task.reminderId) { + @if (task.remindAt) { } - @if (t.reminderId) { + @if (t.remindAt) {