refactor: centralize task filter parsing #377
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
status:blocked
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
type:cleanup
type:docs
type:epic
type:release
type:research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta!377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-361-task-filter-parser"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Dashboard data loading,
/api/tasks, and iCal export each parsed task filter query params by hand, which left status/date/sort/default behavior split across route-local code.Solution
parseTaskFiltersandtaskFilterParamsFromSearchParamsinsrc/core/task-filters.ts./api/tasks, and iCal export through the shared parser.Verification
nix develop --command pnpm vitest run tests/core/task-filters.test.ts tests/server/dashboard-data.test.ts tests/api/tasks-route-validation.test.ts tests/api/export-ical-route.test.tsnix develop --command just lintnix develop --command just testnix develop --command just buildCloses #361