…orks
While an agent was working, the workspace icon in the sidebar was
replaced by the spinner, so an open, merged or closed PR could not be
seen without a hover. The other agent states already kept the PR icon
and put a status dot on it.
A workspace with a PR now keeps its PR icon while an agent works, with
the amber working dot on it. The dot pulses softly so a working row
still reads as live, and holds still under reduced motion. A workspace
without a PR, or one that is still being created, keeps the spinner.
This applies to the expanded and the collapsed sidebar. The row width,
the tooltip and the hover card are unchanged.
The dot stays at the top right of the icon, which leaves the bottom
right free for check badges (ParadevAI#7808).
Closes ParadevAI#7635
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
What & why
Fixes #7635.
While an agent was working, the spinner replaced the whole workspace icon in the sidebar, so you could not see whether the workspace had a PR or what state it was in. The other agent statuses (needs input, ready for review, failed) already kept the PR icon and added a dot at the top right. Working now does the same when there is a PR.
resolveWorkspaceIconIndicatorsutil decides what the icon shows:animate-pulse, turned off bymotion-reduce). The pulse is applied only in this icon, so the sharedStatusIndicatorand its other users do not change.Related work: #7808 adds check badges at the bottom right of the same icon. The working dot stays at the top right, so they do not overlap, but both PRs edit the same few lines, so whichever merges second needs a small rebase.
Screenshots
A workspace whose PR (#8389) is merged, with an agent working in it. Cropped and zoomed in.
The dot pulses in the app; a still image shows it at one point of the pulse.
How I tested it
mainat a8c6da1 and merges cleanly withmainat cc31d02. On that merge, with the pinned Bun 1.4.2 (.bun-version):bun run lintpasses with no diagnostics,bun run check:i18nleaves the catalogs unchanged,turbo typecheck --filter=@superset/desktoppasses, theDashboardSidebarsuite passes (192 tests, including 10 new ones for the util), and the full desktop suite passes (8284 tests, 1 skipped).main'sDashboardSidebarWorkspaceIcon.tsxin the same app.Checklist
type(scope): subject)bun run lintandbun run typecheckpass (CI fails on lint warnings too). Lint ran on the whole repo, and the type check ran for@superset/desktop, the only package this PR changes.Summary by cubic
Keeps the sidebar workspace icon from hiding PR status while an agent works.
Written for commit 28f47ba. Summary will update on new commits.
Summary by CodeRabbit