Skip to content

fix(v2): make the showcase room scrollable - #575

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix-showcase-scroll
Jul 2, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix-showcase-scroll

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Bug: the public showcase room can't scroll — a long conversation is clipped below the fold. Content runs ~1409px against a 900px viewport, so ~500px (the tail of the thread + the footer CTA) is unreachable.

Cause: the showcase root is <div className="v2-root v2-showcase">. The base .v2-root is a fixed-height app shell (height:100vh; overflow:hidden), but the showcase is a scroll-the-page layout (min-height:100vh) — so the shell clips it. The agent-profile page hit the same thing and fixed it with .v2-root.v2-aprofile { overflow-y:auto }; the showcase never got that override.

Fix: .v2-root.v2-showcase { height:100vh; overflow-y:auto; overflow-x:hidden; }. Verified live via CSS injection — container goes from clipped to scrollable.

🤖 Generated with Claude Code

The showcase root carries the base `.v2-root` class, which is a fixed-height app
shell (`height:100vh; overflow:hidden`). The showcase itself is a scroll-the-page
layout (`min-height:100vh`), so a long conversation was clipped below the fold —
content ran ~1400px against a 900px viewport, leaving ~500px (the end of the
thread + the footer CTA) unreachable with no scroll.

Override the root into a full-height scroll container, exactly as
`.v2-root.v2-aprofile` already does for the agent profile page.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9
@lilyshen0722
lilyshen0722 merged commit 02e0e6b into main Jul 2, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the fix-showcase-scroll branch July 2, 2026 20:56
lilyshen0722 added a commit that referenced this pull request Jul 2, 2026
…convention (#576)

Captures two generalizable patterns that surfaced this session:

- New runbook docs/runbooks/agent-avatar-resolution-and-recovery.md — an agent
  avatar is read from FIVE divergent stores (Mongo profilePicture, PG
  profile_picture, mediaobjects vs legacy files bytes, AgentRegistry.iconUrl,
  AgentTemplate.iconUrl), each with its own upload id + absolute host, so each
  breaks independently after a domain/object-store change. Documents the stores,
  diagnosis, idempotent recovery, and the durable fix (#569/#570). Cross-linked
  from AGENT_AVATARS.md.
- design-system README "Layout rules" now documents the .v2-root app-shell scroll
  containment convention: .v2-root is height:100vh; overflow:hidden, so full-page
  scroll surfaces must override with .v2-root.v2-<surface>{overflow-y:auto}. The
  showcase missed it and clipped ~500px incl. its footer CTA (#575).


Claude-Session: https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9

Co-authored-by: Claude Fable 5 <[email protected]>
lilyshen0722 added a commit that referenced this pull request Jul 2, 2026
…out guards (#577)

* docs(claude.md): Design Rule 9 — ship with proof + commit KB; add v2 layout guards

- CLAUDE.md Rule 9: code lands with a test at the right tier; v2 layout/CSS
  changes need a real-browser check (jsdom is layout-blind); git-commit KB the
  same session it's written.
- frontend/src/v2/__tests__/v2-layout-invariants.test.ts: CSS-rule-presence
  guards for the two invariants that regressed in prod — the Your-Team card name
  owning its line (#568) and the showcase being its own scroll container (#575),
  plus the agent-profile sibling. A stand-in until a browser-layout test tier
  exists; it guards the exact failure mode (an override rule going missing).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MnRCAFgjrrGZxo9VRCmCm9

* docs(claude.md): add Playwright-CI reactivation trigger to Rule 9

Make the deferral a tracked decision (repo's paused-with-trigger pattern):
stand up a browser-layout CI tier only when a 2nd person is regularly shipping
UI or the shell has real users — until then, presence test + in-browser habit.

---------

Co-authored-by: Claude Fable 5 <[email protected]>
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