Skip to content

Compact the Space window layout - #29857

Merged
nwparker merged 3 commits into
mainfrom
nwparker/space-compact-window
Oct 16, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/space-compact-window

Conversation

@nwparker

@nwparker nwparker commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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):

Original Space view

Previous revision before the one-line follow-up (same sample and viewport):

Before one-line follow-up

Current revision (same sample and viewport):

Current one-line Space view

Current revision at 700×520 with 40 sample workspaces:

Current small-window Space view

Single workspace delete confirmation, exercised against a temporary managed worktree:

Confirmed single workspace delete

Testing

  • Manually checked the rendered macOS Electron window through CDP at 1180×820 and 700×520. Verified no document scroll, list scrolling, single-line metrics and rows, Last active sorting, and the Orca Space Beta window title. Earlier revision also exercised folder overflow, treemap zoom/unzoom, and Escape behavior.
  • Added tests for folder overflow and activity time display; 36 focused Space and delete-flow tests pass. The confirmation was checked end to end: Cancel preserved the temporary worktree, and confirming removed that worktree.
  • pnpm tc, pnpm run check:code-quality:changed, pnpm run verify:localization-catalogs, and pnpm run build:electron-vite pass.

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

  • Not applicable; no upstream skill-installer source was copied or translated.

Notes

The screenshots use synthetic workspace data. The original image also shows the pre-existing folder context menu open.

Checklist

  • This PR is small and focused
  • I explained the user-facing before/after, mechanism, and rationale
  • Before/after screenshots are attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full pnpm lint, pnpm test, and package build are left to CI; focused local checks above pass

@nwparker
nwparker force-pushed the nwparker/space-compact-window branch from 0fb55e2 to 6da0c66 Compare October 16, 2026 22:54
@nwparker
nwparker marked this pull request as ready for review October 16, 2026 22:55
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

The Workspace Space manager uses more compact layouts for its overview, folder breakdown, treemap, and worktree table. The table adds sortable last-activity information. Worktree rows show repository and activity details and provide delete actions according to deletion availability. The page removes its Escape-key close behavior and header content. The window and document titles change to “Orca Space Beta.”

Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 6da0c

The compact Space layout can hide the workspace name when a branch name is long. The Last active text can also show stale relative times while the window is open. Both are cosmetic and can be addressed as a follow-up.

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 13 functions across 12 files. (3 skipped: … 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 clearly and concisely describes the primary change: compacting the Space window layout.
Description check Passed The description covers the required user impact, implementation changes, rationale, linked issue, visual proof, testing, review notes, and checklist. It also explains which full checks remain for CI.
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.
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 13 functions across 12 files. (3 skipped: 3 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: 76f37fbb-266a-4d8e-935a-d26bba4f8013
📥 Commits

Reviewing files that changed from the base of the PR and between f8089c7 and 6da0c66.

📒 Files selected for processing: 16
  • src/main/window/workspace-space-window.ts
  • src/renderer/space.html
  • src/renderer/src/components/status-bar/use-workspace-space-manager-projection.ts
  • 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-manager-overview.tsx
  • src/renderer/src/components/status-bar/workspace-space-manager-table.tsx
  • src/renderer/src/components/status-bar/workspace-space-manager-toolbar.tsx
  • src/renderer/src/components/status-bar/workspace-space-manager-view.tsx
  • src/renderer/src/components/status-bar/workspace-space-metrics.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/components/workspace-space/WorkspaceSpacePage.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/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">

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

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) : '—'}

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

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.

@nwparker
nwparker merged commit c4c03e8 into main Oct 16, 2026
55 checks passed
smwbev added a commit to smwbev/orca that referenced this pull request Oct 17, 2026
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.
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