Skip to content

prototype: title-led session header exploration#1440

Open
simple-agent-manager[bot] wants to merge 1 commit into
mainfrom
prototype/title-led-session-header
Open

prototype: title-led session header exploration#1440
simple-agent-manager[bot] wants to merge 1 commit into
mainfrom
prototype/title-led-session-header

Conversation

@simple-agent-manager

Copy link
Copy Markdown
Contributor

Summary

A self-contained, unauthed UI prototype (not a production feature) exploring a redesign of the project-chat SessionHeader, in response to the question of whether the expand/collapse dropdown is being misused.

The direction: make the collapsed row minimal and turn the expand/collapse dropdown into the canonical details surface — showing the FULL title, the initial prompt, and all exposed ports — rather than cramming everything into the header.

Route: /prototype/session-header (public, no auth).

Variations

Three collapsed-row treatments share one ExpandedDetails dropdown:

  • A — minimal: title (truncate) · status · chevron. Most title-forward.
  • B — two-line ⭐ (recommended, confirmed with Raphaël): title clamps to 2 lines; row 2 carries status · profile · first port · +N more. Richest without crowding.
  • C — scroll-strip: title truncates; secondary chips live in an intentional horizontal-scroll strip.

In all three, the dropdown holds the full title (overflow-wrap: anywhere), the initial prompt (scrollable), lineage/profile/agent meta, infra rows, and all ports (wrapped).

Stress testing

Mock data deliberately pushes the boundaries: 50 open ports, paragraph-length titles, no-space mega-word titles, long lineage / branch / workspace / node names, plus typical/minimal/empty scenarios.

A live overflow scanner outlines any element with genuine visible horizontal overflow in red (it correctly ignores truncate ellipsis and intentional scroll containers). Final result: 0 unintended overflows across all 30 scenario × variation × state combos at both 375px mobile and desktop-fluid.

Note

Per the prototype skill, this page + its App.tsx route/import MUST be removed before any merge to main. This PR is for design review only.

🤖 Generated with Claude Code

Self-contained, unauthed prototype at /prototype/session-header exploring a
minimal collapsed session header where the expand/collapse dropdown becomes the
canonical details surface (full title + initial prompt + all ports).

- Three header variations (A minimal, B two-line, C scroll-strip)
- Stress-test mock data: 50 ports, huge titles, long lineage/branch names
- Live overflow scanner highlights unintended horizontal overflow in red
- Mobile-first (375px) + desktop fluid side-by-side preview

Prototype only — removed before any merge to main per the prototype skill.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
5.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@codspeed-hq

codspeed-hq Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing prototype/title-led-session-header (91bf927) with main (cf86de4)

Open in CodSpeed

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