Skip to content

fix(web): Overview pane shadows, scroll edges, stacked rows and Recently spacing - #2816

Merged
simple-agent-manager[bot] merged 6 commits into
mainfrom
sam/fix-layering-spacing-clipped-thpgz5
Nov 16, 2026
Merged

simple-agent-manager[bot] merged 6 commits into
mainfrom
sam/fix-layering-spacing-clipped-thpgz5

Conversation

@simple-agent-manager

@simple-agent-manager simple-agent-manager Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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.

  1. Pane shadows cut off in hard rectangles. The phone scroller (overview-scroll) and the desktop columns (overview-main, overview-rail) are overflow-y-auto and 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. AppShell exposes its frame and gaps as --sam-shell-frame, --sam-shell-gap and --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.
  2. Panes sliced in mid-air when scrolled. The same scrollers stopped a gap short of their neighbours. A pane scrolling away was cut along an invisible line 10px under the app bar or 14px above the task box. It was worst with the task box options open, where the Needs you pane was severed and left a stub of its border. The fix in item 1 makes panes leave at the real edge. On desktop the main column now stacks above the rail (md:z-10), so its scrollbar stays reachable where the two boxes overlap in the gutter.
  3. Stacked inbox row ("3 from Ship billing") showed its back cards through the front card. The back cards sat partly behind the translucent front card. Fix: clip each back card to the 3px strip it shows below (InboxRow). That component is shared with the Inbox pages, which get the same fix.
  4. Recently mixed two row shapes. Its idea rows used the Ideas page's full-width IdeaRow (px-4, dividers, bold, chevron, 32px tinted icon), next to the Overview's own pull-request rows. Fix: a RecentIdeaRow in the Overview row shape, so both share one icon column and text edge. IdeaRow's compact mode no longer had a caller, so I removed it. IdeaStateIcon gains a glyph size.

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.md gains 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.
  • Playwright: project-overview-audit.spec.ts passed (34 at 375×667 and 1280×800). inbox-audit, ideas-list-audit, ideas-ui-audit, focus-mode-audit, chat-immersive-audit and sam-glass-chat-audit passed (225) for the shared InboxRow, IdeaRow and AppShell.
  • New measured checks, each shown red on the pre-fix code and green after:
    • every pane's clipping ancestor leaves room for its shadow on both sides and below, at the top and end of scroll, on phone, desktop, Focus, Zen and the light theme
    • the gutter strip belongs to the main column, so its scrollbar is reachable (red without md:z-10)
    • Recently's idea and pull-request rows share an icon column and text edge
    • the stacked row's back cards cannot be hit inside the front card (hit-testing honours clip-path), and can be hit below it
  • If this PR changes candidate selection for a sweep/cron/alarm loop: N/A

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 deployment green: skipped on the owner's instruction
  • Live app verified via Playwright: skipped on the owner's instruction; verified locally with Playwright against mocked API data
  • Existing workflows confirmed working: local audits for the shared surfaces (see Validation)
  • New feature/fix verified on staging: skipped on the owner's instruction
  • Infrastructure verification completed: N/A, no infra changes
  • Mobile and desktop verification notes added for UI 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)

  • Mobile-first layout verified
  • Accessibility checks completed (RecentIdeaRow keeps the sr-only state label; icons are aria-hidden; links keep the global focus ring)
  • Shared UI components used or exception documented
  • Playwright visual audit run locally at mobile (375x667) and desktop (1280x800) with stress data; no horizontal overflow
  • Desktop and mobile screenshots for every changed UI surface are posted in a PR comment and linked below
  • Agent/human reviewed the posted screenshots for quality control and found no visual issues, or fixed/documented every issue found

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 traced: N/A, styling only
  • Capability test: N/A, styling only; covered by the measured Playwright checks
  • All spec/doc assumptions verified against code
  • Gaps documented below

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 columns overflow-y-auto boxes 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's IdeaRow in 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's capture() sets overflow: visible on 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

expectPaneShadowsUnclipped in apps/web/tests/playwright/project-overview-audit.spec.ts measures 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.md

Specialist Review Evidence (Required for agent-authored PRs)

  • All local reviewers completed and findings addressed before merge
  • If any reviewer did NOT complete: needs-human-review label added and merge deferred to human (N/A: all completed)
Reviewer Status Outcome
ui-ux-specialist ADDRESSED HIGH: Zen mode left shadow clipped. Fixed with --sam-shell-inset-start and a Zen test (ece4f63). MEDIUM: main scrollbar under the rail in the gutter. Fixed with md:z-10 and 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.
task-completion-validator ADDRESSED WARN, no CRITICAL/HIGH. MEDIUM: the stacked-row fix had no discriminating test. Added a hit-test check, red without the clip-path. LOW: added a direct phone assertion that the scroller meets the app bar and task box. Other LOWs were optional (sr-only label unit assertion, acceptance-criteria wording) and are not taken.

CodeRabbit Review Evidence (Required for agent-authored PRs)

  • CodeRabbit requested when the PR was marked ready for review
  • Waited about 15 minutes (or until a skip, rate-limit or quota reply)
  • Either CodeRabbit reviewed and no CodeRabbit feedback is unresolved, or it did not review and the observed outcome is recorded below

CodeRabbit Notes

Requested at 18:08Z, when the PR was marked ready, with the coderabbit-review label. 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)

  • Scope: Phase 6 staging verification
  • Rationale: the project owner asked for this fix to skip staging and ship straight to production once CI, the reviewers and the Playwright audit pass. It is CSS only.
  • Expiration: this PR

Agent Preflight (Required)

  • Preflight completed before code changes

Classification

  • external-api-change
  • cross-component-change
  • business-logic-change
  • public-surface-change
  • docs-sync-change
  • security-sensitive-change
  • ui-change
  • infra-change

External References

N/A: no external APIs. Internal sources: .claude/rules/80-sam-glass.md, docs/guides/sam-glass-design-system.md, the sam-glass skill, and rules 17, 56 and 62.

Codebase Impact Analysis

apps/web only:

  • 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 (IdeaStateIcon glyph size; IdeaRow loses its unused compact)

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

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. 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

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
  • 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

@simple-agent-manager

Copy link
Copy Markdown
Contributor Author

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: overview-scroll is overflow-y-auto and exactly pane-width. After: shadows fall freely into the frame. Recently's idea rows now line up with its pull requests (fix 4).
phone end of scroll — open

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: overview-rail / overview-main are pane-width overflow-y-auto boxes. After: shadows unclipped, panes leave at the screen edge, Recently aligned.
desktop end of scroll — open

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.
phone mid scroll — open

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.
desktop options open — open

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 InboxRow, so the Inbox pages get the same fix).
phone stacked row — open

6. Same row on desktop.
desktop stacked row — open

Also checked: light theme (phone + desktop), Focus and Zen desktop modes, profile picker and options popovers — covered by the new Playwright cases.

@simple-agent-manager
simple-agent-manager Bot marked this pull request as ready for review November 16, 2026 18:08
@simple-agent-manager simple-agent-manager Bot added the coderabbit-review Trigger CodeRabbit review for opt-in PRs label Nov 16, 2026
@raphaeltm

Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

raphaeltm and others added 5 commits November 16, 2026 19:25
…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>
@simple-agent-manager
simple-agent-manager Bot force-pushed the sam/fix-layering-spacing-clipped-thpgz5 branch from 8791256 to 8e4a98e Compare November 16, 2026 19:30
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@simple-agent-manager
simple-agent-manager Bot merged commit 43d436e into main Nov 16, 2026
25 checks passed
@simple-agent-manager

Copy link
Copy Markdown
Contributor Author

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 sam-api-prod: Script startup exceeded CPU time limit [code 10021]. Production stays on 470bfe6 from 20:28Z.

This PR changes only apps/web CSS/TSX and adds no code to the API worker. The commits since the last good deploy that do add to apps/api/src and packages/*/src:

PR Lines added / removed
#2781 Inbox slice E +2131
#2784 Insights H +1531
#2810 Insights A +1198
#2812 +640 / −466
#2813 +254
#2806 +71
#2785 +29

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coderabbit-review Trigger CodeRabbit review for opt-in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant