diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0580233a..bf5746eea2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - 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 `envalid` from version `8.2.0` to `9.0.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/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 diff --git a/package-lock.json b/package-lock.json index 999ec8c0e4..f4dc193296 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" @@ -33963,9 +33963,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 13554a7d48..356a1d015e 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"