-
+
+
@if (settingsService.unseenReleasesSince()) {
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.spec.ts b/src-ui/src/app/components/app-frame/app-frame.component.spec.ts
index 202e889266..a2578b9d09 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.spec.ts
+++ b/src-ui/src/app/components/app-frame/app-frame.component.spec.ts
@@ -42,6 +42,7 @@ import { environment } from 'src/environments/environment'
import { ProfileEditDialogComponent } from '../common/profile-edit-dialog/profile-edit-dialog.component'
import { UploadStatusTrayComponent } from '../common/upload-status-tray/upload-status-tray.component'
import { DocumentDetailComponent } from '../document-detail/document-detail.component'
+import { ReleaseNotesDialogComponent } from '../common/release-notes-dialog/release-notes-dialog.component'
import { AppFrameComponent } from './app-frame.component'
import { GlobalSearchComponent } from './global-search/global-search.component'
@@ -722,6 +723,24 @@ describe('AppFrameComponent', () => {
).toBeUndefined()
})
+ it('should open current release notes from the version without marking seen', () => {
+ settingsService.set(SETTINGS_KEYS.VERSION, '3.5.1')
+ settingsService.set(SETTINGS_KEYS.WHATS_NEW_LAST_SEEN_VERSION, '3.5.1')
+ fixture.detectChanges()
+ const modalSpy = jest.spyOn(modalService, 'open')
+
+ const versionButton = fixture.debugElement
+ .queryAll(By.css('button'))
+ .find((b) => b.nativeElement.textContent.includes('3.5.1'))
+ versionButton.nativeElement.click()
+
+ expect(modalSpy).toHaveBeenCalledWith(
+ ReleaseNotesDialogComponent,
+ expect.anything()
+ )
+ httpTestingController.expectNone(`${environment.apiBaseUrl}ui_settings/`)
+ })
+
it('should show new release dot instead of documentation in slim sidebar', () => {
settingsService.set(SETTINGS_KEYS.SLIM_SIDEBAR, true)
settingsService.set(SETTINGS_KEYS.VERSION, '3.5.1')