The homepage Task Status section currently shows counts (Open, In Progress, Review, Approved, Done). Add two additional metric cards showing total cost and total work duration.
Design: Add two more cards to the stats-grid:
Implementation:
1. Add fields to HomePage data type: data HomePage = HomePage TaskCore.TaskStats [TaskCore.Task] [TaskCore.Task] Bool AggregatedMetrics UTCTime (add AggregatedMetrics parameter)
2. In homeHandler, compute global aggregated metrics:
3. In HomePage ToHtml instance, add two stat cards after Done:
4. Add "badge-neutral" CSS if needed - gray background, dark text
The cards should not be clickable (no href) since they're aggregate metrics, not filterable categories.
Files: Omni/Jr/Web.hs (HomePage type, homeHandler, ToHtml instance), Omni/Task/Core.hs (getGlobalAggregatedMetrics)
No activity yet.