2.3 KiB
2.3 KiB
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| task-001 | Add velocity dashboard, Do Today feature, and label toggle filters | Done | 2025-12-07 06:25 | 2025-12-07 06:25 |
|
medium |
Description
Implemented three major features for the backlog web UI:
-
Task Velocity Dashboard - Real velocity metrics using statusHistory data:
- Completed (7d): Tasks completed in the last 7 days
- Avg Cycle Time: Average time from "To Do" → "Done"
- Avg Time to Start: Average time from "To Do" → "In Progress"
- Avg/Week (4w): Average weekly throughput over 4 weeks
- Weekly Velocity Bars: Visual bar chart showing completions per week
-
"Do Today" Star Feature:
- Added doToday field to Task type
- Parser/serializer support for do_today frontmatter
- Star icon toggle on TaskCard and TaskList items
- "Today" filter button to show only starred tasks
- URL parameter sync (?doToday=true)
-
Clickable Label Toggle Filters:
- Labels work as toggle filters in TaskCard and TaskList
- Click to filter, click again to remove
- Multiple labels can be active (AND filter)
- Active labels shown in filter bar
- URL parameter sync (?labels=bug,feature)
Implementation Notes
Files Modified
src/types/index.ts- AddeddoTodayto Task and TaskUpdateInputsrc/markdown/parser.ts- Parsedo_todayfrom frontmattersrc/markdown/serializer.ts- Serializedo_todayto frontmattersrc/core/backlog.ts- HandledoTodayin task updatessrc/core/statistics.ts- AddedVelocityStatsinterface and calculation using statusHistorysrc/web/components/Statistics.tsx- Added velocity UI with charts and metricssrc/web/components/TaskCard.tsx- Added star toggle and clickable labelssrc/web/components/TaskList.tsx- Added Today filter, label filters, doToday toggle
Technical Notes
- StatusHistory is already recorded on task creation and status changes
- Velocity metrics calculate from statusHistory entries
- Existing tasks without history show "-" for velocity metrics
- All new features sync with URL parameters for shareable links