From fb4e644df735cf07c46d0fdcc5278220f501b39b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 18 Nov 2026 08:29:52 -0800 Subject: [PATCH] It works! Not pretty tho --- .../app-frame/app-frame.component.ts | 15 ++- .../release-notes-dialog.component.html | 39 +++++++ .../release-notes-dialog.component.scss | 3 + .../release-notes-dialog.component.spec.ts | 106 ++++++++++++++++++ .../release-notes-dialog.component.ts | 65 +++++++++++ src-ui/src/styles.scss | 3 + 6 files changed, 229 insertions(+), 2 deletions(-) create mode 100644 src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.html create mode 100644 src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.scss create mode 100644 src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.spec.ts create mode 100644 src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.ts diff --git a/src-ui/src/app/components/app-frame/app-frame.component.ts b/src-ui/src/app/components/app-frame/app-frame.component.ts index 7c1e7d929e..2ee4464b01 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.ts +++ b/src-ui/src/app/components/app-frame/app-frame.component.ts @@ -68,6 +68,7 @@ import { SwitchComponent } from '../common/input/switch/switch.component' import { BrandMarkComponent } from '../common/logo/brand-mark/brand-mark.component' import { LogoComponent } from '../common/logo/logo.component' import { ProfileEditDialogComponent } from '../common/profile-edit-dialog/profile-edit-dialog.component' +import { ReleaseNotesDialogComponent } from '../common/release-notes-dialog/release-notes-dialog.component' import { UploadStatusTrayComponent } from '../common/upload-status-tray/upload-status-tray.component' import { DocumentDetailComponent } from '../document-detail/document-detail.component' import { ComponentWithPermissions } from '../with-permissions/with-permissions.component' @@ -552,8 +553,18 @@ export class AppFrameComponent } showReleaseNotes() { - // TODO: open release notes modal - this.settingsService.markReleasesSeen().pipe(first()).subscribe() + const since = this.settingsService.unseenReleasesSince() + const modal = this.modalService.open(ReleaseNotesDialogComponent, { + size: 'lg', + scrollable: true, + }) + modal.componentInstance.load(since) + if (since) { + this.settingsService + .markReleasesSeen() + .pipe(first()) + .subscribe({ error: () => {} }) + } } setUpdateChecking(enable: boolean) { diff --git a/src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.html b/src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.html new file mode 100644 index 0000000000..f9dee23bce --- /dev/null +++ b/src-ui/src/app/components/common/release-notes-dialog/release-notes-dialog.component.html @@ -0,0 +1,39 @@ +
Updated from {{ since() }} to {{ version }}
+ } +Release notes are fetched from GitHub when update checking is enabled.
+ +Release notes could not be loaded.
+ } @else { + @for (release of releases(); track release.version) { +