Skip to content

feat(shell): add a phone top bar and fit the chat composer - #134

Merged
jbouder merged 2 commits into
mainfrom
feat/mobile-topbar
Dec 4, 2026
Merged

jbouder merged 2 commits into
mainfrom
feat/mobile-topbar

Conversation

@jbouder

@jbouder jbouder commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

What changed

Top bar on phones (760px and below)

  • Sticky, frosted bar with the menu button and the page's name. The name comes from the sidebar item the page sits under (/jobs/nightly/edit shows Workflows), or its section.
  • Replaces the floating menu button, which sat over the page as it scrolled.
  • Drops the 64px top padding that cleared that button.
  • Home's greeting fits on one line, with 32px above it.
  • A new chat's mark and gaps shrink so the composer and suggestions fit on one screen.
  • Hidden above 760px. Desktop is unchanged.

Chat composer on narrow screens

  • The chat dock's grid column sized to its content, so the composer ran off the right edge on phones. It now shrinks (minmax(0,1fr)).
  • Chips and icon buttons stay on one line and at full size. Mic and send were being squeezed to 18px.
  • The model name truncates with an ellipsis and shows in full on hover.
  • At 600px and below, Connectors and Memory show icon and count, and the model drops its provider prefix. Full names stay in the aria-labels.

Why

The chat composer and the header looked broken on phones: wrapped chip labels, a clipped send button, and a menu button floating over content.

How to test

  • pnpm dev in ui/, open DevTools' device toolbar at 375 to 390px wide.
  • Home: bar shows "Home", greeting on one line, scroll and content passes under the bar.
  • Chat: composer fits, chips show icon and count, model name truncates.
  • Workflows and Settings: bar shows the right name. The menu opens the drawer.
  • Widen past 760px: no bar, sidebar as before.
  • pnpm vitest run: AppShell.test.tsx now checks the bar's contents and pageName.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QW4EewVw4PsagWuFNuGMGY

jbouder and others added 2 commits December 4, 2026 11:46
The chat dock's grid column sized to its content, so the composer could
never be narrower than its toolbar and ran off the right edge on phones.
Chip labels also wrapped onto two lines.

- Let the dock's column shrink (minmax(0,1fr))
- Keep chips and icon buttons on one line and at full size
- Truncate the model name with an ellipsis, with the full name as title
- At 600px and below, show Connectors and Memory as icon and count, drop
  the model's provider prefix, and tighten the bar's padding

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QW4EewVw4PsagWuFNuGMGY
On phones the menu button floated alone in the corner, over the page as
it scrolled, and nothing said which page was open. Home's greeting
wrapped onto three lines.

- Add a sticky, frosted bar at 760px and below with the menu button and
  the page's name (its sidebar item, or its section)
- Drop the 64px top padding that cleared the floating button
- Fit Home's greeting on one line, with room above it
- Shrink a new chat's mark and gaps so the composer fits on one screen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QW4EewVw4PsagWuFNuGMGY
@jbouder
jbouder deployed to branch-images December 4, 2026 17:01 — with GitHub Actions Active
@jbouder
jbouder merged commit cb15c36 into main Dec 4, 2026
11 checks passed

This branch was successfully deployed

2 active deployments
branch-images — 3d87e268 Deployed Dec 4, 2026 by jbouder via Copy to Quay #29
ui-preview — 3d87e268 Deployed Dec 4, 2026 by jbouder via Deploy to Cloudflare Pages #34
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