Repository navigation
fix(web): Overview pane shadows, scroll edges, stacked rows and Recently spacing - #2816
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Before / after (left = before, right = after)Playwright, mocked API data (busy project: 40 inbox items including a stack, 12 running chats with long titles, an account at 6% of its week, two failing automations), dark SAM Glass. 1. Pane shadows cut off at the scroller's edge — phone 375×667, scrolled to the end. Before: the shadows under and beside each pane stop in a hard rectangle at the scroller's box (bottom-left/right of Recently). Cause: 2. Same on desktop 1280×800 — rail scrolled to the end. Before: the rail's panes have their shadows boxed at the rail's edges and the rail stops 16px short of the screen top, slicing a pane in mid-air. Cause: 3. Panes sliced along an invisible line — phone mid-scroll. Before: a pane scrolled up is cut 10px below the app bar and 14px above the task box, leaving floating slivers. Cause: the scroller stopped a gap short of its neighbours. After: panes slide out at the app bar's and task box's edges. 4. Worst case — desktop with the task box's options open. Before: the Needs you pane is severed above the grown task box, leaving a stub of its border. After: it passes under the task box's edge. 5. Stacked inbox row shows its back cards through the front card — phone, zoomed. Cause: the two translucent back cards sat partly behind the translucent front card, so their outlines showed through it. After: each back card is clipped to the 3px strip below the card in front (shared 6. Same row on desktop. Also checked: light theme (phone + desktop), Focus and Zen desktop modes, profile picker and options popovers — covered by the new Playwright cases. |
|
@coderabbitai review |
Action not completed
|
…tly spacing - Overview scrollers bleed into the frame, app bar, task box and other column and pad back, so no scroller cuts a pane's shadow and scrolled panes leave at a real edge. AppShell exposes --sam-shell-frame / --sam-shell-gap. - InboxRow back cards are clipped to the strip below the front card, so they no longer show through it. - Recently's idea rows share the Overview row shape with its pull requests; IdeaRow's unused compact mode is removed. - Playwright: measured checks for unclipped pane shadows and Recently row alignment, both red on the pre-fix code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… reachable Review follow-ups: in Zen the main column's left neighbour is the screen edge, so AppShell exposes --sam-shell-inset-start; the main column stacks above the rail so its scrollbar in the shared gutter is not under the rail's box. Playwright covers Focus, Zen and the light theme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… front card Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8791256 to
8e4a98e
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Production deploy status: this PR merged at 20:43Z but is not live yet. The first real Deploy Production run that included it, 43977868243 (main tip 2c5ee4d, 23:32Z), failed. Cloudflare rejected the API Worker This PR changes only
A human or the owning agents need to bring the worker's startup CPU back under the limit. Every later main deploy will fail the same way until then. |



Summary
Raphaël reported on the Project Overview (
/projects/:id/overview): "some of the layering/spacing is a bit wacky. Shadows being clipped. Elements not overlapping properly." His screenshot was not available, so I captured the page locally with busy-project mocks at 375×667 and 1280×800 (dark SAM Glass, top and scrolled). I tested on the F2 layout (#2793), which is about to ship. Four defects matched his description. Each fix targets the cause.overview-scroll) and the desktop columns (overview-main,overview-rail) areoverflow-y-autoand exactly as wide as the panes, so every pane shadow stopped at the scroller's box. That breaks rule 80: nothing between a pane and the void may clip. Fix: each scroller's box now reaches out to whatever sits next to it (the screen edge, the app bar or nav, the task box, the other column) and pads back the same distance (OverviewLayout). The panes don't move, and their shadows now fall inside the scroller.AppShellexposes its frame and gaps as--sam-shell-frame,--sam-shell-gapand--sam-shell-inset-start, and uses them for its own padding. Values are unchanged: 10/6/16px frame, 10px gap, gutter or 0 column gap.md:z-10), so its scrollbar stays reachable where the two boxes overlap in the gutter.InboxRow). That component is shared with the Inbox pages, which get the same fix.IdeaRow(px-4, dividers, bold, chevron, 32px tinted icon), next to the Overview's own pull-request rows. Fix: aRecentIdeaRowin the Overview row shape, so both share one icon column and text edge.IdeaRow'scompactmode no longer had a caller, so I removed it.IdeaStateIcongains aglyphsize.Looked at and left alone: gaps between panes (14px everywhere), the profile picker and options popovers (correct stacking), and the content of This week, Budgets and Automations. The reviewer suspected the Effort select in the composer options was clipped. I measured it: the select is 128px in a 128px track and ends 13px inside its panel, so I made no change.
No behaviour changes and no new sections. Docs:
docs/guides/sam-glass-design-system.mdgains one paragraph on this bleed pattern for pages whose panes stack in a single scrolling column.Merge order: built on #2793 (F2), now merged; this branch is rebased onto main and the diff is only this change.
Owner instruction: skip staging and ship straight to production once CI, the reviewers and the Playwright visual audit pass (SAM task 01M7JPQYXA9P0SGVE5ZMTHPGZ5).
Validation
pnpm lint(eslint and prettier on changed files)pnpm typecheck(web)pnpm test: web unit tests for components, overview, ideas and inbox. 220 files, 2651 tests passed.project-overview-audit.spec.tspassed (34 at 375×667 and 1280×800).inbox-audit,ideas-list-audit,ideas-ui-audit,focus-mode-audit,chat-immersive-auditandsam-glass-chat-auditpassed (225) for the shared InboxRow, IdeaRow and AppShell.md:z-10)Staging Verification (REQUIRED for all code changes — merge-blocking)
Raphaël asked for this to skip staging and ship straight to production once CI, the reviewers and the Playwright visual audit pass. The change is CSS layout only and has no API, data or infrastructure changes.
Staging Verification Evidence
N/A: skipped on the owner's instruction ("Ship straight to prod"). The production deploy will be monitored after merge.
UI Compliance Checklist (Required for UI changes)
UI Screenshot Evidence
All screenshots were taken with Playwright against mock API data at 375×667 and 1280×800. Before/after images (left = before, right = after): #2816 (comment)
Surface: Project Overview (pane shadows, scroll edges, Recently)
Surface: Inbox stacked row (shared InboxRow, Overview Needs you and Inbox pages)
End-to-End Verification (Required for multi-component changes)
Data Flow Trace
N/A: layout and styling only; no data path changed.
Untested Gaps
The Playwright checks run headless with hidden scrollbars. The reviewer checked the gutter scrollbar with scrollbars enabled, and a hit-test assertion now pins it.
Post-Mortem (Required for bug fix PRs)
What broke
On the Project Overview, pane shadows were cut into hard boxes. Panes scrolled out of view were sliced along invisible lines short of the app bar and task box. The stacked inbox row showed its back cards through the front one. The Recently pane mixed two row shapes.
Root cause
OverviewLayout(Inbox slice F1, #2775) made its phone scroller and desktop columnsoverflow-y-autoboxes exactly the size of their panes.InboxRow's stack effect (slice C, #2779) put translucent back cards behind a translucent front card. F1 reused the Ideas page'sIdeaRowin a compact mode that kept that page's row geometry.Class of bug
A clipping container set inside a design rule ("nothing between a pane and the void may clip"), invisible to the audit that was meant to check it.
Why it wasn't caught
project-overview-audit.spec.ts'scapture()setsoverflow: visibleon every ancestor before its full-page screenshot, so its images could never show clipping. No assertion measured a pane against its clipping ancestors.Process fix included in this PR
expectPaneShadowsUnclippedinapps/web/tests/playwright/project-overview-audit.spec.tsmeasures every pane against every clipping ancestor at the top and end of scroll. The SAM Glass guide documents the bleed pattern for stacked-pane pages.Post-mortem file
tasks/archive/2026-11-16-overview-layering-spacing-shadows.mdSpecialist Review Evidence (Required for agent-authored PRs)
needs-human-reviewlabel added and merge deferred to human (N/A: all completed)--sam-shell-inset-startand a Zen test (ece4f63). MEDIUM: main scrollbar under the rail in the gutter. Fixed withmd:z-10and a hit-test assertion (ece4f63). LOW: Effort select clip. Measured as not clipped, so no change. LOW: test gaps. Light theme and the Inbox/Ideas audits were done. Rubric: 5/4/5/4/4 before the fixes.CodeRabbit Review Evidence (Required for agent-authored PRs)
CodeRabbit Notes
Requested at 18:08Z, when the PR was marked ready, with the
coderabbit-reviewlabel. At 18:12Z CodeRabbit replied "Review limit reached: You've used all free OSS reviews for now" (a rate limit). Under rule 25 the wait ended there and no review arrived. Merging on the remaining gates.Exceptions (If any)
Agent Preflight (Required)
Classification
External References
N/A: no external APIs. Internal sources:
.claude/rules/80-sam-glass.md,docs/guides/sam-glass-design-system.md, thesam-glassskill, and rules 17, 56 and 62.Codebase Impact Analysis
apps/webonly:pages/project-overview/index.tsx(OverviewLayout)pages/project-overview/sections.tsx(RecentIdeaRow)components/AppShell.tsx(shell CSS variables; same values)components/inbox/InboxRow.tsx(stack back cards; shared with the Inbox pages)pages/ideas/parts.tsx(IdeaStateIconglyph size;IdeaRowloses its unusedcompact)Documentation & Specs
docs/guides/sam-glass-design-system.md: one paragraph on the scroller bleed. The public docs (apps/www/.../guides/project-overview.md) describe behaviour, which is unchanged.Constitution & Risk Check
Principle X (simplicity): a CSS-only fix at the cause, with no new components beyond one row. Principle XI: no new hardcoded limits; spacing comes from shell CSS variables. Risk: AppShell padding is now set through variables, with values checked identical in each branch; the focus-mode, chat-immersive and glass chat audits pass.
🤖 Generated with Claude Code