Browse Source

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
pull/5627/head
Omar Eltomy 1 month ago
parent
commit
ac72380621
  1. 6
      CHANGELOG.md
  2. 5
      libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

6
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

5
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)

Loading…
Cancel
Save