Skip to content

fix(#485): un-clip the room server URL + header scheme/band tidy - #487

Open
WilliamKarolDiCioccio wants to merge 2 commits into
mainfrom
fix/room-header-server-url-clip-485
Open

fix(#485): un-clip the room server URL + header scheme/band tidy#487
WilliamKarolDiCioccio wants to merge 2 commits into
mainfrom
fix/room-header-server-url-clip-485

Conversation

@WilliamKarolDiCioccio

@WilliamKarolDiCioccio WilliamKarolDiCioccio commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Fixes #485. Rebased onto current main — trimmed to only what main doesn't already have.

Note on scope: while this branch was open, main independently landed the room de-dup (edb6c155, #465) and the lobby-AppBar server name. Those parts of the original branch are now redundant and have been dropped. What remains is the actual filed bug (#485) plus the two small tidies main didn't do.

1. Room server URL clipped (#485)

An AppBar's toolbar is a fixed kToolbarHeight (56px) box that silently clips an oversized title. With the tall brand font the two-line room title (name over server) fills 56px at default scale (~4px slack) and overflows once OS text size climbs past ~1.15×, clipping the server line's descenders — exactly the screenshot. Reproduces only with enlarged OS text (not on a stock emulator); the defect is a fixed-height bar that can't fit its own content.

Fix: grow AppBar.toolbarHeight to fit the measured two-line title at the current text scale, floored at kToolbarHeight. Per Alan's suggestion, drop the noisy http(s):// scheme and lead the server line with a text-scaling link glyph.

2. Lobby header consistency

  • Strip the http(s):// scheme from the selected server's name in the narrow lobby AppBar (shared stripUrlScheme helper), so it reads the same as the room header.
  • Remove the in-pane server title band: the server is already named in the AppBar (narrow) and the always-visible sidebar (wide), so the band only repeated what's on screen. Drops the showServerHeading plumbing main added. Status banner unchanged.

Tests

  • Room: at 2.0× text scale the toolbar grows past the fixed default and the server line sits inside it; unnamed-server header shows the scheme-stripped address + link glyph.
  • Lobby: narrow names the server in the AppBar (scheme stripped, not in the pane); wide names it once (sidebar only), no AppBar, no band.
  • Full suite green (2184 tests, goldens excluded per macOS baseline); flutter analyze clean.

Touches room + lobby modules and a shared auth/server_entry.dart helper.

🤖 Generated with Claude Code

@WilliamKarolDiCioccio

Copy link
Copy Markdown
Collaborator Author

FYI @runyaga

@WilliamKarolDiCioccio WilliamKarolDiCioccio changed the title fix(room): stop clipping the server URL in the room header (#485) fix(room): fix the mobile room header — duplicate + clipped server URL (#485) Jul 31, 2026
@WilliamKarolDiCioccio WilliamKarolDiCioccio changed the title fix(room): fix the mobile room header — duplicate + clipped server URL (#485) AppBar overhaul: unify the room & lobby headers (#485) Jul 31, 2026
William Karol Di Cioccio and others added 2 commits July 31, 2026 18:02
The room header stacks the room name over the server it lives on. An
AppBar's toolbar is a fixed kToolbarHeight (56px) box that silently clips
an oversized title; with the tall brand font the two lines already fill it
at the default text scale and overflow once the OS text size climbs past
~1.15x, clipping the server line's descenders — the artifact in the issue
screenshot. It only reproduces with enlarged OS text (so not on a stock
emulator), but the defect is ours: a fixed-height bar that can't fit its
own content.

- Grow the AppBar toolbarHeight to fit the measured two-line title at the
  current text scale, floored at kToolbarHeight so the leading/trailing
  icon buttons keep their Material touch-target size and the bar stays
  uncramped at the default scale.
- Per Alan's suggestion, drop the `http(s)://` scheme and lead the server
  line with a link glyph that scales with the text; a human-readable server
  name (no scheme) passes through untouched. Shared stripUrlScheme helper
  added to server_entry.dart.

Adds a regression test at 2.0x text scale asserting the toolbar grew past
the fixed default and the server line sits inside it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Two small header tidies matching the room header pass:
- Strip the `http(s)://` scheme from the selected server's name in the
  narrow AppBar title (via the shared stripUrlScheme helper), so it reads
  the same as the room header's server line.
- Remove the in-pane server title band. The server is already named in the
  AppBar on narrow and in the always-visible sidebar on wide, so the band
  only repeated what was on screen. Drops the showServerHeading plumbing.

The status banner is unchanged. Wide test now asserts the address shows
once (sidebar only), no AppBar, no band.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@WilliamKarolDiCioccio
WilliamKarolDiCioccio force-pushed the fix/room-header-server-url-clip-485 branch from 437aaa6 to 75866e3 Compare July 31, 2026 16:02
@WilliamKarolDiCioccio WilliamKarolDiCioccio changed the title AppBar overhaul: unify the room & lobby headers (#485) fix(#485): un-clip the room server URL + header scheme/band tidy Jul 31, 2026
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.

Server URL is "clipped" at bottom of text

1 participant