Browse Source

Merge branch 'main' into envalid

pull/8312/head
Thomas Kaul 4 weeks ago
committed by GitHub
parent
commit
1797749670
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/api/src/app/user/user.service.ts
  3. 2
      apps/client/src/app/services/settings-storage.service.ts
  4. 9
      apps/client/src/app/services/user/user.service.ts
  5. 8
      package-lock.json
  6. 2
      package.json

1
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 `@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 `countries-and-timezones` from version `3.10.0` to `3.11.0`
- Upgraded `envalid` from version `8.2.0` to `9.0.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` - Upgraded `yahoo-finance2` from version `4.0.2` to `4.0.5`
## 3.94.0 - 2026-10-28 ## 3.94.0 - 2026-10-28

2
apps/api/src/app/user/user.service.ts

@ -435,7 +435,7 @@ export class UserService {
frequency = 6; frequency = 6;
} }
if (analytics?.activityCount % frequency === 1) { if (frequency === 1 || analytics?.activityCount % frequency === 1) {
currentPermissions.push(permissions.enableSubscriptionInterstitial); currentPermissions.push(permissions.enableSubscriptionInterstitial);
} }

2
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_RANGE = 'range';
export const KEY_STAY_SIGNED_IN = 'staySignedIn'; export const KEY_STAY_SIGNED_IN = 'staySignedIn';
export const KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN =
'subscriptionInterstitialShown';
export const KEY_TOKEN = 'auth-token'; export const KEY_TOKEN = 'auth-token';
@Service() @Service()

9
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 { WebAuthnService } from '@ghostfolio/client/services/web-authn.service';
import { Filter, User } from '@ghostfolio/common/interfaces'; import { Filter, User } from '@ghostfolio/common/interfaces';
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import { hasPermission, permissions } from '@ghostfolio/common/permissions';
@ -167,8 +168,14 @@ export class UserService extends ObservableStore<UserStoreState> {
hasPermission( hasPermission(
user.permissions, user.permissions,
permissions.enableSubscriptionInterstitial permissions.enableSubscriptionInterstitial
) ) &&
!window.sessionStorage.getItem(KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN)
) { ) {
window.sessionStorage.setItem(
KEY_SUBSCRIPTION_INTERSTITIAL_SHOWN,
'true'
);
const dialogRef = this.dialog.open< const dialogRef = this.dialog.open<
GfSubscriptionInterstitialDialogComponent, GfSubscriptionInterstitialDialogComponent,
SubscriptionInterstitialDialogParams SubscriptionInterstitialDialogParams

8
package-lock.json

@ -105,7 +105,7 @@
"tablemark": "4.1.0", "tablemark": "4.1.0",
"twitter-api-v2": "1.29.1", "twitter-api-v2": "1.29.1",
"undici": "8.12.3", "undici": "8.12.3",
"uuid": "14.0.2", "uuid": "14.0.3",
"yahoo-finance2": "4.0.5", "yahoo-finance2": "4.0.5",
"zod": "4.6.7", "zod": "4.6.7",
"zone.js": "0.16.3" "zone.js": "0.16.3"
@ -33963,9 +33963,9 @@
} }
}, },
"node_modules/uuid": { "node_modules/uuid": {
"version": "14.0.2", "version": "14.0.3",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz", "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.3.tgz",
"integrity": "sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==", "integrity": "sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw==",
"funding": [ "funding": [
"https://github.com/sponsors/broofa", "https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan" "https://github.com/sponsors/ctavan"

2
package.json

@ -149,7 +149,7 @@
"tablemark": "4.1.0", "tablemark": "4.1.0",
"twitter-api-v2": "1.29.1", "twitter-api-v2": "1.29.1",
"undici": "8.12.3", "undici": "8.12.3",
"uuid": "14.0.2", "uuid": "14.0.3",
"yahoo-finance2": "4.0.5", "yahoo-finance2": "4.0.5",
"zod": "4.6.7", "zod": "4.6.7",
"zone.js": "0.16.3" "zone.js": "0.16.3"

Loading…
Cancel
Save