Skip to content

feat(desktop): keep PR status visible in the sidebar while an agent works - #8432

Open
diip3sh wants to merge 1 commit into
ParadevAI:mainfrom
diip3sh:feat/sidebar-git-status-while-working
Open

diip3sh wants to merge 1 commit into
ParadevAI:mainfrom
diip3sh:feat/sidebar-git-status-while-working

Conversation

@diip3sh

@diip3sh diip3sh commented Oct 13, 2026 •

Copy link
Copy Markdown

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.

  • A new resolveWorkspaceIconIndicators util decides what the icon shows:
    • Working, with a PR: the PR icon stays, with an amber working dot on it.
    • Working without a PR, or still being created: the spinner shows, as before.
    • Other statuses: unchanged.
  • The working dot pulses (animate-pulse, turned off by motion-reduce). The pulse is applied only in this icon, so the shared StatusIndicator and its other users do not change.
  • The expanded and collapsed sidebar share this component, so both are covered. There are no layout, tooltip, hover card, or string changes.

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.

Before After
Expanded sidebar Before: an amber spinner replaces the PR icon After: the purple merged-PR icon stays, with an amber dot at the top right
Collapsed sidebar Before, collapsed: spinner After, collapsed: PR icon with amber dot

The dot pulses in the app; a still image shows it at one point of the pulse.

How I tested it

  • The branch is based on main at a8c6da1 and merges cleanly with main at cc31d02. On that merge, with the pinned Bun 1.4.2 (.bun-version): bun run lint passes with no diagnostics, bun run check:i18n leaves the catalogs unchanged, turbo typecheck --filter=@superset/desktop passes, the DashboardSidebar suite passes (192 tests, including 10 new ones for the util), and the full desktop suite passes (8284 tests, 1 skipped).
  • I ran the dev app and drove it over CDP, using a real workspace whose PR (docs: document multiple windows #8389) was linked by the host, with agent status sent through the notifications hook:
    • Expanded sidebar, working with a PR: the PR icon stays, the amber dot pulses, and there is no spinner. The tooltip and hover card are unchanged.
    • Collapsed sidebar: the same.
    • Needs input shows the yellow pinging dot over the PR icon, Stop shows the static green dot, and starting again goes back to the amber pulse. Only the working case changed.
    • For the before shots, I put back main's DashboardSidebarWorkspaceIcon.tsx in the same app.

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (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.
  • "Allow edits from maintainers" is checked on fork PRs

Summary by cubic

Keeps the sidebar workspace icon from hiding PR status while an agent works.

  • Workspaces with a PR keep the PR icon with a pulsing amber dot while working; workspaces without a PR, or still being created, keep the spinner.
  • The pulse is applied only in this icon and is disabled under reduced motion; expanded and collapsed sidebar states are both covered.

Written for commit 28f47ba. Summary will update on new commits.

View guided diff

Summary by CodeRabbit

  • Bug Fixes
    • Workspace icons now show a spinner for pending creation and for workspaces that are working without a pull request. Status indicators remain visible where applicable, including when a pull request is present.
    • Working status indicators animate, with animation disabled when reduced motion is preferred.

…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>
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a1384d5-3ded-4d56-ac7e-b53e490513d7
📥 Commits

Reviewing files that changed from the base of the PR and between a8c6da1 and 28f47ba.

📒 Files selected for processing: 4
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceIcon/DashboardSidebarWorkspaceIcon.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceIcon/utils/resolveWorkspaceIconIndicators/index.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceIcon/utils/resolveWorkspaceIconIndicators/resolveWorkspaceIconIndicators.test.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceIcon/utils/resolveWorkspaceIconIndicators/resolveWorkspaceIconIndicators.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

📝 Walkthrough

The workspace sidebar now derives its spinner and status overlay from creation state, workspace status, and pull-request presence. A working workspace with a pull request can show its working status indicator alongside the primary icon.

Changes: Workspace sidebar indicators

Layer / File(s) Summary
Resolve indicator visibility
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceIcon/utils/resolveWorkspaceIconIndicators/*
The resolver shows a spinner for pending creation or for a working workspace without a pull request. It suppresses the overlay only when the spinner is shown for a working workspace. Tests cover working, pending, permission, review, failed, and no-status cases.
Render workspace indicators
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceIcon/DashboardSidebarWorkspaceIcon.tsx
The icon uses the resolver’s spinner and overlay values. A working status indicator receives a pulse class that respects reduced-motion preferences.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 28f47

The sidebar change keeps PR status visible while an agent works. No merge-blocking risk was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title uses conventional commit format and clearly describes the main desktop change: keeping pull request status visible while an agent works.
Description check Passed The description includes the required What & why, How I tested it, and Checklist sections. It explains the behavior, documents manual and automated testing, includes screenshots, and marks the checkli…
Linked Issues check Passed The changes satisfy the coding requirements in #7635. resolveWorkspaceIconIndicators keeps the pull-request icon when workspaceStatus is "working" and hasPullRequest is true. It returns a work…
Out of Scope Changes check Passed The changes stay within #7635. The modified component selects the primary icon and status overlay. The new utility and its tests support the required working-state behavior. The pulse class is limited…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@diip3sh
diip3sh marked this pull request as ready for review October 14, 2026 07:30
@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Keeps the PR icon visible while an agent works and adds an amber working dot.

  • Working workspaces keep their pull request icon visible.

Reviews (1) · Last reviewed commit: "feat(desktop): keep PR status visible in..." · Reviewed by Greptile

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep Git/PR status visible in the sidebar while an agent is working

1 participant