From 6bbc96ccf09f742d3e1ea2512b0807d072cdbfc8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 12 Jun 2026 20:19:47 +0200 Subject: [PATCH] Task/move support for specific calendar year date ranges in assistant from experimental to general availability (#7015) * Move specific calendar year date ranges from experimental to general availability * Update changelog --- CHANGELOG.md | 1 + .../src/lib/assistant/assistant.component.ts | 22 +++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5ffbd4f3..3ed1e80a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,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 - Disabled the selection of future dates in the account balance management +- 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 - Improved the language localization for Korean (`ko`) diff --git a/libs/ui/src/lib/assistant/assistant.component.ts b/libs/ui/src/lib/assistant/assistant.component.ts index 3c162a310..e52cefcbc 100644 --- a/libs/ui/src/lib/assistant/assistant.component.ts +++ b/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( - eachYearOfInterval({ - end: new Date(), - start: this.user?.dateOfFirstActivity ?? new Date() + this.dateRangeOptions = this.dateRangeOptions.concat( + eachYearOfInterval({ + end: new Date(), + start: this.user?.dateOfFirstActivity ?? new Date() + }) + .map((date) => { + return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; }) - .map((date) => { - return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; - }) - .slice(0, -1) - .reverse() - ); - } + .slice(0, -1) + .reverse() + ); if ( this.user?.dateOfFirstActivity &&