Skip to content

feat(nav): Back says where it goes; a place with one class opens it - #476

Merged
Ardnived merged 25 commits into
mainfrom
feat/nav-back-header
Nov 25, 2026
Merged

Ardnived merged 25 commits into
mainfrom
feat/nav-back-header

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Every place and class page says "Back to …" where it leads, above its name; only the filters keep an X.
  • A place holding one class opens that class. Back passes over the building and such places, and never leaves the host page.
  • The stacked edges behind the panel are gone. The phone sheet peeks at 104px with "Show more", and opens at 356px.
  • Cities, regions and countries open showing the whole place (zoom cap 11.5), so Back from a class visibly zooms out.

Change outline

Flow — what Back does

One answer, backStep, now gives both the label and the press. Before, the X re-derived its target and nothing named it.

 DrawerStack                                        src/views/DrawerStack/DrawerStack.tsx
+  step = backStep(location, climb inputs)          src/lib/shape/navigation.ts
+    root                                → undefined (the sheet collapses instead)
+    depth > 0 and state.from is a string → { to: from, history: true }
+    otherwise                            → { to: climbDestination(…), history: false }
+      climbDestination: the real ancestry (placedPathname), passing over
+        passablePlaces = venues + places holding a single in-person class
+      climb inputs: regions + feed, read from the cache (never observed),
+        re-read when either fills (useSyncExternalStore on the query cache)
   control
+    backTo   = step.to, unset under the filter overlay
-    canDismiss, canCollapse, dismissAction(hasParent, depth), toStackTarget
     dismiss
-      depth > 0 → navigate(-1), else navigate(parent)
+      step.history → navigate(-1)
+      else         → navigate(step.to, { state: { climbedFrom } })
+  overlayControl  { …NO_DRAWER_CONTROL, overlay: true, dismiss }   its fallback chrome closes with an X

Every push stamps where it left, so history can be named:

 atlasPushState(location)                           src/lib/shape/navigation.ts
-  { depth: depth + 1 }
+  { depth: depth + 1, from: pathname + search }

Components — the header

 src/views/nav.tsx (new)
+  NavHeader { title, subtitle, actions, close }
+    close || control.overlay → title + an X                     FilterView passes close
+    else            → NavRow, then DrawerTitle (wraps to two lines)
+  NavRow
+    BackButton                                     "Back to <name>", label from backLabel
+    collapsed ? ExpandSheetButton : actions        "Show more" at the peek
+  BackButton { iconOnly }                          the arrow beside the search field
 src/views/nav-names.ts (was DrawerStack/strip-label.ts)
+  backLabel(route, { t, regionName, countryName, eventTitle })
+    '/'                 → common.chrome.back_to_world_map
+    /search?q=Prague,…  → common.chrome.back_to_results_near { place }
+    a class (Register, Share) → common.chrome.back_to_class
+    a place             → common.chrome.back_to { title }
+    nothing cached      → common.chrome.back
 src/views/shared.tsx
-  CloseButton, CollapseToggle (Menu ⇄ X)
+  ExpandSheetButton                                common.chrome.show_more, only while collapsed
 RegionView, OnlineView, RegistrationView, ShareView, fallbacks → NavHeader
 FilterView → NavHeader close
 EventView → EventHeader nav={<NavRow />}
 SearchView → BackButton iconOnly + SearchField + ExpandSheetButton
 CalendarView → BackButton + ExpandSheetButton at the start of its own header

Behaviour — a place with one class opens it

 getCountries / getRegion                           src/config/api/fetch.ts
+  singleEventPath = the class's own address (safePath(webPath) under the place,
+                    else <place>/<id>) when exactly one in-person class sits under it
+    on each child row, through toListItem's parse
+    on the region itself, from its own direct+online and a sole child's,
+      undefined while a filter narrows the list    RegionSchema gains the field
 RegionView                                         src/views/RegionView/RegionView.tsx
+  lone = region.singleEventPath   unless it shows the post-event answer, or the
+                                  URL's top entry is no longer this place
+  loneClassExit(location, lone)                    src/lib/shape/navigation.ts
+    'climbed' → <Navigate replace to={climbDestination} state={{ climbedFrom }}>
+    'back'    → show the page (left the class by a step back from it)
+    undefined → <Navigate replace to={lone}>
+  useFrameOnTop skips framing while redirecting

Components — the sheet

 DrawerStack
-  PeekStrip ×N, perLevelPeek, peekOpacity, stripLabel, dismissDepth, entryAncestors
-  snaps ['80px', '300px', 0.97]
+  snaps [SHEET_PEEK_PX 104, SHEET_OPEN_PX 356, 0.97]   src/config/responsive.ts
+  window ≤ 480px tall, no frame → every pixel stop capped 75px below the top
+  rAF sheet-top loop → toggles [data-sy-peek] on the sheet
 ViewLayer
+  [data-sy-peek] → everything after the header invisible; its title clamps to one line
 control
+  collapsed = that same measurement, so the header's controls and the hidden body
+              cannot disagree mid-drag
 use-map-controller-real
-  REGION_MAX_ZOOM 13                               renamed VENUE_MAX_ZOOM: it caps a venue
-  fitBounds(region.bounds, { maxZoom: REGION_MAX_ZOOM 13 })
+  fitBounds(region.bounds, { maxZoom: AREA_MAX_ZOOM 11.5 })

Preview

Preview pending: the Workers preview for this PR is published by CI. Once it is up, open these on a phone width (~390px) and on desktop:

  • ?atlas=/gb: "Back to the world map"
  • A class deep link, ?atlas=/<country>/<region>/<city>/<venue>/<id>: Back names the city, not the venue
  • A place with one class: it opens the class, and Back does not bounce into it
  • A search, then a class from the results: "Back to results near "
  • Pull the sheet down: Back, one title line and "Show more"
  • Filters, over a place or the calendar: an X
  • Register or Share on a class: "Back to class"

Locally: pnpm build && pnpm review:embed, then /__review/full-map.html at 390×844, 360×640 and 667×375.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh): ✓ lint, typecheck, 2398 unit tests
  • Browser lane (pnpm test:browser): ✓ 10 passed, including 3 navigation scenarios (history Back, deep-link climb past one-class places, one-class redirect with no bounce)
  • Modal.focus.test.tsx failed once in two of five full-lane runs and passed alone; it touches nothing on this branch.

Manual verification

  1. On a real phone: pull the sheet down to the peek and back up, by the handle and by "Show more".
  2. On a real phone: open a class from a city, press Back, and check the map zooms out to the whole city.
  3. Turn a phone on its side (667×375): the open sheet leaves a strip of map above it.

Notes for reviewer

Detail

Review findings left for follow-up:

  • DrawerChrome keeps its own entry-to-name table beside entryName.
  • passablePlaces reads the whole feed, while the row shortcut and the page redirect read the filtered one. So a climb still passes over a place that holds one class unfiltered, even where a filter has widened its list. Pre-existing, and the climb is structural rather than a view of the list.

Fixed from review:

  • Back's label could stay stale on a deep link until the caches filled.
  • The post-event "did not take place" banner was lost to the redirect.
  • The camera flew twice on a redirect.
  • A push from an ancestor counted as leaving the class.
  • The calendar header had no way back up from the peek.
  • One-class rows dropped the list's filters.
  • collapsed stayed true on a widened panel, which hid its header controls.
  • The region's lone class was reassembled in the view from what getRegion had already worked out per row, so "exactly one class" had a third reading. The region carries singleEventPath now.
  • singleEventPath was spread onto a subregion row after its schema parse, so that one field never met the schema.
  • The peek was decided twice, by live pixels for hiding the body and by the settled snap for the header's controls. One measurement drives both now.
  • REGION_MAX_ZOOM capped a venue rather than a region, and read as a synonym of the new AREA_MAX_ZOOM.
  • The short-window cap carries a shortcut: line against the camera's 160px reserve.
  • Eight pieces the streamliner questioned are gone or folded into their one caller: loneClassPath, climbedUpFrom, cameUpFrom, viewRegion, passableFor, OverlayCloseButton, DrawerHeader's stacked and DrawerControl's canCollapse.

Translation stand-in, not dismissed: translations.en.json is hand-edited only for the four keys SahajCloud#1262 adds, as #466 does.

🤖 Generated with Claude Code

Ardnived and others added 6 commits November 24, 2026 10:31
Area fits are capped at zoom 11.5 rather than 13, so a city whose classes
meet a few streets apart (Prague) still shows the city, and going back from
a class visibly zooms out. A venue keeps 13 and a class 15. The camera's
fallback sheet padding follows the phone sheet's new 356px open stop, and
a source pin holds the two equal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every place and class page opens with "Back to …" above its name instead
of an unexplained X. Back runs the existing dismiss, so it never leaves the
host page: with in-widget history it names the entry it returns to (a push
now stamps `from`), and on a fresh deep link it climbs the region tree's
real ancestry, passing over the venue and any place holding a single class.
A country goes back to the world map, a class opened from a search to the
results near that place, and the results themselves get a small arrow
beside the search box. An X is left only on the filters over the calendar.

A place holding one in-person class opens that class: its row links
straight to it, and a link to the place redirects. A climb stamps
`climbedFrom`, so leaving the class upward never bounces back into it.

On a phone the sheet peeks at 104px (Back, one line of title and "Show
more") and opens at 356px; whatever the peek cannot show is hidden rather
than sliced. A window 480px tall or less keeps every stop 75px below the
top. The three new strings are stand-ins until SahajCloud#1262 ships; the
spoken-only "Explore" is retired.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With Back naming where it goes, the faint cards stacked behind the panel no
longer carry anything a visitor needs, so they go, with everything that
existed to draw them: PeekStrip, the per-level peek width and fade, the
strip labels, `dismissDepth` and the depth-0 ancestor ref, and the strip
half of the sheet-top mirror. DrawerStack now only needs whether the view
has a parent, and Register takes the class's path it already has. The cog
moves in to 16px past the panel, the gap the strips no longer need.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Back's label and its press now read one answer, `backStep`, worked out once
in DrawerStack; `dismissAction`, `toStackTarget` and `canDismiss` go, and
an entry stamped with no `from` climbs rather than stepping back blind.
The filter overlay's control carries `overlay`, so NavHeader draws its X and
no leaf re-derives it. `collapsed` is never true where the sheet cannot
collapse, which had left a widened panel with no header controls.

DrawerStack reads the region tree and the feed from the cache instead of
observing them, and works out the places a climb passes over once per feed.
BackButton looks names up instead of building a Map of every region, the
one-class row reuses the counts already in hand, the searched place's short
name has one reader, and the sheet's two heights are shared constants
rather than literals pinned by reading source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Back's step re-reads the region tree and the feed when either arrives, so
  a deep link's label and climb stop naming the plain parent once the
  caches fill, without observing them.
- A place answering the post-event email keeps its page, so the
  acknowledgement shows instead of redirecting to the class.
- A place that redirects to its class no longer frames the map first, so
  the camera flies once.
- A push from a place above no longer counts as leaving the class, and a
  class reached at its other address still counts as itself.
- The calendar, and the loading chrome of search, raise the sheet from its
  peek like every other header.
- A one-class row keeps the list's filters.
- The attribution spec pins the sheet's lowest stop again, not a constant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 19:13Z resolve-conflicts · attempt 1 · session · done
  • 19:13Z resolve-conflicts · attempt 1 · session
  • 18:41Z address-review · attempt 1 · session · done
  • 18:41Z address-review · attempt 1 · session
  • 18:24Z review-pr · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 24, 2026
Register and Share sit over a class still on screen behind them, so Back
there says "Back to class" (a new string, SahajCloud#1262) instead of
naming a place, and the class-title lookup Back carried for them goes.
The filters sit over the page they narrow, so they close with an X
wherever they open, not only over the calendar. Back keeps the Button
atom's own padding on both sides, pulled out so its chevron lines up with
the title, and stories name each view's real parent page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

No ticket is linked, so this is judged against its body. Back replacing the X is what lets PeekStrip, perLevelPeek, stripLabel and dismissDepth go, and backStep is one answer where the X re-derived its own. That half pays for itself.

The second feature is the one I question. A place redirecting to its lone class needs five new pieces and a state key — climbedFrom, climbedUpFrom, cameUpFrom, sameClass, classIdOf — all to stop a loop the redirect creates. The row shortcut (singleEventPath) gives most of the benefit for one field. Is the redirect worth the rest?

Cross-repo: SahajCloud#1262 sanctions the stand-in but declares three keys. back_to_class, added since, is in no ticket. fallbackLng: 'en' keeps a merge cheap.

Findings

should-fix

  • Three answers to "exactly one class", disagreeing under a filter — navigation.ts:142
  • singleEventPath spread on after the zod parse — fetch.ts:596
  • REGION_MAX_ZOOM now means a venue — use-map-controller-real.tsx:58
  • Streamline, six more: DrawerStack.tsx:120, Drawer.tsx:381, shared.tsx:62, nav.tsx:87, navigation.ts:169, path.ts:420 — ~70 lines

consider

  • One "cannot suspend" note became four copies — shared.tsx:147
  • The peek is decided twice — DrawerStack.tsx:446
  • 75px of map above the sheet against the camera's 160px — DrawerStack.tsx:112, pre-existing
  • A comment on the wrong line — fallbacks.tsx:189

What was checked

Read whole on the branch: navigation.ts, DrawerStack.tsx, shared.tsx, fallbacks.tsx, RegionView.tsx, nav.tsx, fetch.ts, use-map-controller-real.tsx, six docs files. The streamliner covered 46 pieces, kept 37; its sketches were re-checked against their callers. Consumers: SahajCloud#1262, both fetchers against RegionListItemSchema. No fixture block or question threads.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread src/lib/shape/navigation.ts Resolved
Comment thread src/config/api/fetch.ts Resolved
Comment thread src/hooks/use-map-controller-real.tsx Resolved
Comment thread src/views/DrawerStack/DrawerStack.tsx Resolved
Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
Comment thread src/lib/shape/path.ts Resolved
Comment thread src/views/shared.tsx Resolved
Comment thread src/views/DrawerStack/DrawerStack.tsx Resolved
Comment thread src/views/DrawerStack/DrawerStack.tsx Resolved
Comment thread src/views/fallbacks.tsx Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
The chevron's glyph sits 7.5px inside its box, so with the Button atom's own
padding it stood indented from the title. The icon is pulled in by that much,
leaving the same hover padding either side of what is drawn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
CHANGELOG's Unreleased § Changed took both sides: #478's calendar highlight
and #469's palette from main, with this branch's three #476 entries between
them, keeping the list in descending PR order.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
It described the Back button two lines above, after the search header
gained the expand button between them. `BackButton` returns null without
a `backTo`, so the sentence restated the code either way.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
Deleting CloseButton left its explanation copied verbatim into four
callers, where there had been one copy and four pointers. It states one
property of every control here, so it sits beside the preset they share.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
Its one call site can pass the same three classes through `className`,
which NavHeader's other branch already does two lines up. Both forms reach
the same `slots.header({ className })`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
With the collapse toggle gone its one reader was the Escape ladder, in
DrawerStack, where the local value and the snap are both in scope. Escape
behaviour is unchanged.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
It stopped capping a region when the area fit took AREA_MAX_ZOOM, and the
two then read as synonyms beside each other while one means a venue and
the other a city, region or country.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
A module-level WeakMap held the passable places against the feed object
while the memo that read it was keyed on the location, so `placePathsOf`
rebuilt its Map of the region tree on every navigation. `cachesFilled`
already changes exactly when either wholesale query updates, so one memo
keyed on it keeps the once-per-feed work and drops the cache.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
The sheet leaves 75px of map on a landscape phone while the camera pads
for 160, so a framed pin can sit under it there. The number is continuity
with main's flat 300px stop on a 375px window, not a second reading of
the strip, and it now says so with the trigger to change it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
The body was hidden off the live sheet top while the header's controls
switched on the settled snap, so for the length of a drag the row could
offer a view's actions over an invisible body. `collapsed` now comes from
the same measurement the attribute does; the setter bails out on an
unchanged value, so a crossing costs one render rather than a frame.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
…s row

getRegion spread the field on after `toListItem`'s schema parse, so that
one field never met the schema while getCountries passed it through. Both
callers now hand it to `toListItem` and one shape is parsed once.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
loneClassPath reassembled in the view what getRegion had already worked
out for every child row, so "exactly one class" had a third answer that
read the list differently from the other two. The region now carries
`singleEventPath` like its rows do, derived from the same partition, and
RegionView reads the field.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqLPupaFArGET849k
@sydevs-bot

Copy link
Copy Markdown
Contributor

Merged origin/main in. CHANGELOG's § Changed was the only conflict, resolved by keeping both sides: #478 and #469 around this branch's three #476 entries. That conflict is why the PR had no check runs.

All 13 critic threads adopted, one commit each, with the SHA in a reply on the thread, now resolved. Nothing rebutted, nothing asked. The streamliner's eight pieces are gone or folded into their one caller, and the body's follow-up list is down to two.

One correction to the review body: SahajCloud#1262 declares all four keys, back_to_class included, and SahajCloud#1267 is open for it.

Lean gate ✓ lint, typecheck, 2398 unit. Browser lane ✓ 10 passed. Security review ✓ no findings. Body refreshed.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 24, 2026

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is

@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 24, 2026
#471's type scale and gutter sweep landed on the same headers this branch
rewrote, so every hunk keeps both: main's `px-gutter`, `text-xl` title and
`HEADER_EDGE` alignment over this branch's NavHeader, NavRow and
ExpandSheetButton.

HEADER_EDGE is exported, because the controls that end a header row now
include nav.tsx's overlay X. CloseButton and CollapseToggle are gone on this
branch, so main's edits to them have no target; the X that replaced
CloseButton takes the same alignment, and the calendar header drops its
pinned close rather than re-adopting `end-gutter`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWs8VXwkzYzNnCSzGP
@sydevs-bot

Copy link
Copy Markdown
Contributor

Merged origin/main (#470, #471). Seven files conflicted, and every hunk kept both sides.

#471's sweep landed on the headers this branch rewrote, so its styling won throughout: px-gutter, text-xl titles, px-gutter py-4 bodies, around this branch's NavHeader.

Two choices the diff does not explain:

DrawerTitle takes #471's text-xl and keeps this branch's break-words.

Green on the merge: lint, typecheck, 2405 unit tests, and the browser lane's 10 scenarios.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 24, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 69a656e Nov 25 2026, 03:52 PM

- `climbDestination` is one search up the stack instead of an index loop.
- `passablePlaces` keeps one count and a set of places holding an in-person
  class, and `indexRegions` takes a readonly list, so no copy is made.
- `loneClassExit` matches the class by id through `resolveStack`, which
  also reads Register and Share, in place of three string helpers.
- One reader for a stamped route; shorter docblocks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived
Ardnived added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit a21b866 Nov 25, 2026
14 checks passed
@Ardnived
Ardnived deleted the feat/nav-back-header branch November 25, 2026 16:27
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 25, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 25, 2026
#476 rewrote tests/browser/navigation.spec.ts: Cambridgeshire now holds one
class, so the drill-down is two steps and dismissal is the sheet's own Back
button inside the dialog. This branch only renamed the fixture module there.

Resolved to main's scenarios with the rename applied: main's three tests and
its `backTo` helper, reading `SAHAJCLOUD_EVENT` from `src/mocks/sahajcloud`.
`CITY` and the ancestor-strip assertions are gone because main removed the
levels they addressed, not because this branch dropped them.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWhWJBM1ssxxhXKQyW
sydevs-bot pushed a commit that referenced this pull request Nov 25, 2026
#476 replaced the X with the sheet's own Back, dropped the Cambridge level
and added a third navigation scenario, leaving the table describing two
scenarios under names no spec carries and omitting the third.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWhWJBM1ssxxhXKQyW
sydevs-bot pushed a commit that referenced this pull request Nov 25, 2026
#476 rewrote the drawer header: every page below the root opens with "Back
to …" and the standalone X went with the peek strips. This branch's submit
flow had its own X and its own strip label.

- The X moves to `views/nav.tsx` as `CloseButton`, which `NavHeader` now
  renders instead of repeating its markup. The add-a-class step panel keeps
  it: its listing stays live behind it, which is what an X means here.
- The submit listing is a page in the stack, so its header takes `NavRow`
  like every other page. `EventHeader`'s `trailing` slot is gone with #476.
- `stripLabel` and `stripsRef` go with the strips #476 deleted.
- `AGENTS.md` no longer says the filters are the only X.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVcSBPwJ51Gv7CQNHL
Ardnived added a commit that referenced this pull request Nov 25, 2026
* refactor(mocks): name the fake SahajCloud for what it is

"wire" (as on the network) was not legible. src/mocks/wire.ts becomes
src/mocks/sahajcloud.ts, its fixture export wire becomes sahajCloud, and the
docs that named it follow. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(mocks): finish the rename through the lane's identifiers

The module and its fixture export were renamed, but four names still called the
fake backend "wire": WIRE_API_KEY, WIRE_EVENT, wireEventFeature and the spec's
serveWire. So playwright.config.ts imported WIRE_API_KEY from sahajcloud.

The header's "⚠ Wire shape" and docs/testing.md's "The fixtures are wire shape"
are the other, right sense — the network shape a fetcher parses — and stay.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYYwfAJAz63CzUU8A6

* fix(mocks): inline the answer type at its one reader

WireAnswer was exported and read once, in the signature a line below it.
Nothing outside the file imported it, and it carried the word the rename
retires.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYYwfAJAz63CzUU8A6

* docs(testing): name the browser lane's navigation scenarios as they run

#476 replaced the X with the sheet's own Back, dropped the Cambridge level
and added a third navigation scenario, leaving the table describing two
scenarios under names no spec carries and omitting the third.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWhWJBM1ssxxhXKQyW

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Ardnived added a commit that referenced this pull request Nov 25, 2026
- The inline column takes #476's header: Back names where it goes, above the
  view's own controls. `NavHeader` passes `isPlace` through, so a region's
  title still gives way to the page heading inline.
- "Close map" renders beside the cog now that the peek strips are gone, and
  reads the sheet's live top from a wrapper the sheet-top loop also writes.
- The inline embed reads #481's fixture names (`sahajcloud.ts`,
  `sahajcloud-demo.ts`); the branch's own copies of the Ladle backend and the
  demo atlas give way to main's.
- The deep-link scenarios assert #476's climb past one-class places, inline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants