Deadline form: Auto-rule resolved name should be on its own row, not crammed with the Rule toggle #98
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
m's report (2026-05-25 15:20)
In the deadline create/edit form (artemis's t-paliad-258 / m/paliad#89), the Rule field's Auto-mode resolved-rule name is currently rendered inline with the Rule toggle row instead of breaking to its own line:
What to do
frontend/src/client/deadlines-new.ts+deadlines-detail.ts(artemis's #89 territory).frontend/src/client/rule-label.ts(artemis added that). Style as a read-only chip / muted text + small "Auto" prefix badge.Files most likely touched
frontend/src/client/deadlines-new.ts(Rule field render)frontend/src/client/deadlines-detail.tsfrontend/src/styles/global.css(layout / spacing for the new row)Hard rules
go build ./... && go test ./internal/... && cd frontend && bun run buildclean.mai/<worker>/auto-rule-own-row.Out of scope
Reporting
mai report completedwith branch + SHAs + before/after layout description: Auto mode → resolved name on its own row below the toggle, no horizontal cramming.Resolved — moved Auto-rule resolved name to its own row
Branch:
mai/hermes/gitster-deadline-formCommit: aa2f4aa
What changed
frontend/src/styles/global.css—.rule-mode-autopromoted fromdisplay: inline-flex(content-sized pill) todisplay: flex; width: 100%; box-sizing: border-box;withmargin-top: 0.35rem. The Auto chip now occupies its own block-level row beneath the toggle instead of sitting inline-flex visually crammed next to it.frontend/src/client/deadlines-new.ts+deadlines-detail.ts— resolved-rule text now rendered viaformatRuleLabelHTML(rule, esc)(the canonical rule-label component artemis added in #89 / t-paliad-258) instead of plainformatRuleLabel. The name gets primary colour, the citation gets the muted-secondary styling.formatRuleLabelis still imported for the form-title head construction further down.Before → After
Before
After
Full-width lime-tint chip on its own row with 0.35rem clearance above. Citation portion is muted (
.rule-label-cite).Out of scope, preserved
.rule-mode-custominput already filled the column width.textContentwith the.rule-auto-text--emptyitalic-muted style — they don't pass through the HTML formatter (no rule, nothing to format).Verification
cd frontend && bun run build✅go build ./...✅go test ./internal/...✅Applied to both
/deadlines/newand/deadlines/:id(edit mode).