Skip to content

refactor(loans): use formatArrayDate helper - #344

Merged
Aman-Mittal merged 3 commits into
apache:mainfrom
russlan23:agent/refactor-loans-array-dates
Aug 15, 2026
Merged

Aman-Mittal merged 3 commits into
apache:mainfrom
russlan23:agent/refactor-loans-array-dates

Conversation

@russlan23

Copy link
Copy Markdown
Contributor

What and why

Replace the four manual array-to-Date round trips in the loans feature directory with the existing formatArrayDate helper. Existing missing-date guards remain in place, and the guarantor fallback for non-array dates is unchanged.

Part of #257.

Verification

  • npm test -- --watch=false --browsers=ChromeHeadless --progress=false (930 tests)
  • npm run build
  • npm run lint
  • npm run format:check
  • npm run i18n:check
  • npm run check:icons
  • bash scripts/check-license.sh
  • npm audit --audit-level=high --omit=dev
  • git diff --check

npm run api:surface still reports the 16 manifest omissions already present on current main; none is in the three files changed here.

Screenshots

Not applicable; this is a behavior-preserving date-formatting refactor.

Checklist

  • I did not hand-edit generated files under src/app/api/.
  • New component or service code uses the adapter boundary for generated API interaction. (No new component or service code.)
  • User-facing strings use translation keys. (No user-facing strings changed.)
  • I added or updated tests appropriate to the change. (Existing date formatter coverage plus the full 930-test suite; no new behavior.)
  • UI workflow changes include suitable e2e coverage. (No UI workflow changed.)
  • Commits are signed.

@russlan23
russlan23 marked this pull request as ready for review August 15, 2026 04:19

@Aman-Mittal Aman-Mittal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and thanks for contribution

@Aman-Mittal
Aman-Mittal merged commit 29cf890 into apache:main Aug 15, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants