Browse Source

Merge branch 'main' into feature/3d-hover-effect-for-membership-card-component

pull/5966/head
Thomas Kaul 2 months ago
committed by GitHub
parent
commit
1d566b7aa0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 13
      apps/api/src/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor.ts
  3. 6
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts
  4. 8
      apps/client/src/app/pages/pricing/pricing-page.component.ts

2
CHANGELOG.md

@ -9,10 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Added #### Added
- Introduced data source transformation support in the import functionality for self-hosted environments
- Added an optional 3D hover effect to the membership card component - Added an optional 3D hover effect to the membership card component
#### Changed #### Changed
- Increased the numerical precision for cryptocurrency quantities in the holding detail dialog
- Upgraded `envalid` from version `8.1.0` to `8.1.1` - Upgraded `envalid` from version `8.1.0` to `8.1.1`
- Upgraded `prettier` from version `3.7.3` to `3.7.4` - Upgraded `prettier` from version `3.7.3` to `3.7.4`

13
apps/api/src/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor.ts

@ -69,6 +69,19 @@ export class TransformDataSourceInRequestInterceptor<
}); });
} }
} }
} else {
if (request.body?.activities) {
request.body.activities = request.body.activities.map((activity) => {
if (DataSource[activity.dataSource]) {
return activity;
} else {
return {
...activity,
dataSource: decodeDataSource(activity.dataSource)
};
}
});
}
} }
return next.handle(); return next.handle();

6
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

@ -411,10 +411,10 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {
if (Number.isInteger(this.quantity)) { if (Number.isInteger(this.quantity)) {
this.quantityPrecision = 0; this.quantityPrecision = 0;
} else if (SymbolProfile?.assetSubClass === 'CRYPTOCURRENCY') { } else if (SymbolProfile?.assetSubClass === 'CRYPTOCURRENCY') {
if (this.quantity < 1) { if (this.quantity < 10) {
this.quantityPrecision = 7; this.quantityPrecision = 8;
} else if (this.quantity < 1000) { } else if (this.quantity < 1000) {
this.quantityPrecision = 5; this.quantityPrecision = 6;
} else if (this.quantity >= 10000000) { } else if (this.quantity >= 10000000) {
this.quantityPrecision = 0; this.quantityPrecision = 0;
} }

8
apps/client/src/app/pages/pricing/pricing-page.component.ts

@ -54,23 +54,30 @@ export class GfPricingPageComponent implements OnDestroy, OnInit {
public durationExtension: StringValue; public durationExtension: StringValue;
public hasPermissionToCreateUser: boolean; public hasPermissionToCreateUser: boolean;
public hasPermissionToUpdateUserSettings: boolean; public hasPermissionToUpdateUserSettings: boolean;
public importAndExportTooltipBasic = translate( public importAndExportTooltipBasic = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_BASIC' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_BASIC'
); );
public importAndExportTooltipOSS = translate( public importAndExportTooltipOSS = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_OSS' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_OSS'
); );
public importAndExportTooltipPremium = translate( public importAndExportTooltipPremium = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_PREMIUM' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_PREMIUM'
); );
public isLoggedIn: boolean; public isLoggedIn: boolean;
public label: string; public label: string;
public price: number; public price: number;
public priceId: string; public priceId: string;
public professionalDataProviderTooltipPremium = translate( public professionalDataProviderTooltipPremium = translate(
'PROFESSIONAL_DATA_PROVIDER_TOOLTIP_PREMIUM' 'PROFESSIONAL_DATA_PROVIDER_TOOLTIP_PREMIUM'
); );
public referralBrokers = [ public referralBrokers = [
'Alpian',
'DEGIRO', 'DEGIRO',
'finpension', 'finpension',
'frankly', 'frankly',
@ -80,6 +87,7 @@ export class GfPricingPageComponent implements OnDestroy, OnInit {
'VIAC', 'VIAC',
'Zak' 'Zak'
]; ];
public routerLinkFeatures = publicRoutes.features.routerLink; public routerLinkFeatures = publicRoutes.features.routerLink;
public routerLinkRegister = publicRoutes.register.routerLink; public routerLinkRegister = publicRoutes.register.routerLink;
public user: User; public user: User;

Loading…
Cancel
Save