Skip to content

fix(space): make chart zoom and Finder reveal usable - #29567

Merged
nwparker merged 2 commits into
mainfrom
nwparker/space-visualizer-followup
Oct 16, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/space-visualizer-followup

Conversation

@nwparker

@nwparker nwparker commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​206 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​203
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​149 $\color{#cf222e}{\Huge{\mathbf{−}}}$​89 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60

ELI5

Space’s chart now responds when you click a workspace, and workspace rows and folder details offer a way to reveal their paths in the system file manager.

What Changed

Before, clicking a chart rectangle only changed the details beside it, so the chart appeared unchanged; its Zoom button and labels also covered rectangles. Now clicking a rectangle opens that workspace’s top-level folder view, and the chart controls have their own header. Before, right-click worked only on rows eligible for deletion. Now every workspace row and named folder detail has a reveal action, while eligible workspace rows still offer Delete.

Why

The direct chart action makes the two-level view discoverable and keeps controls clear of the data. The row menu reuses Orca’s existing host-aware file-manager reveal path, which validates the target and handles unsupported remote paths.

Linked Issue

None (maintainer follow-up to #29513).

Visual Proof

The screenshots use the same isolated sample data. Before, the chart label and All button cover folder rectangles:

Before: controls overlap the treemap

After, controls sit above the rectangles:

After: folder chart with separate controls

Right-click on a protected main workspace now offers Reveal in Finder:

After: workspace row context menu

The folder detail list offers the same action after zooming into a workspace:

After: zoomed chart and folder reveal menu

Testing

  • Tested the hidden macOS Electron window through Playwright CDP: Zoom, All, direct rectangle click, both context menus, and the missing-path response.
  • Added interaction tests for chart navigation and reveal on a protected row; all eight focused tests pass.
  • pnpm tc, pnpm run check:code-quality:changed, and pnpm run build:electron-vite pass.
  • Rebased onto current main; full pnpm lint passes on the new head.

Review

The reveal action passes each row’s execution host to Orca’s existing file-manager guard. Rows and folder details without a known owner fail closed. Aggregate folder entries have no path and show no reveal menu. The context menu preserves the existing Delete action for eligible worktrees.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer source is copied.

Notes

Linux, Windows, and live SSH were not exercised locally. The existing reveal helper provides the platform-specific label and rejects paths this computer cannot reveal.

Checklist

  • This PR is small and focused.
  • The user-facing before/after, mechanism, and choice of approach are explained.
  • Before and after screenshots are attached.
  • Correctness, security, performance, and host ownership were reviewed.
  • Full repository lint passes after the base update.

@nwparker
nwparker marked this pull request as ready for review October 16, 2026 09:08
@nwparker
nwparker force-pushed the nwparker/space-visualizer-followup branch from 3924bc4 to f8cd4dc Compare October 16, 2026 09:12
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

Workspace breakdown and worktree rows add context-menu actions to reveal paths in the file manager. Workspace tile clicks now select and zoom into the worktree. The treemap header and English labels show the current overview or zoom state. Tests cover reveal actions and switching between treemap views.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to f8cd4

Two small interaction glitches remain in the Space view: clicking a workspace with no folder details opens an empty zoom view, and Reveal is offered for entries with no known host and then only shows a blocked message. Both are low impact and can be fixed or accepted before merging.

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 8 functions across 6 files. (2 skipped: 2 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main changes: chart zoom behavior and Finder reveal actions.
Description check Passed The description is complete and on-topic. It explains the user-facing changes, rationale, testing, visual proof, limitations, and compatibility considerations. The linked issue entry is not formatted …
Full details: Description check

Explanation

The description is complete and on-topic. It explains the user-facing changes, rationale, testing, visual proof, limitations, and compatibility considerations. The linked issue entry is not formatted as a direct link, but it references the related issue and does not prevent understanding the change.

Full details: Docstring Coverage

Explanation

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 8 functions across 6 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 25ed3a96-09ea-4bb5-95f3-bf06188a4ff2
📥 Commits

Reviewing files that changed from the base of the PR and between 2e97d9a and f8cd4dc.

📒 Files selected for processing: 8
  • src/renderer/src/components/status-bar/workspace-space-breakdown-list.test.tsx
  • src/renderer/src/components/status-bar/workspace-space-breakdown-list.tsx
  • src/renderer/src/components/status-bar/workspace-space-treemap.test.tsx
  • src/renderer/src/components/status-bar/workspace-space-treemap.tsx
  • src/renderer/src/components/status-bar/workspace-space-worktree-row.test.tsx
  • src/renderer/src/components/status-bar/workspace-space-worktree-row.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json

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

<WorkspaceSpaceSizeBar value={item.sizeBytes} max={maxSize} />
</div>
)
if (!item.path) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Do not offer reveal when the execution host is unresolved. Both menus can show a reveal action when executionHostId is absent. Selecting the action produces a blocked-action toast instead of revealing the path. The PR objective excludes entries without a known owner.

  • src/renderer/src/components/status-bar/workspace-space-breakdown-list.tsx#L172-L172: require a resolved execution host in addition to item.path before rendering the menu.
  • src/renderer/src/components/status-bar/workspace-space-worktree-row.tsx#L185-L185: render the reveal item only for a resolved execution host; preserve eligible Delete actions.
📍 Affects 2 files
  • src/renderer/src/components/status-bar/workspace-space-breakdown-list.tsx#L172-L172 (this comment)
  • src/renderer/src/components/status-bar/workspace-space-worktree-row.tsx#L185-L185

const isZoomed = !!zoomedWorktree
const inspectWorkspace = (worktreeId: string): void => {
onSelect(worktreeId)
onZoomChange(worktreeId)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep workspaces without folder details in the overview.

If a workspace has a positive size but no topLevelItems, its tile is visible. Clicking the tile now replaces the overview chart with “No top-level items to show.” The existing Zoom control excludes this state. Keep onSelect(worktreeId), but call onZoomChange(worktreeId) only when the workspace has top-level items.

@nwparker
nwparker merged commit baf534d into main Oct 16, 2026
31 checks passed
smwbev added a commit to smwbev/orca that referenced this pull request Oct 16, 2026
312 commits landed on main between 67fe1e1 and 5db05e8, and the es, ja, ko and zh catalogs and en-runtime-required.json conflicted. All six catalogs are taken from main and the prune is recomputed in one pass: 1,480 keys. Five keys joined the set and none left: four labels of the old disk-usage panels that stablyai#29513 replaced, and workspaceSpace.chart.workspaceSizes, which stablyai#29567 stopped reading and which exists only in en.json. en.json goes from 16,175 entries to 14,695; en-runtime-required.json keeps 567 of them.
@nwparker nwparker mentioned this pull request Oct 16, 2026
9 of 10 tasks
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.

1 participant