Skip to content

feat(components): a loader over the lead splash, and a place search for the map-search splash - #316

Open
sydevs-bot wants to merge 16 commits into
mainfrom
claude/feat-splash-loader-and-map-search
Open

sydevs-bot wants to merge 16 commits into
mainfrom
claude/feat-splash-loader-and-map-search

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Visitors. A page whose first block is a splash now opens the way the old site's home page did. The splash's own image is shown tinted with the brand's dark brown, the animated logo draws over it, and the whole layer fades away as soon as the image has loaded. The overlay is decorative only:
    • It never takes focus and lets every click through.
    • It disappears when keyboard focus enters the splash.
    • It is skipped under reduced motion.
    • Without JavaScript, it ends on its own after 3.5 s at most.
  • Editors. A splash block set to the map-search layout now draws a place search, labelled with the block's action text. Picking a place opens the class map searching around that place. A visitor without JavaScript gets a link to the class map instead, in that same wording or in the site's own.
  • Developers.
    • Splash gains a loader prop.
    • SplashLoader gains a warm colour and autoExit, and paints its image as an <img>.
    • LocationSearch gains label (a ReactNode) and fallback props.
    • There is a new MapSearch molecule.
    • classMapSearchHref in lib/urls.ts spells the class-map search URL.

Preview

  • / — the home page's lead splash opens under the brown-tinted loader with the animated logo, and the layer fades once the image loads. Reload with the cache off to see it, and with JavaScript off to see it end on its own within 3.5 s. Only a page whose first block is a splash carries it, so other pages are unchanged.
  • Splash story — the loader prop on a dark splash and a light one, plus the map-search layout. No live page uses map-search yet, so this and the next story are the only place to see the place search.
  • MapSearch story — the place search labelled with the block's action text; picking a place should open the class map around it.
  • SplashLoader story — the new warm colour, and autoExit fading out after three seconds (reload the story to replay it).

What changed and why

SplashLoader on the lead splash

  • Where it applies. The splash converter sets loader on the lead splash only: childIndex 0 under root, the block that is already marked priority (the one getLeadSplash reads). It is pinned in blockConverters.test.tsx: only the lead splash gets a loader.
  • Layering and tint. The overlay sits at z-20, under the overlaid header (LayoutChrome z-30).
    • On a dark splash it multiplies the hero image with coral-900 #5f2318. The old preloader used #5f2f18; coral-900 is the closest token.
    • A light-surface splash gets a new warm wash with a dark logo, because the header above it draws dark text there.
    • The overlay has no text, because no translation key fits.
  • The loader ends at the image, not at hydration (review fix). Before this fix, with JavaScript on, the overlay only ended once React hydrated: onLoad and the complete check both need React. A preloaded hero usually lands first, so the title stayed covered until hydration plus the fade, and on slow mobile for the full 3 s cap.
    • Now a tiny inline <script> follows the loader (components/organisms/Splash/Splash.tsx, settleLoaderScript). It finds the hero and the loader by useId, and on load, on error, or at once when the hero is already complete, it sets the loader's opacity to 0.
    • React never executes a script it renders, so the script runs only from the server's HTML. Client navigations keep the React path.
    • The loader carries suppressHydrationWarning because that inline style is not React's. Without it, hydrating logs "attributes of the server rendered HTML didn't match".
    • The Worker sends no CSP header, so the inline script is allowed.
    • Measured on the dev server with the hero held 1.2 s and every script held 6 s: the hero completed at 1676 ms and the overlay reached opacity 0 by 2079 ms, with React not yet hydrated. On a plain load nothing hydration-related was logged, and React then removed the overlay.
    • Pinned in Splash.interaction.test.tsx (jsdom). These specs run the server's HTML and its script: the overlay ends on load, on error, and at once when the hero is already complete. Hydrating afterwards logs no error, and React removes the overlay 500 ms later.
    • Pinned in Splash.test.tsx (server markup). The script is present only with loader, and it comes after the overlay.
  • No-JavaScript safety. The autoExit CSS animation (--animate-splash-loader-exit: 3 s delay, 500 ms fade, ending visibility: hidden) is the upper bound. JavaScript only ends the overlay sooner. Measured with JavaScript off: the overlay is opacity 1 at 1 s and opacity 0 / hidden at 4 s.
  • Focus hides it with invisible, not hidden (review fix). Toggling display restarts a CSS animation. A keyboard user without JavaScript who tabbed into the splash and out again used to re-arm the 3 s timer each time.
    • Measured with JavaScript off: focus in at 1 s (visibility hidden), out at 1.5 s (visible again, still on the original timer), and gone at 4.1 s.
    • Pinned in Splash.test.tsx: group-focus-within/splash:invisible is present and :hidden is not.
  • Reduced motion. motion-reduce:hidden skips the overlay: display none was measured.
  • Accessibility. The overlay is aria-hidden with nothing focusable, and it is pointer-events-none.
  • No extra fetch or preload. SplashLoader paints its image as <img loading=eager>, so the hero rule still holds and React hoists one shared preload. The pins:
    • Server HTML has one rel="preload" and no background-image.
    • tests/guards/image-variants.test.ts pins the seventh raw <img>, and its docstring now says an eighth is the next decision.
  • SSR visibility. The title and call to action stay in the server markup, and no content is gated on opacity-0 (tests/guards/ssr-visibility.test.ts passes). Earlier dev-server LCP runs, from the first push: the LCP element is the splash h1, at 280–336 ms with the loader and 248–312 ms with it skipped.

LocationSearch in the map-search splash

  • What renders. blockConverters.splash reads layout. map-search renders MapSearch and no title, subtitle or call to action, because SahajCloud hides those fields for this layout but keeps stale values.
    • splashTitle() in lib/content-blocks.ts is shared by the converter and getLeadSplash, so PageTemplate's sr-only <h1> still appears.
    • Pinned in blockConverters.test.tsx and lib/content-blocks.test.ts.
  • Action text is a visible label, not a placeholder. The gray-500 placeholder is allowed only beside a visible label (fix(components): text and button colour pairings fail the 4.5:1 AA bar #199). LocationSearch takes label as a ReactNode and wires a real <label for> around it, so the caller styles its own words. A blank or missing action text falls back to the sr-only location.a11y.search_label. Pinned in LocationSearch.test.tsx (jsdom) and MapSearch.test.tsx.
  • Navigation. Picking a place calls window.location.assign(classMapSearchHref(locale, place)), with no gate of its own (review fix): the helper returns localeHref's output, so every value it can produce is already a path on this site.
    • It is a full load because the atlas widget reads its route at boot.
    • In Ladle with geolocation set to Paris, "Nearby" navigated to /map?atlas=%2Fsearch%3Fcenter%3D2.3522%2C48.8566%26q%3DCurrent%2520Location.
  • URL spelling in lib/urls.ts. classMapSearchHref builds /map?atlas= + encodeURIComponent(/search?center=<lng>,<lat>&q= + encodeURIComponent(name)), with the locale prefix applied by localeHref.
    • On the deployed Worker, "London" and "Paris & Île-de-France" both pre-fill intact.
    • Pinned in lib/urls.test.ts: the exact URL, the French prefix, & and # surviving inside q, and that every locale's result is a site path — which is what makes a gate at the call site dead.
  • No-JavaScript fallback. The LocationSearch barrel takes a fallback and hands it to ClientOnly. MapSearch's fallback is a full-width neutral Button linking to /map (locale-prefixed by Link) in the action text's words, or in discover.general.classes_near_me when the editor left that empty (review fix). The components/AGENTS.md row describes it.
    • The barrel needs no Suspense of its own (review fix). Measured through real hydration, with vike-react's own useHydrated: React keeps the committed fallback painted while the lazy child is in flight, giving identical DOM with a boundary and without, and no recoverable error either way. That is why VideoPlayer, Lightbox and EmbedButton carry none. ClientOnly is hydrated ? children : fallback and holds no boundary itself (vike-react/dist/components/ClientOnly.js).
  • No jump when the search arrives (review fix). The fallback used to be about 46 px shorter than the hydrated label plus field, inside a vertically centred full-height splash.
    • The wrapper now holds the search's own height: min-h-24 with a label, min-h-12.5 without.
    • Measured in Ladle at 1280 and 375 wide: 96 px before and after with a label, 50 px before and after without, and no horizontal scroll (scrollWidth equals the viewport).
    • Pinned in MapSearch.test.tsx.
  • Mapbox stays out of the Worker. grep SearchSession dist/server finds nothing; the library appears only in a dist/client chunk.

Second review round, all from the independent review

  • The no-JavaScript map link falls back to discover.general.classes_near_me (should-fix).
  • MapPlace is gone; classMapSearchHref takes the search's own SelectedLocation (should-fix).
  • The barrel's inner <Suspense> and its spec are gone (should-fix).
  • The SplashLoader README stops restating Splash (should-fix).
  • MapSearch assigns the URL with no gate (consider).
  • LocationSearch takes label as a ReactNode; labelClassName, the withLabel closure and the wrapper div are gone (consider).
  • The --animate-* count became a pointer, here and in DESIGN_SYSTEM.md (consider).
  • The MapSearch story drops its implementation detail (consider).
  • Kept, with evidence: SplashLoader's own <img>. Dropping it and isolate leaves flat coral-900 — a two-tone hero samples rgb(95,35,24) on both halves — because z-20, not isolate, is what gives the tint its stacking context. Dropping z-20 too brings the hero back but paints the splash title through the overlay: rgb(203,202,201) against the built version's rgb(12,5,3).
  • Open: whether the old site's opening is worth three ends (Splash.tsx:203). Three options are on that thread; it waits on the reviewer.

First review round

  • The loader now ends at hero load instead of hydration (should_fix).
  • A spec now covers the barrel's <Suspense> (should_fix; reverted this round, see above).
  • invisible replaces hidden for focus (nit).
  • The shortcut: on classMapSearchHref is now one line (nit).
  • The image-variants docstring says "an eighth" (nit).
  • The SplashLoader README text row names text-fg (nit).
  • MapSearch holds a min-height (nit).
  • classMapSearchHref moved off the end of lib/urls.ts (nit; see Reconciled).

Mutation checks. Each of these reversions turned its spec red:

  • no script
  • no suppressHydrationWarning
  • hidden instead of invisible
  • the script placed before the loader
  • a wrong hero id
  • no min-height

The 12 reversions from the first push did the same.

Not in this PR

  • Pre-fill under production path routing is unverified. /map requests routing=path (lib/atlas-embed.ts:40). Per the widget's bundle, path routing ignores a ?atlas= starting with / and falls back to query routing only while the client record names no canonical embed. In production, where the record names one, a visitor may land on the class map without the chosen place filled in. This is recorded as a shortcut: on classMapSearchHref; it gets a path-form URL once SahajAtlasWeb documents one that pre-fills.
  • LocationSearch combobox ARIA. This is out of scope and now the most urgent follow-up, since the component ships to visitors through map-search:
    • Dropdown keeps role menu where listbox is needed.
    • The input has no role=combobox.
    • The listbox contains a non-option button (Nearby) and status rows.
    • Every option reports aria-selected=false.
    • The axe gate cannot see any of this, because the field is ClientOnly.
  • The server-rendered map-search fallback was not seen in a real browser. No live page uses the map-search layout (0 of 66). The fallback is covered by renderToStaticMarkup specs, and by Ladle with the search's module held back.
  • Pre-existing: a dark-surface splash before its image loads. It draws white text on white. Focusing the call to action hides the loader at once, so a keyboard user who tabs in early sees that state. Main behaves the same way. A fallback background colour on dark-surface splashes would fix it.

Reconciled with open PRs

Test results

.claude/skills/pr-prep/check.sh --full on head c598c60 (merged with main e370a55):

  • Lint and format: clean. fix(ci): any lint warning fails the gate, and the repo is formatted to pass it #313 has merged, so this is eslint --max-warnings 0 plus prettier --check.
  • Types: tsc --noEmit is clean.
  • Tests: vitest, 164 files and 1736 of 1736 tests passed.
  • Build: pnpm build passed (client and server).
  • Bundle: grep SearchSession dist/server finds nothing — the type-only SelectedLocation import in lib/urls.ts is erased, as intended.
  • Measured in Ladle on this head, at 1280 and 375 wide: the MapSearch box is 96 px with a label and 50 px without, unchanged by the label refactor, with no horizontal scroll.

https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw


Generated by Claude Code

…mage loads

The old site opened its home page under a preloader: the hero's own image
multiplied with a dark brown, a logo, then a fade. A page whose first block is
a splash now does the same. `Splash` takes a `loader` prop and the splash
converter sets it on the lead splash, the block it already marks as the LCP
candidate.

The overlay covers content the server has already rendered, so it is built so
that it can never strand anyone there:

- A visitor without JavaScript cannot set `isLoading`. `autoExit` adds a CSS
  animation that fades the overlay out three seconds after it paints and then
  sets `visibility: hidden`; the hero's `load` (or `error`, or `complete` for an
  image that finished before hydration) only ends it sooner.
- It is `aria-hidden`, holds nothing focusable, lets clicks through, and is
  `display: none` as soon as focus enters the splash, so a keyboard never
  lands on a covered call to action.
- `prefers-reduced-motion` skips it entirely.
- The title and call to action stay in the server's markup, uncovered by any
  opacity gate (tests/guards/ssr-visibility.test.ts). Measured on the dev
  server: LCP is the splash h1 with and without the loader (280-336 ms vs
  248-312 ms), and the hero is fetched once.

The loader paints its image as an `<img>`, not a CSS background, so laid over
the hero it repeats the hero's URL and React hoists one preload for both; the
raw-`<img>` guard now counts it. Its root isolates the blend so the tint
multiplies only its own image.

The tint follows the splash's surface. A dark splash gets coral-900, which is
the old site's #5f2f18 to within a few units. A light splash gets a new `warm`
variant (the warm background, logo in `text-fg`), because the overlaid header
draws dark text there and a dark loader under it would fail contrast for as
long as it shows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…chosen place

SahajCloud's Splash block has a `map-search` layout, and it hides title,
subtitle and action URL for it, but the converter never read `layout`, so such
a splash rendered an empty full-screen image. It now holds `MapSearch`: the
Mapbox place search (`LocationSearch`, still ClientOnly and lazy) whose pick
does a full load of the class map, searching around that place. The old
/classes page opened with the same search.

The URL is spelled once, in `lib/urls.ts` (`classMapSearchHref`), as the
widget's query routing: `/map?atlas=` + the encoded
`/search?center=<lng>,<lat>&q=<name>`, locale-prefixed through `localeHref`,
gated by `isSafeNavigationUrl` before `window.location.assign`. The name is
encoded once more inside the route, so a place carrying `&` or `#` stays one
value; on the deployed preview "Paris & Île-de-France" pre-fills intact, and
the Nearby option's "Current Location" label lists Paris classes by distance.
`/map` asks the widget for path routing, which ignores a `?atlas=` starting
with `/` once the client record names a canonical embed, so where it does the
visitor lands on the map without the place. That limit is a `shortcut:` on the
helper.

The block's action text, the only text SahajCloud leaves visible for the
layout, is the search's visible label (`LocationSearch` gains `label`, a real
`<label for>`), not its placeholder: the placeholder's grey is held under 4.5:1
on the strength of a visible label beside every field (#199). A visitor
without JavaScript gets a link to the class map in the same words, the
no-JavaScript path components/AGENTS.md says an adopting page owes;
`LocationSearch`'s barrel takes that `fallback` and keeps it up while the lazy
chunk loads. With no action text there is no link, because no translation
names one.

The title, subtitle and action URL a block keeps from before a switch to
map-search are not drawn. `splashTitle` says which title a splash draws, so
`getLeadSplash` agrees and `PageTemplate` still supplies the page's `<h1>`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…dration

With JavaScript on, the loader only ended when React hydrated: the hero's
`load` reached React's `onLoad` only once hydration attached it, and the
`complete` check runs in an effect. The hero is preloaded at high priority and
usually arrives first, so the title and call to action stayed covered for
hydration plus the fade, and on a slow phone for the whole 3 s CSS cap.

A small inline script right after the loader now ends it from the image
itself: it reads the hero by `useId`, and sets the loader's `opacity` to 0 on
`load` or `error`, or at once when the hero is already `complete`. React never
executes a script it renders, so it runs only from the server's HTML, and the
React path still covers client navigations. The loader carries
`suppressHydrationWarning` because that inline style is not React's.

Measured on the dev server with the hero held 1.2 s and every script held 6 s:
the hero completed at 1676 ms and the overlay was at opacity 0 by 2079 ms,
with React not yet hydrated. A plain load logs no hydration warning, and
React then removes the overlay.

Focus entering the splash now hides the overlay with `invisible` rather than
`hidden`. A `display` toggle restarts a CSS animation, so leaving the splash
re-armed the 3 s timer for a visitor without JavaScript. Measured with
JavaScript off: focus in at 1 s, out at 1.5 s, and the overlay is still gone
at 4.1 s on the original timer.

Also: the image-variants guard's docstring counts an eighth raw `<img>` as
the next decision, and the SplashLoader README's `text` row names `text-fg`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…laces its link

The server sends MapSearch's fallback, a 50px link to the class map. Once the
search's chunk lands it becomes a label, its margin and a 50px field, about
46px taller, inside a vertically centred full-height splash, so the title and
everything around it moved. The wrapper now holds the search's own height
(`min-h-24`, or `min-h-12.5` without a label) and centres the fallback in it.
Measured in Ladle at 1280 and 375 wide: 96px before and after with a label,
50px before and after without one.

A spec now covers the LocationSearch barrel's own `<Suspense>`: with the
implementation's chunk held in flight, the fallback stays up, and the search
replaces it when the chunk lands. Without that boundary the spec is red.

`classMapSearchHref` moves up beside `sitePathFromUrl`, away from the end of
lib/urls.ts, where the layout-block branch appends `editorLinkHref`, and its
`shortcut:` note is one line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-design b70c271 Commit Preview URL

Branch Preview URL
Nov 22 2026, 05:55 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web b70c271 Commit Preview URL

Branch Preview URL
Nov 22 2026, 05:55 PM

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 19, 2026
@sydevs-bot

sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 17:47Z resolve-conflicts · attempt 1 · session · done
  • 17:47Z resolve-conflicts · attempt 1 · session
  • 02:55Z address-review · attempt 1 · session · done
  • 02:55Z address-review · attempt 1 · session
  • 02:42Z review-pr · attempt 1 · session · done

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

@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 19, 2026
main's #303 added a SubtleSystem row to the no-JavaScript table and raised
its counts to five/sixth. This branch rewrote the LocationSearch row in the
same place, because map-search makes it the component's first adopter.

Both rows are kept, with main's counts, which the five rows now match.

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

Copy link
Copy Markdown
Contributor Author

Merged main in. One conflict, in components/AGENTS.md, resolved as this PR's body planned: #303's SubtleSystem row and its five/sixth counts are kept, beside this branch's rewritten LocationSearch row, which now has an adopter to describe. Five rows, five components.

No code file was touched by both sides. Lean gate green on the merge: 0 lint errors, types clean, 1421 tests passed.

🤖 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 19, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 19, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 20, 2026
main's only textual conflict was blockConverters.test.tsx's import block.
main dropped `enT`, because #269 removed the ornate sidetext its one caller
asserted. This branch widened the markup-helper import beside it. Both are
kept: the helpers stay, `enT` goes, and nothing in the merged file reads it.

The silent conflict was in lib/content-blocks.ts. main (#294) deleted the
hand-written `*BlockFields` interfaces and moved every consumer to the
generated `*Block` types, while this branch added `splashTitle` over
`Pick<SplashBlockFields, 'layout' | 'title'>`. git merged both cleanly into
a file naming a type that no longer exists. `splashTitle` now takes
`Pick<SplashBlock, 'layout' | 'title'>`, the same move main made for
`splashSurface` and `getLeadSplash`. The generated interface carries both
fields with the same union, so the behaviour is unchanged.

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

Copy link
Copy Markdown
Contributor Author

Merged main (a15ef2e). Two hunks, two reasons.

blockConverters.test.tsx imports — the only conflict git raised. #283 dropped enT with the ornate sidetext its one caller asserted; this branch widened the markup-helper import on the line above. Both moves kept: nothing in the merged file reads enT.

lib/content-blocks.ts — the hunk git merged clean into code that would not compile. #294 deleted the hand-written *BlockFields interfaces for SahajCloud's generated ones, while this branch added splashTitle typed over Pick<SplashBlockFields, …>. It now takes Pick<SplashBlock, 'layout' | 'title'>, which is #294's own move for splashSurface and getLeadSplash. Same two fields, same layout union, no behaviour change.

Gate on the merge: 0 lint errors, tsc --noEmit clean, 164 files and 1726 of 1726 tests passed.

🤖 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 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 21, 2026
`main` now fails the gate on any lint warning and carries a repo-wide
prettier pass (#313). The only textual conflict was `Splash.tsx`, where
that pass dropped the blank line after `SplashProps) {` and this branch
inserted its loader hooks there. Both sides kept: the hooks stay, and
main's formatting holds across the file.

Gate on the merge: eslint --max-warnings 0 clean, prettier --check clean,
tsc --noEmit clean, vitest 1737 of 1737 passing in 165 files.

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

Copy link
Copy Markdown
Contributor Author

Merged main (e370a55) in. One conflict, in Splash.tsx: #313's prettier pass dropped the blank line after SplashProps) {, exactly where this branch inserts its loader hooks. Both sides kept — the hooks stay, main's formatting holds.

#313 also makes any lint warning fail the gate, so the body's "0 errors, 1087 warnings" line is stale. On the merge: eslint --max-warnings 0 and prettier --check both clean, tsc --noEmit clean, vitest 1737/1737 in 165 files.

Nothing here needs a reviewer's call.

🤖 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 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 21, 2026

@sydevs-bot sydevs-bot 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.

🧐 Adversarial review

Holistic. Ticketless, so the body is the spec. The map-search half matches it: one molecule, one URL helper, two props, and the no-JavaScript path components/AGENTS.md owed. The loader half does not. Three independent ends dismiss one decorative overlay, and the body itself names the defect it hides — a dark splash drawing white on white before the image loads — and the one-line fix it declined. Answer that before the pieces. classMapSearchHref guesses SahajAtlasWeb's routing from the widget bundle; the shortcut: is the right record, but the consumer side is unread, so pre-fill may fail in production.

Findings

  • should-fix MapSearch.tsx:47 — the key the body says is missing already exists.
  • should-fix Splash.tsx:203 — three ends for one overlay. Which do you keep?
  • should-fix urls.ts:231 — MapPlace redeclares SelectedLocation.
  • should-fix LocationSearch/index.tsx:26 — the spec mocks away the boundary it tests.
  • should-fix SplashLoader/README.md:60 — re-lists what Splash.tsx and two specs hold.
  • consider SplashLoader.tsx:160, MapSearch.tsx:38, LocationSearch.tsx:238, tailwind.md:14, MapSearch.stories.tsx:12.
  • Not a line: ## Test results is stale — head 22638e6, 1341 tests, 1087 warnings, before #313 merged in.

What was checked. All 28 files; the eight source files it grows read whole on the branch. Ladder walked for 17 pieces; streamliner kept 12, 7 sketches checked, 6 posted. Verified: isSitePath accepts every localeHref output; SelectedLocation is MapPlace's shape; discover.general.classes_near_me is already in translations.en.json; atlas-embed.ts:40 does send routing=path. Consumer side unreachable: no node_modules, and the atlas path contract is not in this repo. .claude/workflow.json has no previewUrl, so the link check cannot run.

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


Generated by Claude Code

isLoading={!imageSettled}
size="lg"
/>
<script

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.

should-fix — how many pieces is this overlay worth? Three independent ends dismiss one decoration: this <script>, React state on the hero's load/error/complete, and the autoExit keyframe — held together by suppressHydrationWarning, an eslint-disable and a 179-line spec.

The body names the defect the overlay hides, a dark splash drawing white on white before the image loads, and the fix it declined: a background colour. Nothing would race the image.

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


Generated by Claude Code

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.

The overlay is not hiding white-on-white: the body is the spec, and it asks for the old site's opening. White-on-white is pre-existing; main has it too.

The count is fair, and yours. Each end owns a path: autoExit without JavaScript, the script before hydration, React on a client navigation.

  • 1. Is that opening worth three ends?
    • A — Keep it (recommended).
    • B — A background colour instead.
    • C — Drop React's end: a client nav waits 3 s.

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


Generated by Claude Code

Comment thread lib/urls.ts Resolved
Comment thread components/atoms/SplashLoader/README.md Resolved
Comment thread docs/rules/tailwind.md Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 21, 2026
The `map-search` splash left a visitor without JavaScript nothing at all
when the editor emptied the block's action text, on the grounds that no
translation named a link to the class map. `discover.general.classes_near_me`
does name one.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
`MapPlace` was a second name for `SelectedLocation`, which the location
search already exports with the same two fields.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
React keeps the committed fallback painted while a lazy child is in
flight, so the boundary changed nothing: measured through real hydration,
with vike-react's own useHydrated, the fallback stays up and the field
swaps in with no recoverable error, boundary or not. That is why
VideoPlayer, Lightbox and EmbedButton need none either.

The spec went with it: it mocked ClientOnly away, so it could only ever
have pinned React's own behaviour.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
The accessibility paragraph re-listed what Splash.tsx states and two of
its specs hold, so it went stale the moment either moved. The <img> note
duplicated the comment above the element it describes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
classMapSearchHref returns localeHref's output, which is always a path on
this site, so isSafeNavigationUrl could only ever pass. A gate that cannot
refuse reads as a protection it is not, and had it ever refused, picking a
place would have done nothing at all. Its own warning scopes it to a URL
the site did not author; this one we spell.

The spec now pins what makes that true, rather than the gate's verdict.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
labelClassName existed so one caller could style a label this component
renders. A ReactNode label lets the caller build its own, and the label
is now built once instead of through a closure wrapping both branches.
The wrapper div went with it: the two elements already stack.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
A count plus a list of --animate-* names is mechanism layouts/tailwind.css
already holds, and one new keyframe forced an edit in two prose files.
The MapSearch story loses the same kind of detail: a token name and a
disabled-field behaviour are not what a design-system reader is there for.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEDWX7ZyqaMvrD85B
The map-search converter's spec still held the behaviour the shared
translation replaced: no link at all when the editor emptied the action
text.

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

Copy link
Copy Markdown
Contributor Author

Ten threads answered on c598c60, already level with main e370a55.

Adopted, one commit each: the blank-action-text link, MapPlace, the barrel's Suspense, the README, the dead gate, the label prop, the animation list, the story docstring.

Rebutted, measured in Chromium: SplashLoader's <img>. z-20, not isolate, isolates the tint, so the sketch leaves flat coral-900 — and dropping z-20 too paints the title through the overlay.

Open, and yours: how many ends the overlay is worth, three options on the thread. The overlay is what the body specifies, not a patch over white-on-white.

## Test results is stale — 1341 tests, 1087 warnings, before #313.

Refreshed: 1736 tests, --max-warnings 0 and prettier --check clean, build green, no Mapbox in dist/server.

🤖 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 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 22, 2026
Main's directory reorganisation moved every module this branch imports and
added a lint rule banning `../` imports, so all five conflicts were import
blocks. Each keeps both sides: main's `@/` paths, carrying this branch's
extra imports onto them.

- lib/urls/urls.ts: `SelectedLocation` and `MAP_PREFIX` rejoin main's
  `@/types/sahajcloud` and `@/lib/i18n/locales` split, the latter now at
  `@/lib/atlas/route`.
- Splash.tsx: the loader's `useEffect`/`useId`/`useRef`/`useState` and
  `SplashLoader` kept over main's two-import version.
- SplashLoader.tsx: `surface` kept, for the `warm` colour.
- Splash.stories.tsx: `MapSearch` kept.
- blockConverters.test.tsx: `anchorFor`/`classesWith` and the
  `vike-react/ClientOnly` mock kept; the map-search specs need all three.

Six files this branch adds auto-merged with their old relative imports and
had to follow the same rule.

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

Copy link
Copy Markdown
Contributor Author

Merged main (5d6cbd9) in. All five conflicts were import blocks from the folder reorganisation (#327), so each took main's @/ paths carrying this branch's extra imports — the loader's hooks and SplashLoader, surface, MapSearch, and anchorFor/classesWith plus the ClientOnly mock.

The part the conflict list did not show: six files this branch adds merged clean but kept ../ imports, which #327 both moved the targets of and added a lint rule against. MapSearch.tsx alone had six. Fixed in the same commit.

components/AGENTS.md landed as this PR's body predicted: both the rewritten LocationSearch row and #303's SubtleSystem row, on #303's counts.

Lean gate on the merge: lint, format and tsc --noEmit clean, 1748 tests in 172 files pass.

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


Generated by Claude Code

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.

2 participants