Skip to content

fix(web): show workspace file names + de-cramp the tab layout#269

Merged
Zach Dunn (zachdunn) merged 2 commits into
mainfrom
claude/files-tab-polish
Jul 19, 2026
Merged

fix(web): show workspace file names + de-cramp the tab layout#269
Zach Dunn (zachdunn) merged 2 commits into
mainfrom
claude/files-tab-polish

Conversation

@zachdunn

@zachdunn Zach Dunn (zachdunn) commented Jul 19, 2026

Copy link
Copy Markdown
Member

Fixes three issues on the shipped workspace files tab (#268), reported from the live view.

The name column rendered blank

Root cause (confirmed by inspecting the live DOM, not guesswork): the signed-in .shell caps at max-width: 960px, so the workspace view's main column shrank to ~388px. The file table's fixed columns (size 90 + type 110 + visibility 100 + menu 44 + gaps ≈ 392px) consumed the whole track, collapsing the minmax(0, 1fr) name column to ~0px. The filename text was present and correctly coloured — it was clipped to nothing by the zero-width column. This is the same root cause as the "cramped" feel.

Changes

  • Widen the workspace tabs to 1200px — via the --width-shell custom property .shell already reads, set on #app only when a rail slot is present (AccountLayout adds account-shell--rail). Account list pages and /admin (#dashboard) keep the 960px width, and signed-in-shell.css is untouched, so admin parity holds.
  • Rebalance the file-table columns (minmax(0, 1fr) 64px 64px 92px 32px) so the name track always has room even at the narrow fallback width.
  • Show the file's leaf name — a new, unit-tested leafName() displays demographics-zodiac-….png instead of the full screenshots/either/280/… key, whose distinctive tail was being ellipsized away.
  • Cap the connected-work rail at 6 rows with a "show N more" toggle, so a busy workspace's Usage / Details / Quick-actions sections aren't buried under a wall of linked PRs.
  • Fix the people tab overflowing the rail.content is a grid with an implicit auto track, so it grew to the max-content width of the long uploads admin invite create … command and pushed the invite card across the rail. Clamp the track to minmax(0, 1fr) (scoped to rail pages via account-shell--rail) so long, non-wrapping content shrinks and scrolls in its own box. The shared signed-in-shell.css/account-shell.css (including its ≤680px mobile restack) are untouched.

Verification

  • Web typecheck 0 errors; full suite 1590 passed (+4 for leafName); oxlint + oxfmt clean.
  • Verified live against the deployed page by injecting the exact final CSS/behaviour: the name column renders filenames, the layout de-crowds, the rail collapses to 6 + "show N more" (surfacing the previously-buried usage/details panels), the people-tab card no longer overlaps the rail, and the long operator command scrolls within its box. Also confirmed no overflow at a mobile-narrow (~400px) column.

Notes

Web-only (apps/web), no changeset — apps/web is on the changeset ignore list (Workers-deployed). Admin isolation preserved: signed-in-shell.css and all #dashboard/admin files have an empty diff.

The files-tab name column rendered blank: the signed-in shell caps at
960px, so the workspace view's main column was too narrow for the file
table's fixed columns (size/type/visibility/menu ~392px). That collapsed
the minmax(0,1fr) name track to ~0px, clipping the (present, correctly
coloured) filename text to nothing.

- Widen the workspace tab pages to 1200px via the --width-shell custom
  property the shell already reads, applied only when a rail slot is
  present (AccountLayout adds `account-shell--rail` to #app). Account
  list pages and /admin (#dashboard) keep the 960px width, and
  signed-in-shell.css stays untouched (admin parity preserved).
- Rebalance the file-table columns so the name track always has room.
- Display the file's leaf name (new tested `leafName`) instead of the
  full `screenshots/…/x.png` key, whose distinctive tail was otherwise
  ellipsized away.
- Cap the connected-work rail at 6 rows with a "show N more" toggle so a
  busy workspace's usage/details/quick-actions aren't buried under a wall
  of linked PRs.
@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • coderabbit:review
  • review
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cd14448c-1b02-4555-b2ee-e9bfa6e6e607

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/files-tab-polish

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 19, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
uploads-web 9744bae Commit Preview URL

Branch Preview URL
Jul 19 2026, 08:59 PM

The people tab's invite card overflowed under the summary rail: `.content`
is a grid with an implicit auto track, so it grew to the max-content width
of the long `uploads admin invite create …` command string instead of
clamping to the column, pushing the card across the rail.

Clamp the content track to minmax(0, 1fr), scoped to rail pages
(`account-shell--rail`), so long non-wrapping content shrinks and scrolls
within its own box (the command's `overflow-x: auto` already handles that).
Verified on the people tab and at a mobile-narrow width; the existing
account-shell.css ≤680px restack is unaffected, and /account and /admin are
untouched.
@zachdunn
Zach Dunn (zachdunn) merged commit 9c57f73 into main Jul 19, 2026
4 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the claude/files-tab-polish branch July 19, 2026 21:01
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