From ac72380621f4ebe2bd4d2391d0372ff687fd8b52 Mon Sep 17 00:00:00 2001 From: Omar Eltomy <97570527+omareltomy@users.noreply.github.com> Date: Mon, 29 Sep 2025 14:48:34 +0000 Subject: [PATCH] refactor: improve minDate implementation and add changelog - Replace getter with simple property declaration for better performance - Maintain alphabetical order of class members - Add changelog entry for version 2.204.0 --- CHANGELOG.md | 6 ++++++ .../ui/src/lib/fire-calculator/fire-calculator.component.ts | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ddf62e81..59e3829b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 2.204.0 - 2025-09-29 + +### Changed + +- Set minimum selectable date to tomorrow for the retirement date picker in the FIRE calculator + ## 2.203.0 - 2025-09-27 ### Added diff --git a/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts b/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts index feee04881..df7ca79fa 100644 --- a/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts +++ b/libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -103,12 +103,9 @@ export class GfFireCalculatorComponent implements OnChanges, OnDestroy { }); public chart: Chart<'bar'>; public isLoading = true; + public minDate = addDays(new Date(), 1); public periodsToRetire = 0; - public get minDate(): Date { - return addDays(new Date(), 1); // Tomorrow's date - } - private readonly CONTRIBUTION_PERIOD = 12; private readonly DEFAULT_RETIREMENT_DATE = startOfMonth( addYears(new Date(), 10)