Browse Source

Merge branch 'main' into task/improve-unknown-bucket-grouping-in-allocations

pull/7011/head
Thomas Kaul 3 months ago
committed by GitHub
parent
commit
1f5dfadc19
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 22
      libs/ui/src/lib/assistant/assistant.component.ts

1
CHANGELOG.md

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Prefilled the form in the account balance management with the current cash balance - Prefilled the form in the account balance management with the current cash balance
- Disabled the selection of future dates in the account balance management - Disabled the selection of future dates in the account balance management
- Grouped commodities and cryptocurrencies into the unknown bucket of the allocations by continent, country, currency, market and sector charts on the allocations page - Grouped commodities and cryptocurrencies into the unknown bucket of the allocations by continent, country, currency, market and sector charts on the allocations page
- Moved the support for specific calendar year date ranges (`2025`, `2024`, `2023`, etc.) in the assistant from experimental to general availability
- Migrated various components from `NgStyle` to style bindings - Migrated various components from `NgStyle` to style bindings
- Improved the language localization for Korean (`ko`) - Improved the language localization for Korean (`ko`)

22
libs/ui/src/lib/assistant/assistant.component.ts

@ -397,19 +397,17 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
}); });
} }
if (this.user?.settings?.isExperimentalFeatures) { this.dateRangeOptions = this.dateRangeOptions.concat(
this.dateRangeOptions = this.dateRangeOptions.concat( eachYearOfInterval({
eachYearOfInterval({ end: new Date(),
end: new Date(), start: this.user?.dateOfFirstActivity ?? new Date()
start: this.user?.dateOfFirstActivity ?? new Date() })
.map((date) => {
return { label: format(date, 'yyyy'), value: format(date, 'yyyy') };
}) })
.map((date) => { .slice(0, -1)
return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; .reverse()
}) );
.slice(0, -1)
.reverse()
);
}
if ( if (
this.user?.dateOfFirstActivity && this.user?.dateOfFirstActivity &&

Loading…
Cancel
Save