Skip to content

Promote develop to main: human notes and routes, provenance README, bottom-band fix - #102

Merged
CLYEH merged 5 commits into
mainfrom
develop
Sep 2, 2026
Merged

CLYEH merged 5 commits into
mainfrom
develop

Conversation

@CLYEH

@CLYEH CLYEH commented Sep 2, 2026

Copy link
Copy Markdown
Owner

What

Promotes develop to production. Four squash-merged PRs since #97:

  • feat(ui): a person pins a note where they click, and can always read it (T-106/T-107/T-108) #98 — T-106 / T-107 / T-108. A person pins a note where they click (second click or Escape cancels), a pin's bubble folds and reopens, and the card for a note shows the whole note wrapped (pre-wrap, capped at 25vh and scrolling) instead of a 72-character headline.
  • feat(ui): a person plans a walking route by clicking two points (T-110) #99 — T-110. A fourth pill, Route: click a start and an end and the same planWalk plan_route uses draws a source: "user" walking line labelled with distance and time, through the one shared 1 request/second throttle for the FOSSGIS OSRM service. remove_from_map keeps refusing the human's marks. Nothing under src/lib/** changed.
  • docs(readme): the README says who did what on the map (T-111) #100 — T-111. README says who did what: provenance on every mark, every tool call on the activity feed with its outcome, and the human's gestures leaving no agent row — written as a finished public document.
  • fix(ui): nothing in the bottom band covers anything else (T-109) #101 — T-109 (+ F-16). Nothing in the bottom band covers anything else: the Places dock publishes --dock-w / --dock-h, the loaded-categories strip and the attribution cap at the dock's edge, and while a category is browsed the whole bar lifts above the dock so the OpenStreetMap attribution — a licence condition — is never covered. Gated by a new 18-cell e2e (bottom-band.spec.ts, 13/18 red on the previous develop). F-16's awakening-flight flake fixed alongside.

No dependency, lockfile or .github/** change. origin/main was merged into develop first (ef9149b), so this is a fast-forward-equivalent merge commit.

How verified

  • Every PR above went through the adversarial reviewer before merging, and each ran pnpm check and the full pnpm test:e2e on its final commit.
  • On 78d5f5c (develop before the main merge-back): pnpm check green (63 files / 1,461 tests); pnpm build green; pnpm test:e2e green (161 passed, 4 skipped).
  • Vercel builds main on merge.

Task: promote

CLYEH and others added 5 commits September 2, 2026 13:37
…it (T-106/T-107/T-108) (#98)

* feat(ui): pin a note where a person clicks, and let a folded pin unfold

Two things a person could not do on their own map. A note always landed at
`view.center`, so choosing a place meant panning until the place sat under an
invisible crosshair; and folding a pin's bubble left a 9px anchor whose only
answer was "open the card about me", which read as a note that had vanished.

The place a human's note goes now comes from a click on the map while the note
popover is open, held in `note-store.ts` beside the drawing draft — UI state, so
no tool can see or steer an unfinished note. The agent side is untouched by
construction: `add_note` keeps its toolname, description and autosubmit, and an
`agentInvoked` submit still pins at `view.center` whatever a human has
half-placed.

A folded pin keeps a chip on screen (its source colour and the note's first
word) and any click on it unfolds it and does nothing else, so the fold has a
way back. `data-folded` says which state it is in.

Task: T-106, T-107

* feat(ui): put the whole note on the card a tap opens

The "On the map" card was the only surface a note is fully readable on — the
pin's bubble is 210px wide and a person can fold it away — and it clipped the
note to 72 characters. A 200-character note therefore had an end that nothing on
the page could show: fold the pin, tap it, and the answer was an ellipsis.

The headline for a note is now the note, wrapped; the card already measures its
own height and flips above or below the tap, so a long note makes a taller card
rather than a lost one. Feature and shape headlines are unchanged.

Task: T-108

* fix(ui): review fixes for the human note gesture (T-106/T-107/T-108)

S1 — an agent's `add_note` no longer clears the draft pin a person is still
placing. The draft is the human's answer to "where"; an agent never reads it
(it pins at the centre) and must not spend it either.

S2 — the note headline on the "On the map" card is bounded. `annotate` accepts
500 characters and every one of them may be a newline, which was 250 lines of
card: unscrollable, and below 641px the card is fixed against the bottom bar so
it grew off the top of the screen with no way back. 25vh and a scrollbar, not
40vh: measured at 1440x900, a 40vh card is 475px, fits on neither side of a tap
in the middle of the map, and hangs its Remove/Keep buttons 41px below the fold.
At 25vh the same worst-case card is 340px and lands wholly on screen at every
tap height on both tiers.

S4 — Esc leaves note mode. While the popover is open the map is a place-picker
and taps on places, beads and shapes are suppressed, so a second press on the
Note chip was the only way out — and the person's focus is usually out on the
map by then, hence a window-level listener bound only while it is open. Focus
goes back to the chip. A map click stays the placing gesture and is deliberately
not also a way out.

N1/N3/N6 — the CJK test literal is a place name rather than a sentence, the
draw-only guard on `tapAnnotation` says why it is draw-only, and the note store
test asserts whole-state identity of the map store rather than two fields.

Task: T-106
Task: T-107
Task: T-108

* test(e2e): pin the T-106/T-107/T-108 note-human contract

Draft placement, submit-at-draft, the fallback centre, popover suppression of
a feature tap, draft-clears-on-close-or-draw, the fold/unfold cycle, and the
card showing a note uncut all lacked end-to-end coverage against a real
MapLibre canvas and a real form submit.

Also covers the review-fix commit's own three changes: an agent's add_note no
longer spends a human's half-placed draft (a later human submit still uses
it), Escape leaves note mode from anywhere (including the caret) and returns
focus to the Note chip, and a worst-case 500-character/250-newline note keeps
its card's edges on screen and its text scrollable at both a desktop and a
mobile viewport.

Task: T-106, T-107, T-108

* docs(tasks): T-106…T-108 done, T-109…T-111 opened, shipped rounds archived
…0) (#99)

* feat(ui): a person plans a walking route by clicking two points (T-110)

Planning a walk was the last thing on this map only an agent could do. The
service, the rate limit and the refusal wording already existed in
`lib/map-tools/route.ts`; what was missing was a hand on the same lever, so a
person watching the map had to ask for a route rather than draw one.

Route is a fourth pill beside Draw. Two clicks make the walk: the first is
marked with a rose pin, the second asks the same FOSSGIS OSRM service the tool
asks and stores the answer as an ordinary `source: "user"` line, labelled with
the service's own figures ("walking route · 1.2 km · 16 min" — minutes always
rounded up, because rounding a duration down tells a person they have time they
do not have). From there it is a drawing like any other: `get_map_state` lists
it, `measure` sizes it, `remove_from_map` takes it off.

The rest is about the second in between. A walk the person cancelled while the
service was answering never lands (the pending call holds a ticket the next
gesture invalidates); a second click while "Planning the walk…" is up is
ignored rather than spending another of the one-per-second requests; two clicks
inside the same metre ask for an end instead of asking the service. A refusal
is the service's own sentence, in the hint the person was already reading —
never a toast and never an alert — and the map stays in route mode for the next
attempt. FOSSGIS' credit is latched by hand as well as by activity row, because
a hand gesture writes no row and the licence does not care who clicked.

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

* fix(ui): the hand-planned walk proves it shares plan_route's second (T-110 review)

Review follow-ups before merge:
- A test that plans a walk by hand and then finds the shared one-request-
  per-second queue still busy, so a re-implemented private clock would fail
  the suite rather than the FOSSGIS policy.
- `RoutePill` carries an accessible name; below 600px its text label is
  hidden and the button had none.
- `human-events.ts` header counts four gestures, not three.
- CONTRIBUTING.md's one approved external call now names both callers of the
  routing service and the shared throttle.

Task: T-110

* test(e2e): pin the T-110 human route contract

Cover the Route pill end to end: two-click plan/draw with the human
"source: user" line, the FOSSGIS attribution and zero activity rows;
the agent's plan_route staying independently usable on the same page;
the service's verbatim NoRoute refusal and retry; the same-point guard;
Esc cancelling both mid-draft and mid-flight; a bundled feature tap
being suppressed and counted as the route's start instead; and the
phone-tier hint's exemption from the polygon hint's display:none.

* docs(tasks): T-110 done; F-16 awakening-flight flake ticketed and handed to qa

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* docs(readme): say who did what on the map (T-111)

The provenance tags, activity feed and remove refusal already keep
agent and human trails apart; the README never stated that plainly.
Add a "Who did what" passage and the human-side Note/Route bullets so
a reader can see the split without running anything.

Task: T-111

* docs(readme): routing has two callers, one service (T-111)

* docs(readme): test count after T-110 (T-111)

* docs(tasks): T-111 done
* fix(ui): stop the loaded-POI strip before the Places dock

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

* fix(ui): the attribution stays clear of the dock (licence condition)

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

* fix(ui): review follow-ups for the dock caps (T-109)

- 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

* test(e2e): nothing in the bottom band covers anything else (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

* test(e2e): wait for republished bounds after resize in awakening-flight

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

* docs(tasks): T-109 and F-16 done, F-17 ticketed

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

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@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:47am UTC

@CLYEH
CLYEH merged commit adc9d16 into main Sep 2, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — ef9149b5 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