From f7b875b650e791f604fcf35e04f06310352cb352 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 29 Nov 2025 20:40:25 -0500 Subject: Add cost and duration metrics to homepage Task Status section The implementation is complete. The build passed with `bild --test Omni/ **Summary of changes:** 1. **Omni/Task/Core.hs**: Added `getGlobalAggregatedMetrics :: IO Aggreg 2. **Omni/Jr/Web.hs**: - Updated `HomePage` data type to include `AggregatedMetrics` paramet - Updated `homeHandler` to fetch global metrics via `getGlobalAggrega - Updated `ToHtml HomePage` instance to add two new cards: "Cost" (fo - Added helper functions `metricCard`, `formatCost`, and `formatDurat 3. **Omni/Jr/Web/Style.hs**: Added `badge-neutral` CSS styling (gray bor Task-Id: t-179 --- Omni/Jr/Web/Style.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Omni/Jr/Web/Style.hs') diff --git a/Omni/Jr/Web/Style.hs b/Omni/Jr/Web/Style.hs index 0628c53..ad1ff02 100644 --- a/Omni/Jr/Web/Style.hs +++ b/Omni/Jr/Web/Style.hs @@ -336,6 +336,8 @@ cardStyles = do (".stat-card.badge-approved" |> ".stat-count") ? color "#0e7490" ".stat-card.badge-done" ? borderLeft (px 4) solid "#10b981" (".stat-card.badge-done" |> ".stat-count") ? color "#065f46" + ".stat-card.badge-neutral" ? borderLeft (px 4) solid "#6b7280" + (".stat-card.badge-neutral" |> ".stat-count") ? color "#374151" ".task-card" ? do transition "border-color" (ms 150) ease (sec 0) ".task-card" # hover ? do @@ -1382,6 +1384,7 @@ darkModeStyles = (".stat-card.badge-review" |> ".stat-count") ? color "#a78bfa" (".stat-card.badge-approved" |> ".stat-count") ? color "#22d3ee" (".stat-card.badge-done" |> ".stat-count") ? color "#34d399" + (".stat-card.badge-neutral" |> ".stat-count") ? color "#9ca3af" ".progress-bar" ? backgroundColor "#374151" ".progress-fill" ? backgroundColor "#60a5fa" -- cgit v1.2.3