Repository navigation
fix(space): make chart zoom and Finder reveal usable - #29567
Conversation
3924bc4 to
f8cd4dc
Compare
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
25ed3a96-09ea-4bb5-95f3-bf06188a4ff2
📒 Files selected for processing: 8
src/renderer/src/components/status-bar/workspace-space-breakdown-list.test.tsxsrc/renderer/src/components/status-bar/workspace-space-breakdown-list.tsxsrc/renderer/src/components/status-bar/workspace-space-treemap.test.tsxsrc/renderer/src/components/status-bar/workspace-space-treemap.tsxsrc/renderer/src/components/status-bar/workspace-space-worktree-row.test.tsxsrc/renderer/src/components/status-bar/workspace-space-worktree-row.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/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) { |
There was a problem hiding this comment.
🎯 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 toitem.pathbefore 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) |
There was a problem hiding this comment.
🎯 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.
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.
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:
After, controls sit above the rectangles:
Right-click on a protected main workspace now offers Reveal in Finder:
The folder detail list offers the same action after zooming into a workspace:
Testing
pnpm tc,pnpm run check:code-quality:changed, andpnpm run build:electron-vitepass.main; fullpnpm lintpasses 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
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