diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-01 21:38:17 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-01 21:38:17 -0500 |
| commit | 7da1c7e717af3cadf927b5f6efb253f0d10423a8 (patch) | |
| tree | e6d52326215026a5cc1002a06f68cbd6281b1b6f /Omni/Jr/Web/Partials.hs | |
| parent | 437a204017c7b357c3fc4dcc8c23151a288d1a8e (diff) | |
Make complexity badge editable on task detail page
- Add ComplexityForm and ComplexityBadgePartial types
- Add /tasks/:id/complexity POST endpoint
- Add complexityBadgeWithForm component with dropdown
- Add complexity dropdown JS for keyboard navigation
- Add CSS styles for complexity dropdown
- Always show complexity badge (Set Complexity if none)
Task-Id: t-219
Diffstat (limited to 'Omni/Jr/Web/Partials.hs')
| -rw-r--r-- | Omni/Jr/Web/Partials.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Omni/Jr/Web/Partials.hs b/Omni/Jr/Web/Partials.hs index 25a4d1e..2660441 100644 --- a/Omni/Jr/Web/Partials.hs +++ b/Omni/Jr/Web/Partials.hs @@ -18,6 +18,7 @@ import Numeric (showFFloat) import Omni.Jr.Web.Components ( aggregateCostMetrics, commentForm, + complexityBadgeWithForm, formatCostHeader, formatTokensHeader, metaSep, @@ -33,6 +34,7 @@ import Omni.Jr.Web.Components ) import Omni.Jr.Web.Types ( AgentEventsPartial (..), + ComplexityBadgePartial (..), DescriptionEditPartial (..), DescriptionViewPartial (..), PriorityBadgePartial (..), @@ -92,6 +94,11 @@ instance Lucid.ToHtml PriorityBadgePartial where toHtml (PriorityBadgePartial priority tid) = priorityBadgeWithForm priority tid +instance Lucid.ToHtml ComplexityBadgePartial where + toHtmlRaw = Lucid.toHtml + toHtml (ComplexityBadgePartial complexity tid) = + complexityBadgeWithForm complexity tid + instance Lucid.ToHtml TaskListPartial where toHtmlRaw = Lucid.toHtml toHtml (TaskListPartial tasks) = |
