Skip to content

Conversation

@SakshiKekre
Copy link
Collaborator

@SakshiKekre SakshiKekre commented Jan 19, 2026

Summary

Updates the application's default year from 2025 to 2026.

Changes

  • Update CURRENT_YEAR constant from '2025' to '2026'
  • Refactor PolicyParameterSelectorValueSetter to use CURRENT_YEAR constant for initial date state instead of hardcoded values
  • Change MultiYearValueSelector to use CURRENT_YEAR constant instead of new Date().getFullYear() for consistency with report year defaults
  • Update test fixtures to avoid duplicate key conflicts with new year values

Notes

  • Backend metadata already includes 2026 in economy_options.time_period - no backend changes needed
  • TEMP_REPORT_TIME constant was also updated but is currently unused (dead code)
  • Historical content (Year in Review 2025, Autumn Budget 2025 banner, etc.) intentionally left unchanged

Test plan

  • All 1704 tests pass
  • ESLint passes
  • Prettier formatting applied
  • Manual verification: year dropdown defaults to 2026
  • Manual verification: MultiYearValueSelector shows 2026 as first year

@vercel
Copy link

vercel bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
policyengine-app-v2 Ready Ready Preview, Comment Jan 20, 2026 0:18am
policyengine-calculator Ready Ready Preview, Comment Jan 20, 2026 0:18am
policyengine-website Ready Ready Preview, Comment Jan 20, 2026 0:18am

Request Review

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