fix: use distinct status shapes in spaces sidebar - #2273
Conversation
The spaces sidebar and the mobile views told agent status apart almost only by color. Blocked, working, and done-unseen all rendered as the same filled dot, so a colorblind user saw one dot for three different states. The agents panel already solved this with agent_icon, which gives every state its own shape. Point the sidebar and mobile views at that same function and delete state_dot, the color-only mapping they used to call.
Greptile SummaryThe PR reuses the existing shape-distinct agent status icons in desktop and mobile workspace views, eliminating the color-only status mapping.
Confidence Score: 5/5The PR appears safe to merge, with status semantics and one-cell layout constraints preserved across the updated views. The changed renderers pass their existing aggregate state and seen values to a helper that handles every reachable combination, and all returned static and animated glyphs retain the required single-cell width.
|
| Filename | Overview |
|---|---|
| src/ui.rs | Updates an existing rendering assertion to expect the shared unknown-state icon. |
| src/ui/mobile.rs | Uses shape-distinct status icons in the mobile header and switcher, with focused accessibility regression tests. |
| src/ui/sidebar.rs | Uses shared agent icons for collapsed, expanded, and grouped workspace statuses and adds a rendered-glyph regression test. |
| src/ui/status.rs | Removes the superseded color-only state_dot mapping while retaining the shared status-icon implementation. |
Reviews (1): Last reviewed commit: "fix: use distinct status shapes in space..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe shared ChangesAgent status icon rendering
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
🧪 Generate unit tests (beta)
Comment |
|
i'm working on this is a standalone setting |
The spaces sidebar and the mobile views told agent status apart almost only by color. Blocked, working, and done-unseen all rendered as the same filled dot, so a colorblind user saw one dot for three different states. The agents panel already solved this with agent_icon, which gives every state its own shape. Point the sidebar and mobile views at that same function and delete state_dot, the color-only mapping they used to call.
Closes #2260