Repository navigation
fix(desktop): board row glyph draws the unread dot from the agent, not the column - #8904
RohithReddy20 wants to merge 2 commits into
Conversation
…t the column The Workspaces board and list glyph reused the sidebar's green "Ready for review" dot for whichever rows the board column mapping sent its way. Before ParadevAI#8807 that was the whole In review column, so a card with an open PR and an idle agent kept the dot until the PR merged or closed. ParadevAI#8807 split Finished · unread out of In review and keyed the dot on that column, which fixed the reported case but left the glyph coupled to deriveBoardColumn: session rows skip Finished on purpose (they arrive in volume), so a session row with unread output lost its dot on the board while the sidebar still showed one. WorkspaceStateGlyph now draws the dot when agentStatus is "review", as the sidebar's lead indicator does, and otherwise shows the column icon with the column label. A row filed under In review by its PR alone shows the In review pie; a session row with unread output shows the dot in Idle. deriveBoardColumn is unchanged. Adds a co-located test for the reported case (idle agent, open PR: no dot), unread output with an open PR, and a session row with unread output. Fixes ParadevAI#8647
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
[Low impact] The PR appears safe to merge; no actionable issues were found. Summary
No actionable issues were found. Tests and the running UI were not executed during this review. Reviews (1) · Last reviewed commit: "fix(desktop): shorten WorkspaceStateGlyp..." · Reviewed by Greptile |
|
Closing to resubmit one at a time after addressing review feedback. |
What & why
Fixes #8647.
WorkspaceStateGlyph(the row glyph on the Workspaces board card and list row) decided whether to draw the green "Ready for review" dot from the board column, not from the agent's unread state. The issue's exact reproduction (idle agent + open PR) was already closed off by #8807, which added the "Finished · unread" column and drew the dot only for that column. The root cause the issue named was still there: becausederiveBoardColumndeliberately files session workspaces under Idle instead of Finished, a session row with unread agent output showed the Idle pie on the board while the sidebar's lead indicator showed the green dot for the same workspace.The glyph now renders
StatusIndicator status="review"whenagentStatus === "review", the same rule the sidebar'spickLeaduses, and otherwise the column'sBoardColumnIconwith its label.deriveBoardColumnand column placement are unchanged, so a row that is in "In review" only because of its PR shows the column icon, and the dot means unseen agent output everywhere.A co-located
WorkspaceStateGlyph.test.tsxcovers: idle agent + open PR (no dot, column icon), unread output + open PR (dot), and a session row with unread output (dot). The third case fails against the previous component and passes now.How I tested it
Ran from the worktree:
bun run lint:fix: clean, no fixes appliedbunx @biomejs/[email protected] check .: 10947 files, cleanbun run typecheckinapps/desktop: exit 0bun test src/renderer/routes/_authenticated/_dashboard/v2-workspacesinapps/desktop: 26 pass, 0 failbun run check:i18n: not run; no user-facing strings were added or changed (only a doc comment)UI behaviour was not verified in the running app; the change is covered by the unit tests above.
Checklist
type(scope): subject)bun run lintandbun run typecheckpass (CI fails on lint warnings too)Summary by CodeRabbit