Skip to content

feat: add twelve UTC months to the dashboard - #11

Merged
Filionus merged 2 commits into
mainfrom
feat/b7-dashboard-months
Nov 28, 2026
Merged

Filionus merged 2 commits into
mainfrom
feat/b7-dashboard-months

Conversation

@ChargingCrystal

Copy link
Copy Markdown
Owner

Summary

  • Implements backlog B7 / F8 with migration 006_dashboard_months.sql and the shared dashboard response schema.
  • Returns the current UTC month and the previous eleven months in datesByMonth, in chronological order with zero-filled gaps.
  • Preserves the profile and lifecycle routes, README entries, and tests from B4 after rebasing on 67cb650.

Frontend impact

GET /api/dashboard continues to use bearer auth. Its response adds datesByMonth, an array of 12 { month: "YYYY-MM", total: number } entries. Use this array for the trend chart, categoriesByMonth for the historical breakdown, and serverTime with nextMeeting for the countdown. For example, three dates created in November produce {"month":"2026-11","total":3} in the 12-element array. The README includes a full response example. Apply migration 006 before the frontend uses the new field.

Verification

  • npm test passed with 359 tests, including three B7 cases. The new tests cover an empty space, sparse months and UTC month boundaries with cross-space isolation, and the HTTP response contract.
  • npm run build passed.
  • Verified all 19 README API rows and all 13 isolation tests from both branches. The diff is limited to the dashboard migration, shared schema, documentation, and tests.

@Filionus
Filionus merged commit 633ca0f into main Nov 28, 2026
1 check passed
@Filionus
Filionus deleted the feat/b7-dashboard-months branch November 28, 2026 11:50
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