Skip to content

feat(widget): open every embed inline; expand the map over the page - #466

Open
Ardnived wants to merge 75 commits into
mainfrom
claude/feat-inline-embed
Open

Ardnived wants to merge 75 commits into
mainfrom
claude/feat-inline-embed

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Every embed now opens inline, in the host's page: a heading naming the place, the classes beside a sticky square map, and "Expand map" opening the map-first interface in a modal below the host's header.
  • The compact card, the contained map and the full-window embed are gone, along with the slot decision behind them. A box too small to browse in shows the heading and "Expand map" alone, and says so on the readiness marker.
  • A map-less atlas is always inline, so the filled drawer mode is gone.
  • The three new strings are live in production (feat(translations): add the inline embed's strings, drop the compact tab SahajCloud#1268), and the English snapshot is a full pnpm sync:translations, which also drops the thirteen screen-reader keys SahajCloud#1246 retired.
  • Settings sit beside the place heading in every inline embed; the inline map's control column leaves the cog out, and the expanded map keeps its own.
  • "Expand map" sits in the inline map's bottom-left corner, clear of find-me's hover label, which crosses the top of a narrow box.
  • The changelog entry for this change now carries its ([#466]) reference and link definition, which the file's preamble asks of every entry.
  • feat(routing): resolve Unicode place slugs from encoded and raw URLs #483's changelog entry now carries its own ([#483]) reference and link definition, which it was missing on main.

Change outline

Components — what an embed renders

The entry no longer measures a slot. Every embed, every framed page and every map-less atlas renders InlineEmbedView; only the standalone page opened directly, with a map, renders the map-first FullInterface.

 App                                              src/App.tsx
-  compact ? <CompactEmbedView>{FullInterface}</…>
-          : <NoExpansionProvider><FullInterface contained/></…>
+  inline || !hasMap ? <InlineEmbedView/>         (lazy)  src/views/InlineEmbedView/
+                     : <FullInterface/>           (lazy)  map-first, standalone only
+  InlineEmbedView
+    useInterfaceBoot()                            pageview, captcha guard, home redirect, cache warm — once
+    (#490's ClientGate waits inside each drawer view, in every embed: heading, map and placeholders draw at once)
+    <LocalExpansionProvider>
+      InlineLayout
+        useTooSmall(box, boxed) → tooSmall?        under 280px wide, or 360px tall where it cannot grow
+          → PlaceHeading + ExpandButton alone; publishFit(box) on the readiness marker; one console warning
+        PlaceHeading                              h1, or h2 under a host h1
+        SettingsMenu                              beside the heading, map or not; the inline map's column has none
+        MapProviders                              the hasMap branch, shared with MapInterface
+          InlineColumns                         @min-sy-cols: two columns; narrower: map strip first
+            <Activity hidden while expanded>
+              <DrawerStack inline/>               the same views, no vaul root, no sheet
+            map box  [contain:layout], sticky ≥ --container-sy-cols (720px)
+              {!expanded && <MapLayer/>}          one live map at a time
+              ExpandButton                        new tab instead, when framed
+        ExpandedDialog                            modal, starts below the host's header
+          <MapInterface/>                         map + DrawerStack, as the standalone page
+            DrawerStack → CloseMapButton          bottom middle of the map
 Drawer                                           src/components/atoms/Drawer/
-  mode: 'anchored' | 'filled'                    filled = the map-less panel, absolute in the widget's box
+  anchored only; DrawerSlotsProvider mode="inline" for the inline column
 DrawerStack
-  if (!hasMap) → one filled drawer + a ghost cog strip below it
 SettingsMenu                                     src/components/molecules/SettingsMenu/
-  side                                           only the map-less strip opened upward
 Button variant="floating" (from #470, on main)   now also Expand map and Close map

Stories — both forms of every view, with the map

 Interactive / Full Widget (from #481, on main)   src/App.stories.tsx
-  contained, in a 640px box
+  inline, on a host page that scrolls past it     browse, register, search, expand, close
+  "White background" control                      a host page the inline form blends into
 .ladle/components.tsx                            the global decorator
+  every views-- story: "Form" (Inline | Expanded) and "Map" (on), from src/views/story-controls.ts
+view stories                                     no default viewport: Ladle's main area, its padding removed
 ViewHarness                                      src/views/story-harness.tsx
+  MapProviders + MapLayer when Map is on         a real MapController, as the app has
+  Inline   → PlaceHeading + InlineColumns, the view in the inline drawer slots; Map off is always Inline
   Expanded → the panel over the map
+    a frame publishing itself as the widget's frame, [contain:layout]
+    side panel, bottom sheet, or the calendar's full width, by the frame's width
-  map prop (off by default), MapFrame, height prop

Also on the way: the expanded map's provider gives the padding back when it turns inline as well as when it unmounts. The inline heading row and the map column read #471's px-gutter, so the heading lands on the view header's edge.

Flow — choosing the form

 Widget (the <sahaj-atlas> element)               src/Widget.tsx
-  decideSlot({ element, hasMap, fromPage })  → compact | contained | full
+  <App inline/>
 main.tsx (the standalone build)
-  decideSlot({ element: null, … })
+  inline = framed && !livePreview.active
 mountDecision(…)                                 src/lib/shape/routing.ts
-  fromPage                                       read only by the slot decision

Behaviour — the host's page

host-page.ts owns every read and write on the host's document, all guarded.

+headerOffset(host, 'now' | 'stuck')              src/views/InlineEmbedView/host-page.ts
+  --sahaj-atlas-header, in px          → that value
+  else a fixed/sticky bar, <header> or role=banner across the top of the window
+    'now'   → what covers the top at this moment       (the expanded map's top)
+    'stuck' → what pins itself to the top on scroll     (the inline map's sticky top)
+  else                                 → 0, the whole screen
+useGrowHost(host, content)
+  host: height auto, max-height none, overflow visible   (inline !important, restored on unmount)
+  cannotGrow: content taller than the host, or an ancestor clips past it
+    → boxed: host height 100%, content scrolls inside
+useTooSmall(box, boxed)                          src/views/InlineEmbedView/fit.ts holds the floor
+  a frame, or a boxed host, cannot grow: the height counts there
+  the box measured at the crossing; a resize either side publishes nothing

Behaviour — the map's camera padding

 RealMapControllerProvider                         src/hooks/use-map-controller-real.tsx
+  inline → writes nothing: the store's margin-only default is its padding
   otherwise → drawer/sheet padding
+    on unmount → the margin-only default, so the expanded map's padding cannot outlive it

Contract — docs/embedding.md, "Sizing the element"

-Give the element a height and the widget lives inside it; with none, the map fills the window.
-A slot too small for any layout gets the compact card, whose button opens a full-screen overlay.
+Every embed opens inline, as tall as what it shows; nothing needs sizing.
+The widget overrides the element's height; where the page cannot let it grow, it scrolls inside.
+The heading is an h1 unless the page has its own.
+--sahaj-atlas-header (px) says where the expanded map starts; else the widget finds the header.
+In a frame, "Expand map" opens a new tab.
+Under 280px wide, or 360px tall where it cannot grow: the heading and "Expand map" alone, and a console warning.
 The readiness marker
-  {"v":2,"routing":…,"topLevel":…,"urlWritable":…}
+  {"v":3,…,"tooSmall":{"width":220,"height":640} | null}    the key appears once the box is measured

Preview

Preview pending — the Workers preview for this PR is published by CI. On it, /?key=… opened directly is the unchanged map-first page, and framed it is inline.

The inline embed itself is reviewed on host pages: pnpm build && pnpm review:embed, then

  • /__review/contained-map.html — a sticky header, the host's own <h1>, and a 640px height rule the widget grows past; expand and close the map
  • /__review/full-map.html at ~390px — the phone strip, and the expanded map's bottom sheet
  • /__review/app-shell.html — a shell that never scrolls (WeMeditate's /map): the atlas scrolls inside its box
  • /__review/sidebar-mapless.html — map=false, one column
  • /__review/too-narrow.html — a 220px column: the heading and "Expand map" alone, the console warning, and tooSmall on <html data-sahaj-atlas-ready>
  • /__review/iframe.html — framed embeds, inline inside the frame

Interactive / Full Widget is the whole widget, interactive, on its fixtures, with a White background control for the host page. Every view's story shows both forms, over a live map. In Ladle (pnpm ladle, or the sahajatlas-design preview once its alias is published), open Views → Region, then the controls panel at the bottom left: Form switches Inline and Expanded, Map (on by default) turns the map off for a map=false embed. Both hold across views. Views fill the canvas; narrow the window, or pick a viewport, for the strip and the bottom sheet.

Contract impact

The embed contract changes, so each host that sized the element is affected — none breaks, since the widget overrides the height:

Test results

Re-run on the merge with main through #490 and the commits after it:

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — lint, typecheck, 2499 unit tests
  • Browser lane: ✓ pnpm test:browser, 25 scenarios. Two are new: a narrow inline calendar leaves the map its controls, and feat(widget): keep the map on screen while data loads or fails #490's skeleton spec, which now measures the standalone boot panel, its drawer and the inline column. The inline column's class case caught a 26px jump: the loading title drew two bars where the title arrives on one line. It now draws one bar inline (789d534). The cold-start map scenarios sometimes time out under parallel load on this machine.
  • Accessibility gate: ✓ on a token-less library build, as CI's. In the full run, organisms--registration-form, views--registration and interactive--full-widget report tab order. Each is clean run alone, the same flake as before this merge.
  • Build: ✓ pnpm build; pnpm size ✓ (standalone 11.7 KiB spare, embed 10.5 KiB, loader 0.3 KiB)
  • Watched failing first: the inline calendar scenario, with feat(map): one control column for find-me, settings and the credits #482's old condition (3 of 3); the inline column's country case, with the loading chrome's isPlace read off the tree alone; heading-place.test.ts's Unicode case, against the hand-rolled Map. Earlier: the shell scenario, without the clip check; the too-narrow scenario, with the card disabled; App.form.test.tsx's map-less case, without || !hasMap; host-page.test.tsx's crossing, h1, restore and pixel-only cases; heading-place.test.ts's venue and country cases

Manual verification

  1. On /__review/contained-map.html at 1280px: the heading is an h2; the map sticks below the green header while the list scrolls; "Expand map" opens the map below the header, not over it; "Close map" and Escape both return to the page where it was.
  2. At ~390px: the map is a strip above the list, not sticky; the expanded map's "Close map" floats just above the bottom sheet.
  3. Open a country, then a city, in the expanded map, then close it: the page shows that city, and its heading reads "Free Meditation classes in ".
  4. With a screen reader, open the map: the dialog is announced by the widget's name, and nothing behind it is reachable.
  5. On /__review/too-narrow.html, widen the column past 280px in devtools: the classes come back with no reload; narrow it again, and the console warns once.

Notes for reviewer

Detail

Dismissed review findings

  • Re-detect a host <h1> that appears after mount — decided once at mount, as every other layout choice here is; a MutationObserver on the host's document is more than the case warrants.
  • Fall back to the country while the region tree loads — the heading flips either way; the tree is warmed in parallel with the client record.
  • Don't override a deliberately sized map-less host — overriding the host's height is the decision this change implements; where the page clips, the widget keeps the box.
  • Scope the padding and camera-settled stores per map — four other camera stores stay global, so the unmount would remain; the padding's owner now restores it instead.
  • indexRegions(…).bySlug for the heading's lookup — it builds several indexes for one Map's job.
  • Preload the interface chunk and mapbox-gl beside clients/me, and defer the captcha probe — both were already serial for every map embed before this change; worth a ticket of their own. Measured since: a chunk preload saves ~130 ms on the intermediate steps but ~50 ms on the style request.
  • Unmount the inline column instead of the hidden <Activity> — measured ~27 ms of script over four navigations, and Activity collapses faster.
  • Skip the header re-measure when the offset is unchanged — the measured resize cost is mapbox's canvas, not ours.
  • No map inside Ladle's viewport iframe, instead of the realm bridge — it would drop the map from every narrow preview; the bridge now lives only in Ladle's map wrapper.
  • Read the host <h1> and the expand height outside render, a jsdom spec for the boot running once — the reads happen once per mount or per opening, and the browser lane drives the expand and collapse; the boot sits in the two interface roots only.
  • Restore the WeMeditateWeb /map page — a cross-repo follow-up, named above.
  • Replace Ladle's realm bridge (.ladle/react-map-gl.tsx, from feat(stories): the whole widget, interactive, on fixtures alone #481) — mapbox-gl 3.35 refuses a container that fails instanceof HTMLElement, and Ladle renders width and iframed stories by portalling into an iframe from the parent window, so no story code runs in the iframe's own realm. Dropping the viewport iframe would render the viewport-driven parts for the real window; patching mapbox-gl would patch a shipped dependency for a playground-only problem. The bridge never ships.

Follow-ups not in this PR

  • With a Mapbox token, pnpm test:a11y fails every view story on the map's own controls: the locate button answers 32×32px and the Mapbox wordmark 45×24px, under the 44px floor. organisms--mapbox already failed the same way; CI's library build has no token, so its gate never draws a map. Both controls are on every map embed a phone visitor sees.

  • SahajCloud's Install tab: drop the embed-height choice and the style it writes into the snippet.

  • The WordPress plugin: publish --sahaj-atlas-header.

  • The verifier renders at one viewport, so a box too small only on a phone does not reach the Install tab (feat(install): warn when a verified embed is too small to browse in SahajCloud#1264 notes it).

  • A header that changes height without a width change (one that hides on scroll) keeps its first offset; the host can state it. Marked shortcut: in host-page.ts.

What was weighed

  • One map, moved between the inline box and the dialog, would need a portal re-parent that remounts it anyway; two maps never live at once instead.
  • The expanded dialog keeps the compact card's machinery — the frame it publishes, the opener restore, the Escape ladder — and loses its margin and × in favour of a top offset and "Close map".

🤖 Generated with Claude Code

@Ardnived Ardnived left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2 question(s) for the reviewer, one per thread.

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

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running
conflict held since 03:44Z, waiting for the base to settle
CI fix 1

recent dispatches
  • 05:39Z fix-ci · attempt 1 · session · done
  • 05:39Z fix-ci · attempt 1 · session
  • 20:39Z resolve-conflicts · attempt 3 · session · timed out
  • 20:39Z resolve-conflicts · attempt 3 · session
  • 19:47Z resolve-conflicts · attempt 2 · session · timed out

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

@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

Smaller than what it deletes — 1,545 added against 3,086 removed, with CompactEmbedView, MapFrame, slot-decision and embed-slot gone. Title and diff agree, and the contract lands on both documented surfaces. compact is optional in the generated types and applyLocale deep-merges, keeping the three hand-added strings, so the merge order is a preference, not a break.

The open question is the aggregate, not correctness. host-page.ts spends six pieces guessing where a host's header is, when CSS can read the property this PR already ships. Five smaller pieces of rent sit beside it.

Findings

  • should-fix host-page.ts:35 — six pieces of header heuristic that var(--sahaj-atlas-header) answers in CSS.
  • should-fix Drawer.tsx:209 — a hook, an export and a prop, to drop one h2.
  • should-fix FullInterface.tsx:179 — the hasMap provider branch written twice.
  • should-fix InlineEmbedView.tsx:198 — the floating pill is three call sites, not two.
  • consider components/AGENTS.md:262 — mechanism retold, and a stale ⚠ at line 228.
  • consider InlineEmbedView.tsx:271 — the 720px crossing as a bare literal, seven times.
  • consider use-map-controller-real.tsx:137 — the padding restore runs on every dep change.

Second opinions

Both settled as A, and resolved.

What was checked

Read whole: host-page.ts, heading-place.ts, InlineEmbedView.tsx. Diffs: the two entries, FullInterface.tsx, DrawerStack.tsx, Drawer.tsx, use-expansion.tsx, use-map-controller-real.tsx, overlay.ts, layers.ts, the three docs. The streamliner covered 37 pieces, keeping 24.

Clear: all 26 in-doc anchors in docs/embedding.md resolve, all five /__review/ pages exist, and NARROWEST_MAP_PX keeps the deleted constant's 360, so RING_MAX_ZOOM is unchanged.

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


Generated by Claude Code

Comment thread src/views/InlineEmbedView/host-page.ts Resolved
Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
Comment thread src/views/FullInterface.tsx Resolved
Comment thread src/components/AGENTS.md Resolved
Comment thread src/hooks/use-map-controller-real.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
@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-bot

Copy link
Copy Markdown
Contributor

Six of the seven findings built, one rebutted. Pushed e94b2ef, one commit per thread; each thread carries its reply.

Rebutted: CSS instead of the header search — no host states --sahaj-atlas-header yet, so it would put the expanded map over all three headers.

Lint, typecheck, 2325 unit tests, 10 browser scenarios, build and pnpm size green locally. Size spare is 15.3 / 14.1 KiB; the body says so.

🤖 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 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 1467b92 Nov 28 2026, 05:32 PM

@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 Awaiting to Working in SYDevelopers Technical Roadmap Nov 24, 2026
@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 Awaiting in SYDevelopers Technical Roadmap Nov 24, 2026
@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 Awaiting to Working in SYDevelopers Technical Roadmap Nov 24, 2026
Registration and Share capped their card, form and share block at 448px
and centred them, which left a narrow strip in the wider inline column.
A `form-column` utility keeps that cap on a wide sheet and lifts it
inline, through the same `--sy-content-max: none` that frees the bands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived and others added 2 commits November 26, 2026 19:54
Brings in #500–#530. Resolutions:
- CompactEmbedView stays deleted; its #529 label change and changelog line are moot.
- DrawerStack keeps the inline arm (`canCollapse` reads `sheeted`) on main's dismiss,
  showResults, sheetTall and dimmed scrim, beside "Close map".
- LocatorProvider wraps MapProviders, so the inline map and its filters share one
  locator, and the expanded map gets its own.
- Registration, Share and the form take `form-column` over main's new markup.
- The panel stays 384px; the EventActions story previews 336px and 272px.
- Translations take main's production snapshot; the two keys #466 wires leave PENDING_KEYS.
- The story harness gains `expanded`, so the sticky-Register story shows the sheet.
- embed.spec picks the expanded dialog first: the panel inside now reads the same name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inline beside a map, EventDetails portals Register and the action row into
an aside under the map (`InlineAside`, `hooks/use-inline-aside.tsx`). Wide,
the map and aside stick together, the square shrinking by the aside's height
so both stay in view; narrow, they sit between the map strip and the class.
The class skeleton drops its Register there to keep the shape.

Also syncs translations from production: `countries.place_title` is now
"Free meditation classes in %{place}", matching `countries.title`, and
SahajCloud#1299 retired `search.chrome.city_or_postcode`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stacked, the inline embed has no column beside the map, so it reads as
the phone sheet: Register in a footer that sticks to the screen's bottom,
in the page's flow, while its view is on screen, and the actions after the
class's details. The aside under the map exists only side by side, read
off the grid's own computed tracks rather than a second copy of the
crossing width. Every inline `sticky` footer behaves this way, so the
sign-up form's Register sticks too.

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

Copy link
Copy Markdown
Contributor

The session for resolve-conflicts did not finish after 3 attempts. I have stopped retrying. A mention (@sydevs-bot) or a push from you starts me again.

🤖 sydevs dispatcher

The Expanded form drew a hand-copied, static panel, so its sheet could not
be dragged between snaps and its sticky footer never pinned. It now renders
`DrawerStack`, which shows the story's view at its path (a `view` seam) and
routes as usual anywhere else. The calendar and search stories pass their
paths, which the stack needs to give them their shape.

The "Event · sticky Register" story goes: the Event story's Expanded form
shows the same sheet. The view controls also read `?arg-form=` and
`?arg-map=` from the address, so a link opens in its form.

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

Copy link
Copy Markdown
Contributor

The session for resolve-conflicts did not finish after 3 attempts. I have stopped retrying. A mention (@sydevs-bot) or a push from you starts me again.

🤖 sydevs dispatcher

Ardnived and others added 4 commits November 27, 2026 18:25
Brings in #520–#551. Resolutions:
- ShareView stays deleted (#540); the inline split's class views are the class and its sign-up,
  and the aside under the map takes the actions, then Register, in #540's order.
- The calendar's width reads #538's `isCalendarFullWidth` off the URL; #466's
  `calendarFillsWidth` goes with Schedule-X.
- MapControls and Mapbox take both `settings` and #542's `filterMenus`; MapLayer passes the
  floating filter buttons, and DrawerStack claims them only for a sheeted stack.
- The root view's new title (#531) is a place's, so inline it gives way to the page heading.
- Main's Event "Layout" control is dropped: the Expanded form shows the phone sheet.
- The panel stays 384px, including FilterMenus' cap; translations re-synced from production.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#466 opens every embed inline, so no sheet dialog holds the views.

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

MapControls becomes its own organism, with a story, and knows nothing of
Mapbox: the filter buttons where they show, find-me where they do not, and
settings. `floating` sits in the full and expanded maps' corner, which is now
`MapCorner`, the one Mapbox control that holds the slot and the credits under
it. `inline` is the toolbar above the inline embed's map, with #542's filter
buttons in their inline look, so the inline map carries only its credits and
the page heading loses its cog wherever there is a map.

Find-me's request stays with the map (`useLocate`), which publishes its state
and `locate` on `useFindMe`, so its button can sit outside the map. The
Filters button and filter chips step aside inline as they do beside a panel,
and the inline calendar never carries a second set in its header.

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

Side by side, the page heading and the map's toolbar share the grid's first
row, their bottoms level whichever is taller, and the toolbar still sticks
with the map below it. Inline beside a map, the root view's header held
nothing (its title gives way to the page heading, its Filters button to the
toolbar), so it draws none, nor does its loading chrome.

A class and its sign-up filter nothing, so neither the inline toolbar nor the
expanded map's corner offers the filter buttons there; find-me stands in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived and others added 2 commits November 27, 2026 20:44
…evel columns

From the ux-improvements class page proposal, kept to its visual outcomes:
- A class and its sign-up are headed by the class's own name; the class's way
  back moves above that heading (`InlineAbove`), and the panel draws no header.
- Beside the map, the facts take `EventFacts`' `detailed` treatment (32px fine
  icons, larger values) under a rule, and the description reads larger.
- No gap between the columns, the content's gutter spacing it from the map.
- The row gap is the toolbar's gap above the map and the inline bands drop
  their top padding when first, so whatever a view leads with starts level
  with the map's top. The heading's row hugs it (`grid-rows-[auto_1fr]`).
- "Expand map" is the map's one action, placed by Mapbox (`MapAction`), and it
  and the credits both sit 12px in from the map's edges.

The class heading's "in <place>" and the facts' labels and Cost row wait on
sydevs/SahajCloud#1311.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in #552 (one owner per filter concern), and adopts its approaches:
- `useFilterButtonsShown` is the one rule; it now also holds inline, where the toolbar carries
  the buttons, and steps aside on a class and its sign-up. The store flag and DrawerStack's
  copy of the rule are gone, as on main.
- `FilterMenus` reads the URL itself, so the inline toolbar and the full map's corner render it
  directly; `FilterMenuBar` is gone.
- `MapboxControllerProvider` provides the frame's width on a map; inline it provides none, so
  `DrawerStack` keeps measuring the inline column.
- The calendar's header takes `fullWidth` from its view, which inline is never full width.
- The MapControls story shows the inline toolbar with the live `FilterMenus`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived and others added 9 commits November 27, 2026 22:06
sydevs/SahajCloud#1311 is live, so the snapshot syncs its five keys and:
- the class page's heading reads "<class> in <town>" (`event.display.title_in_place`);
- the detailed facts carry their labels (Class time, Location) and a Cost row,
  "Always free", under the We Meditate figure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the ux-improvements class page proposal. Beside the inline map, under
Register, the class's share targets themselves (`ShareRow`: Copy link, the
region's messaging app, Email, and More, which opens the share sheet or the
full popover) replace the action row's Share, and "Report incorrect class
details" opens the report form, which names the class by the page's path.

Waits on sydevs/SahajCloud#1312 for its three strings: this commit is
pushed once that is live and the snapshot syncs them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ext's colour

sydevs/SahajCloud#1312 is live, so the snapshot syncs "Share this class",
"More" and "Report incorrect class details", which the commit before this one
reads.

- The share row is a grid of four, each target a 48px disc over its name in
  the page's own type, Copy link leading in the brand's colour (`row` on the
  targets), as in the ux-improvements class page.
- MeditateFigure takes the surrounding text colour, as a lucide glyph does, so
  the Cost fact's figure is the brand's like its neighbours; its coral is now
  `accent`, kept on the online classes row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contract Check failed: the branch's `src/types/payload/payload-types.ts`
was missing `share_title`, `report_details` and `more`, which SahajCloud's
`main` now produces. Those keys reached this repo in #554, two commits
ahead of the branch, so merging `main` is the whole fix — `pnpm types:cms`
and the `atlas-url-contract.json` curl then write nothing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVBcBxdxua7eUkZ3zX
…e's review asks

- Every inline view's way back sits above the page heading, labelled in
  full: `BackButton` renders there wherever a view puts it, `NavRow` keeps
  only the view's own controls, and the calendar's row and its placeholder
  drop out when they would be empty.
- On a class, the inline map's toolbar offers no find-me, as it offers no
  filter buttons (`MapControls findMe`).
- The share row's discs take the Button's own flat surface
  (`controlSurface`), primary for Copy link and neutral for More, instead of
  colours of their own.
- MeditateFigure has no colour of its own again; the online classes row
  colours it from the scale, as any icon (`text-contrast-10`).
- Ladle's atlas names a report form, so the settings menu and the class
  page's "Report incorrect class details" both show in the stories.
- The EventFacts story shows one class in all three looks side by side,
  panel, detailed and card, with an Example control, then the card's options.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- On a class's page, in the panel and the detailed look, `EventFacts` gives
  the pattern ("Every Wednesday") and the time ("9:30 – 11:00 AM London time")
  a line each; a card keeps them on one.
- The inline Back takes 8px of room above the page heading.

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