refactor: centralize dashboard data loaders #339

Merged
barrettruth merged 1 commit from issue-319-dashboard-data-loaders into main 2026-05-11 20:01:53 +00:00
Owner

Problem

Dashboard route components were assembling shell, queue, kanban, and calendar DB reads inline, which duplicated route coordination and made the server data boundary harder to audit.

Solution

  • Add a server-only dashboard data module with named loaders for shell, queue, kanban, and calendar data.
  • Update dashboard routes to call those loaders instead of assembling DB queries directly.
  • Cover loader coordination for categories, redirects, show-done/status filters, ordering, ranking, and calendar feed data.

Validation

  • nix develop --command pnpm vitest run tests/server/dashboard-data.test.ts --reporter=verbose
  • nix develop --command just lint
  • nix develop --command just ci

Closes #319

## Problem Dashboard route components were assembling shell, queue, kanban, and calendar DB reads inline, which duplicated route coordination and made the server data boundary harder to audit. ## Solution - Add a server-only dashboard data module with named loaders for shell, queue, kanban, and calendar data. - Update dashboard routes to call those loaders instead of assembling DB queries directly. - Cover loader coordination for categories, redirects, show-done/status filters, ordering, ranking, and calendar feed data. ## Validation - nix develop --command pnpm vitest run tests/server/dashboard-data.test.ts --reporter=verbose - nix develop --command just lint - nix develop --command just ci Closes #319
refactor: centralize dashboard data loaders
All checks were successful
quality / Test (pull_request) Successful in 15s
quality / Lint (pull_request) Successful in 20s
quality / Build (pull_request) Successful in 44s
29b9a5c596
barrettruth deleted branch issue-319-dashboard-data-loaders 2026-05-11 20:01:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!339
No description provided.