From 5d9c4f1d982f633631332693832c0f15830b2b80 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:33:57 +0100 Subject: [PATCH 1/2] Bugfix/frequency of subscription interstitial (#8347) Fix frequency of subscription interstitial --- apps/api/src/app/user/user.service.ts | 2 +- apps/client/src/app/services/settings-storage.service.ts | 2 ++ apps/client/src/app/services/user/user.service.ts | 9 ++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/user/user.service.ts b/apps/api/src/app/user/user.service.ts index 9aeff9ceb9..55cd9186b5 100644 --- a/apps/api/src/app/user/user.service.ts +++ b/apps/api/src/app/user/user.service.ts @@ -435,7 +435,7 @@ export class UserService { frequency = 6; } - if (analytics?.activityCount % frequency === 1) { + if (frequency === 1 || analytics?.activityCount % frequency === 1) { currentPermissions.push(permissions.enableSubscriptionInterstitial); } diff --git a/apps/client/src/app/services/settings-storage.service.ts b/apps/client/src/app/services/settings-storage.service.ts index 095c115872..0d7e4041eb 100644 --- a/apps/client/src/app/services/settings-storage.service.ts +++ b/apps/client/src/app/services/settings-storage.service.ts @@ -2,6 +2,8 @@ import { Service } from '@angular/core'; export const KEY_RANGE = 'range'; export const KEY_STAY_SIGNED_IN = 'staySignedIn'; +export const KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN = + 'subscriptionInterstitialShown'; export const KEY_TOKEN = 'auth-token'; @Service() diff --git a/apps/client/src/app/services/user/user.service.ts b/apps/client/src/app/services/user/user.service.ts index 2fc6d399a6..12e34c330b 100644 --- a/apps/client/src/app/services/user/user.service.ts +++ b/apps/client/src/app/services/user/user.service.ts @@ -1,3 +1,4 @@ +import { KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN } from '@ghostfolio/client/services/settings-storage.service'; import { WebAuthnService } from '@ghostfolio/client/services/web-authn.service'; import { Filter, User } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; @@ -167,8 +168,14 @@ export class UserService extends ObservableStore { hasPermission( user.permissions, permissions.enableSubscriptionInterstitial - ) + ) && + !window.sessionStorage.getItem(KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN) ) { + window.sessionStorage.setItem( + KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN, + 'true' + ); + const dialogRef = this.dialog.open< GfSubscriptionInterstitialDialogComponent, SubscriptionInterstitialDialogParams From 9bae71c3dad7e8c7681ba01b01b765ab164c61d4 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:34:13 +0100 Subject: [PATCH 2/2] Task/upgrade UUID to version 14.0.3 (#8338) * Update uuid to version 14.0.3 * Update changelog --- CHANGELOG.md | 1 + package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7c1783fdc..5a3e1e25b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Deprecated the `api/v1/symbol` endpoints in favor of the `api/v1/symbols` endpoints - Upgraded `@internationalized/number` from version `3.6.8` to `3.6.9` - Upgraded `countries-and-timezones` from version `3.10.0` to `3.11.0` +- Upgraded `uuid` from version `14.0.2` to `14.0.3` - Upgraded `yahoo-finance2` from version `4.0.2` to `4.0.5` ## 3.94.0 - 2026-10-28 diff --git a/package-lock.json b/package-lock.json index d2db56749a..3cb3316351 100644 --- a/package-lock.json +++ b/package-lock.json @@ -105,7 +105,7 @@ "tablemark": "4.1.0", "twitter-api-v2": "1.29.1", "undici": "8.12.3", - "uuid": "14.0.2", + "uuid": "14.0.3", "yahoo-finance2": "4.0.5", "zod": "4.6.7", "zone.js": "0.16.3" @@ -33966,9 +33966,9 @@ } }, "node_modules/uuid": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz", - "integrity": "sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==", + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.3.tgz", + "integrity": "sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" diff --git a/package.json b/package.json index 85acbb91f7..ce1e8be8f1 100644 --- a/package.json +++ b/package.json @@ -149,7 +149,7 @@ "tablemark": "4.1.0", "twitter-api-v2": "1.29.1", "undici": "8.12.3", - "uuid": "14.0.2", + "uuid": "14.0.3", "yahoo-finance2": "4.0.5", "zod": "4.6.7", "zone.js": "0.16.3"