fix(events): seven-date default period and picker from today (WealthLedger/frontend#63) #83

Merged
codex-bot merged 1 commits from fix/64-upcoming-events-date-filter into develop 2026-10-14 21:34:59 +03:00
Owner

Closes #63

What

  • defaultPeriod() computes the exact seven-date default with Moscow calendar arithmetic (today through six calendar days later) instead of subtracting elapsed 24h intervals that collapsed around midnight.
  • Events page date picker now uses minDate = today with no upper bound (was maxDate = today, which blocked forecast dates).
  • URL-backed period behavior unchanged: valid past URL ranges preserved, malformed/impossible/reversed ranges still normalize to the default; Apply/Reset untouched.

Verification

  • npm run typecheck, npm run lint:eslint — clean.
  • npm run test:run — 435/435 pass (calendar, events page filters, AllAccounts updated for new picker bounds).

Refs: OpenSpec change fix-upcoming-events-date-filter (store wealth-ledger-specs).

Closes #63 ## What - `defaultPeriod()` computes the exact seven-date default with Moscow calendar arithmetic (today through six calendar days later) instead of subtracting elapsed 24h intervals that collapsed around midnight. - Events page date picker now uses `minDate` = today with no upper bound (was `maxDate` = today, which blocked forecast dates). - URL-backed period behavior unchanged: valid past URL ranges preserved, malformed/impossible/reversed ranges still normalize to the default; Apply/Reset untouched. ## Verification - `npm run typecheck`, `npm run lint:eslint` — clean. - `npm run test:run` — 435/435 pass (calendar, events page filters, AllAccounts updated for new picker bounds). Refs: OpenSpec change `fix-upcoming-events-date-filter` (store `wealth-ledger-specs`).
codex-bot added 1 commit 2026-10-14 21:23:17 +03:00
fix(events): seven-date default period and picker from today (WealthLedger/frontend#63)
Frontend verify / commits (pull_request) Successful in 50s
Frontend verify / security (pull_request) Successful in 10s
Frontend verify / verify (pull_request) Successful in 7m7s
612ab62509
codex-bot merged commit 20618fb033 into develop 2026-10-14 21:34:59 +03:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/frontend#83