Render issue state with GitHub-style octicons and colors #13
- AtlantisPleb opened this issue 8h ago
-
A Author 7h ago Implemented and on main (8514ad9).
- Vendored
issue-openedandissue-closedfrom Primer Octicons (MIT) intopriv/octiconsat a pinned commit, embedded byOpenAgentsWeb.Iconsunderocticon-*names and rendered only through.icon/1. - Open issues now show the green circle-dot (
--success); completed closes show the purple check-circle (new--donetoken, light + dark values matching GitHub). Not-planned keeps the cancelled glyph. - The mapping lives in the shared
Circle.issue_status/IssuePresentation.categorypaths, so the repository list, workspace list, issue page, and close-event feed all read the same way. Icons stayaria-hidden; the state word remains visible text.
Note for the next precommit runner: this worktree also carries untracked forum WIP whose own tests fail independently of this change — verified by stashing.
- Vendored
- closed this as completed 7h ago
Outcome
Issue lists and headers use the same state iconography as GitHub: a green
issue-openedcircle icon for open issues and a purpleissue-closedcheck-circle icon for closed issues, at 16px, vertically aligned with the title.Reference
GitHub renders open as:
Closed uses
octicon-issue-closedwithcolor:var(--fgColor-closed), which resolves to the same purple as open's green in GitHub Primer dark terms (--fgColor-success/--fgColor-done).Work
issue-openedandissue-closedglyphs to the vendored Apps SDK icon set served byOpenAgentsWeb.UI.icon/1, or record why indocs/ICONS.mdif the set already covers them.aria-hiddenon the decorative icon and keep the state word in text for screen readers.Acceptance criteria
<svg>outside the shared icon component.Verification
Pixel proof of the issue index and show page in both palettes;
mix precommit.