Repository navigation
Compact the Space window layout - #29857
Conversation
0fb55e2 to
6da0c66
Compare
📝 Walkthrough
Priority: ➖ Normal 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:
76f37fbb-266a-4d8e-935a-d26bba4f8013
📒 Files selected for processing: 16
src/main/window/workspace-space-window.tssrc/renderer/space.htmlsrc/renderer/src/components/status-bar/use-workspace-space-manager-projection.tssrc/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-manager-overview.tsxsrc/renderer/src/components/status-bar/workspace-space-manager-table.tsxsrc/renderer/src/components/status-bar/workspace-space-manager-toolbar.tsxsrc/renderer/src/components/status-bar/workspace-space-manager-view.tsxsrc/renderer/src/components/status-bar/workspace-space-metrics.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/components/workspace-space/WorkspaceSpacePage.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.json
💤 Files with no reviewable changes: 1
- src/renderer/src/components/status-bar/use-workspace-space-manager-projection.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
| </Badge> | ||
| ) : null} | ||
| <GitBranch className="size-3 shrink-0 text-muted-foreground" /> | ||
| <span className="max-w-24 shrink-0 truncate text-muted-foreground"> |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Reserve space for the workspace name. At the table’s 40rem minimum width, a long branch can consume almost the entire workspace column because this span cannot shrink. A Sparse badge can leave no visible workspace name. Let the branch shrink or move it behind a compact detail control so users can identify the row without hovering over its path.
| : undefined | ||
| } | ||
| > | ||
| {worktree.lastActivityAt > 0 ? formatShortTimeAgo(worktree.lastActivityAt) : '—'} |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Refresh the relative activity label while Space stays open. This call calculates 2h from the render time, but the row has no clock subscription. If the window remains idle, “Last active” can continue to show now or 2h long after that value is accurate. Use a shared, visibility-aware clock for the rows; UpdatedMetric already updates its own clock but does not rerender these rows.
250 commits landed on main between 5db05e8 and 6fcc183, and the fr catalog and en-runtime-required.json conflicted. All six catalogs are taken from main and the prune is recomputed in one pass: 1,504 keys. 24 keys joined the set and none left: twenty labels and search keywords of the Setup Script Location terminal setting that stablyai#29819 removed, three Space page labels dropped by stablyai#29857, and the tab close-button tooltip removed by stablyai#29851. en.json goes from 16,241 entries to 14,737; en-runtime-required.json keeps 568 of them.
ELI5
Space uses its separate window more efficiently: one compact summary line, a shorter chart, and one-line workspace rows. The workspace list gets the remaining height and is the only persistent page scroller.
What Changed
The original view had a full title row, Close button, tall chart and cards, and page scrolling. This PR removes the page header and Escape close shortcut, reduces the chart and folder card, keeps extra folder details in a popover, and confines scrolling to the workspace list. The latest revision also puts summary labels, values, and Refresh on one line; makes each workspace row one line; adds a sortable Last active column; and moves Beta to the end of the window title. A final pass adds a trash action for eligible individual rows and keeps Delete visible but disabled in other rows’ right-click menus. Both routes use the existing named-workspace confirmation dialog.
Why
The separate window already supplies window controls. A fixed summary and chart keep the storage comparison visible while the workspace list scrolls. The one-line rows show more workspaces at once. The existing workspace activity timestamp powers Last active; the scan does not provide a reliable last file modification time, so that label would be misleading.
Linked Issue
Follow-up to #29567.
Visual Proof
Original view (sample workspace, 1180×820):
Previous revision before the one-line follow-up (same sample and viewport):
Current revision (same sample and viewport):
Current revision at 700×520 with 40 sample workspaces:
Single workspace delete confirmation, exercised against a temporary managed worktree:
Testing
Orca Space Betawindow title. Earlier revision also exercised folder overflow, treemap zoom/unzoom, and Escape behavior.pnpm tc,pnpm run check:code-quality:changed,pnpm run verify:localization-catalogs, andpnpm run build:electron-vitepass.Review
The date column reads existing workspace activity metadata; scanning and SSH execution are unchanged. Windows and Linux were not manually tested; the PR workflow will cover their applicable checks.
Agent skill upstream boundary
Notes
The screenshots use synthetic workspace data. The original image also shows the pre-existing folder context menu open.
Checklist
pnpm lint,pnpm test, and package build are left to CI; focused local checks above pass