Skip to content

fix(ui): nothing in the bottom band covers anything else (T-109) - #101

Merged
CLYEH merged 7 commits into
developfrom
fix/ui-poi-strip-dock-overlap
Sep 2, 2026
Merged

CLYEH merged 7 commits into
developfrom
fix/ui-poi-strip-dock-overlap

Conversation

@CLYEH

@CLYEH CLYEH commented Sep 2, 2026

Copy link
Copy Markdown
Owner

What

T-109 — the loaded-categories strip (.poi-strip, bottom-left) grew right and up as categories loaded and ran under the Places dock (.dock, centred, out of flow). Nothing bounded the strip's right edge against the dock's left edge.

Two fixes, one mechanism. The dock publishes its own box as --dock-w / --dock-h (a ResizeObserver writing CSS variables, no React state — usePublishedBox.ts, replacing usePublishedWidth.ts).

  1. Strip stops before the dock. Above 640 px, while the dock is the bare Places pill, .poi-strip caps at (100% − var(--dock-w)) / 2 − 16px and wraps upward instead of running under the dock. .corner gets the mirror cap, so at ≥921 px the attribution wraps to two lines beside the pill rather than one line under it. The dock is centred on the bottom bar in both chromes (human: exactly; agent: −5 px), so the halving holds for any dock content and any lane width.
  2. The attribution is never covered. Found while measuring: with browsed chips on the dock (.dock-actives) it is 320–815 px wide and covered the OpenStreetMap attribution — a licence condition — at every width from 641 to 1024 (human) / 1440 (agent), links included, so they could not be clicked. The moment a browsed chip appears, .map-wrap:has(.dock-actives) .bottom-bar lifts the whole bar above the dock by var(--dock-h) + 28px — the same arrangement the phone tier already uses, applied when the collision appears rather than at a width. Nothing wraps, narrows or hides; the landing map (no browsed chip, no .dock-actives) is untouched. First use of :has() in the codebase; the rules live only inside @media (min-width: 641px), so a browser without it keeps today's layout.

How verified

  • Headless Chromium, getBoundingClientRect() intersection of poi-loaded × places-dock at 1440 / 1024 / 768 / 390 with 3 / 6 / 10 / 15 loaded categories, human and agent chrome: 22 of 40 cases overlapped before, 0 of 40 after; boundary sweep at every tier edge (641 … 1920) with 15 chips and the widest dock: 0 px in all 27 cases (--dock-w ranged 160 → 786 px, which is why a constant would have been wrong).
  • Attribution / badge / whisper × dock with three browsed chips: 0 px at every width from 641 to 1440 in both chromes after the fix; every attribution link stays visible and on screen.
  • Landing page: pixel-identical bottom band with no browsed chip at 641 … 1440.
  • Regression gate (new): e2e/bottom-band.spec.ts. Layout is not measurable in the node vitest environment, so the gate is e2e: an 18-cell matrix (921 / 1024 / 1440 px × human / agent chrome × none / 3 browsed / 15 loaded categories) asserting zero boundingBox() intersection between the dock and the strip, the attribution and the badge, and document.elementFromPoint landing on every attribution link. Content states are reached by hand in the Places tray (any real tool call would wake the page into agent chrome and hollow out the human cells). 13 of 18 cells fail on develop (e.g. dock {x:230,y:753,w:460,h:131} overlaps attribution {x:612,y:864,w:295,h:22} at 921 px human/3 browsed); 54/54 pass on this branch with --repeat-each=3.
  • Review (adversarial, against the decision record): merge after fixes — stale comment, a duplicate .badge rule and the usePublishedBox header contract; all applied in the follow-up commit.
  • On the final commit (merged with develop at 7d42296): pnpm check green (63 files / 1,461 tests); pnpm build green; full pnpm test:e2e green (161 passed, 4 skipped).

Rides along:

  • F-16 — e2e/awakening-flight.spec.ts read bounds immediately after setViewportSize and raced the republish (~4/24 on develop). It now captures the raw bounds tuple before the resize and waits (bounded 1,500 ms, no sleep) until it changes; 48/48 with --repeat-each=12.

Known, not fixed:

  • F-14: at ≤640 px the strip overflows the bar's left edge by 6–22 px because .corner is flex-shrink: 0; text stays readable.
  • In agent chrome at 921 px the widest dock's left edge sits 2.3 px outside the canvas; clipped, not covering anything.
  • During the awakening animation (~0.9 s) the lane opens before the dock re-centres, so the strip and dock can brush transiently; settled state is 0 px.

Task: T-109, F-16

CLYEH and others added 7 commits September 2, 2026 12:55
The bottom-left disclosure grew right and up as categories loaded while the
Places dock sat centred over the same band, absolutely positioned and out of
the flow: nothing bounded the strip's right edge against the dock's left one.
With fifteen loaded-but-unpainted categories and three browsed chips the two
overlapped by 720px at 1440, 449px at 1024 and 319px at 768 — the counts and
the browsed chips illegible at once, and the strip is the only thing on screen
that says an agent put thousands of searchable places in memory.

The dock now publishes its own width as `--dock-w` and the strip stops in the
gutter beside it. Measured rather than a constant, because the dock's width is
content: 159px for the pill alone, ~720px with three named chips, and a person
changes which of the two it is with a tap. The strip wraps into more rows past
the cap instead of being cut, which is the choice the row already made.

Verified in Chromium at 390/641/700/768/900/921/1024/1240/1241/1360/1440/1600/
1920, in human and agent chrome, at 0/3/6/10/15/18 loaded categories: overlap
is now 0px in every case (was non-zero in 22 of 40 before).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GvdrJcKNZkfREdb7QGRYYH
Three browsed chips make the Places dock 320-815px wide, which is more than
half the corridor at every width up to 1240 — and in agent chrome more than the
corridor itself, because the awake dock is centred on the corridor but sized
against the whole canvas. Measured with three kinds browsed, it covered the
OpenStreetMap attribution by 22-295px at 641-1024 in human chrome and at
641-1440 in agent chrome, the WebMCP badge by up to 255px and the corner
whisper by up to 87px. The licence links were not merely covered: they sat
under the chips, so they could not be clicked. "Data © OpenStreetMap
contributors" is a licence condition and may never be covered.

The bar now takes the row above the dock the moment a browsed chip lands on it
— the arrangement the phone tier already uses for this exact collision, applied
when the collision appears rather than at a width. Nothing wraps and nothing is
hidden: licence, badge, whisper and disclosure keep the form they have on the
landing map, one band higher. With no browsed chip the dock is only the pill,
the bar stays in the corner, and the corner takes the mirror image of the
strip's gutter cap instead — at 921px in agent chrome the 295px licence was
still wider than the 216px beside the bare pill, so there it wraps to two
lines, as the tier below 921px already does.

The dock publishes its height as well as its width for this (`--dock-h`), and
the observer now reads the box the ResizeObserver already delivers rather than
forcing a reflow on the frame the map is resizing its own canvas.

Verified with three kinds browsed and with fifteen categories loaded but none
browsed, at 641/700/768/900/921/1024/1240/1440 in both chromes: attribution,
badge and whisper against the dock are all 0px (was non-zero in 14, 8 and 5 of
16 cases), no licence link is clipped or lands under the dock, and the landing
map is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GvdrJcKNZkfREdb7QGRYYH
- The dock's 12px bottom inset is the ≤920 tier, not 1361; the comment said
  the wrong tier.
- The `.badge` wrap declarations live in the `.badge` block, not 135 lines
  away in the strip section where a later `flex-wrap` would silently win.
- `usePublishedBox` takes a `--`-prefixed name at the type level, so a bare
  "dock" is a compile error rather than a silent `setProperty` no-op; its
  header no longer claims a stylesheet default that does not exist.
- "The landing map is untouched" is qualified to human chrome: in agent
  chrome at 921–1150 the licence line wraps beside the pill where it used to
  run under it.

Task: T-109
Pin the docs/TASKS.md gate for the dock/strip/attribution/badge overlap
fix (fix/ui-poi-strip-dock-overlap): a 3-width x 2-chrome x 3-content-
state matrix (921/1024/1440, human/agent, none/3-browsed/15-loaded)
asserts the Places dock never intersects the loaded-POI strip, the
licence attribution or the WebMCP badge, and that every attribution
link stays on screen and unobstructed. "15 loaded, 0 painted" and "3
painted" are both reached by tapping/clearing real chips in the Places
tray (browse-store.ts never unloads on removal), never through
find_features, since any real tool call would wake the page and
contaminate the human-chrome cells. Confirmed failing on develop's
pre-fix files (13/18 cells) before verifying green against the fix
(54/54 with --repeat-each=3).

Task: T-109
The mid-flight resize spec read `get_map_state` immediately after
`page.setViewportSize`, racing the window `resize` event (and
`onResize`'s own `pushBoundsFromMap()`) that republishes bounds --
`setViewportSize` resolves once the emulated viewport changes, not once
that event has actually dispatched and run. Poll the live store's raw
bounds instead of reading once, bounded well under the flight's own
remaining ease so a build that simply lands before resize runs cannot
pass for the wrong reason.

Task: F-16
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GvdrJcKNZkfREdb7QGRYYH
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
glassmap Ready Ready Preview Sep 2, 2026 6:40am UTC

@CLYEH
CLYEH merged commit 78d5f5c into develop Sep 2, 2026
3 checks passed
@CLYEH
CLYEH deleted the fix/ui-poi-strip-dock-overlap branch September 2, 2026 06:46

This branch was successfully deployed

1 active deployment
Preview — 125f2c48 Deployed Sep 2, 2026 by vercel[bot]
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