Repository navigation
fix(ui): nothing in the bottom band covers anything else (T-109) - #101
Merged
Merged
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(aResizeObserverwriting CSS variables, no React state —usePublishedBox.ts, replacingusePublishedWidth.ts)..poi-stripcaps at(100% − var(--dock-w)) / 2 − 16pxand wraps upward instead of running under the dock..cornergets 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..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-barlifts the whole bar above the dock byvar(--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
getBoundingClientRect()intersection ofpoi-loaded×places-dockat 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-wranged 160 → 786 px, which is why a constant would have been wrong).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 zeroboundingBox()intersection between the dock and the strip, the attribution and the badge, anddocument.elementFromPointlanding 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..badgerule and theusePublishedBoxheader contract; all applied in the follow-up commit.7d42296):pnpm checkgreen (63 files / 1,461 tests);pnpm buildgreen; fullpnpm test:e2egreen (161 passed, 4 skipped).Rides along:
e2e/awakening-flight.spec.tsread bounds immediately aftersetViewportSizeand 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:
.cornerisflex-shrink: 0; text stays readable.Task: T-109, F-16