Repository navigation
Description
The goal
A volunteer who looks after their organisation's website can install the Sahaj Atlas themselves, by following one guided setup screen in SahajCloud. It works for WordPress, Wix, custom-built sites, and sites that only allow an embedded frame. On WordPress and Wix, every city and class gets its own address that search engines can find, so someone searching for a class nearby lands on their own national site.
Why it matters
Today the setup instructions are one long document written for developers. On Wix sites such as sahajayoga.ca, the atlas can only be shown inside a frame: every class has the same address, nothing can be bookmarked or shared, and search engines see one page instead of hundreds. Our maintainers don't have the time to install the atlas on each site by hand.
What success looks like
- A volunteer who manages their site's record in SahajCloud reaches a setup screen for their own site, picks their platform, and gets step-by-step instructions with their own details already filled in.
- A volunteer only ever reaches their own site's setup screen, and the check only ever runs against their own site.
- Everything a volunteer has to paste can be copied with one click.
- A Wix volunteer finishes setup without writing any code: they paste only what the screen gives them, and the screen says plainly which steps change the Wix site itself. (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.)
- The setup screen checks the installation by itself as soon as the atlas appears on the site, and says in plain words which step went wrong, if one did.
- On sahajayoga.ca, each city and class in Canada has its own address under
/free-classes, with its own title in search results, and is listed in the site's sitemap. (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.) - Opening
www.sahajayoga.ca/free-classes/ca/ontariodirectly shows Ontario in the atlas, not the opening view of the whole map. (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.) - Each of those addresses names itself as the address search engines should use — never an address on another site. (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.)
- An address under
/free-classesthat names nothing shows the site's "page not found". (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.) - Going back and forward inside the atlas on a Wix site keeps the list and the current place without fetching them again. (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.)
- The map still loads on sahajayoga.ca after the new setup replaces the old frame. (Moved to sahajayoga.ca shows the atlas with its own searchable city pages #427, 2026-11-18.)
- If a site's search setup breaks later, its manager is told what to fix in their next "Your websites" email, and the map keeps working for visitors.
- The developer documentation sends volunteers to the setup screen first.
Not included
- A Wix App Market app: Wix does not let apps add the kind of pages this needs.
- Its own description in search results for each city and class page. We hold no description for a city, so only the title and the page's own text are ours to give.
- French city pages in search on Wix and on multilingual WordPress sites. French visitors get the atlas in the languages it currently offers, but French city pages are not listed for search yet.
- A site using its own title and description for the atlas's main page on Wix (held as its own goal, A site can use its own title and description for the atlas's main page #350).
- Setup instructions in languages other than English.
- Dedicated instructions for Squarespace.
- Search pages for a site that does not own its region's atlas pages. Those sites still get the map.
- Making a newly set-up site's sign-up and correction forms pass their spam check. A volunteer who finishes setup gets a working map, but those forms are refused on their site until fix(turnstile): partner hosts fail the captcha with 110200 (unknown domain) #343 is fixed.
Decisions
- Who installs the atlas on a site? → the site's own volunteer, guided by the setup screen. Maintainers only create the site's record and invite the volunteer (Ardnived, 2026-10-30)
- Where does the setup screen live? → a tab on the site's record in SahajCloud, in English (Ardnived, 2026-10-30)
- Which platforms at launch? → WordPress (on its own hosting or on WordPress.com), Wix (the Wix Editor or Wix Studio), custom sites, and frame-only sites. WordPress and Wix each appear once, with their two kinds as tabs (Ardnived, 2026-10-30; WordPress.com and the tabs added 2026-10-31)
- Which address does the atlas use? → each site chooses; the default is
/classes; sahajayoga.ca keeps/free-classesfor the atlas (Ardnived, 2026-10-31) - How do fixes reach Wix sites? → the logic lives on our server, so the code a volunteer pastes rarely changes (Ardnived, 2026-10-30)
- What does an address that names nothing show? → a real "page not found" (Ardnived, 2026-10-30)
- Is readable text for search engines included from the start? → yes, hidden once the map loads, as on WordPress (Ardnived, 2026-10-30)
- French on sahajayoga.ca? → English pages get search-friendly addresses first; French keeps working with the older address style (Ardnived, 2026-10-30)
- Which site gets search pages for a region? → only the site that owns that region (Ardnived, 2026-10-30)
- What does a successful check do? → it switches region ownership on, when no other site owns the region (Ardnived, 2026-10-30)
- What happens when the search check fails later? → the manager gets one email; the site is never switched off for it (Ardnived, 2026-10-30)
- How are the steps illustrated? → written steps naming the exact menus, with few screenshots (Ardnived, 2026-10-30)
- In what order? → build the whole setup screen, then set up sahajayoga.ca (Ardnived, 2026-10-30)
- A separate Wix plugin project? → no; there is nothing to install, only text the setup screen generates (Ardnived, 2026-10-31)
- The map reloading on back and forward on Wix? → fixed in the map itself, then confirmed when sahajayoga.ca goes live (Ardnived, 2026-10-31)
- What title and description does the atlas's own main page show on sahajayoga.ca? → The site's own wording, brought forward into A site can use its own title and description for the atlas's main page #350. (Ardnived, 2026-11-18; was: not for now, held as its own goal, 2026-10-30)
- How does a Wix site turn on the search-friendly addresses? → From the site's record in SahajCloud; the widget learns to read it. Built under sahajayoga.ca shows the atlas with its own searchable city pages #427. (Ardnived, 2026-11-18)
- Who sets up sahajayoga.ca, and does this goal wait for them? → This goal closes with the setup screen shipped; the sahajayoga.ca lines move to sahajayoga.ca shows the atlas with its own searchable city pages #427, which waits for the go-live. (Ardnived, 2026-11-18)
- Can a volunteer be asked to do the Wix steps alone? → The screen offers help: "stuck? ask a maintainer", and a maintainer joins for one session. Carried to sahajayoga.ca shows the atlas with its own searchable city pages #427. (Ardnived, 2026-11-18)
- Is watching a site's search setup over time part of this goal? → Only what shipped: the "Your websites" email's "Search problem" and "Map not found" items. (Ardnived, 2026-11-18)
- Is sahajayoga.org.uk part of this goal? → No, it uses the same screen later. (Ardnived, 2026-11-18)
Open questions
None.
Notes
- Related goal: Sahaj Atlas is ready for launch #255 — its launch list includes the two Wix sites, sahajayoga.ca and sahajayoga.org.uk. It deliberately left per-class addresses on their own domains to a later goal, so this goal is that one and is not part of the launch milestone. Sahaj Atlas is ready for launch #255 still tells readers those sites "give up per-class addresses" and points at feat(widget): verify the Wix Custom Element path and onboard the two Wix clients #152, closed as not planned on 2026-10-28 as "the rejected option C" — which is what this goal now does. Both lines on Sahaj Atlas is ready for launch #255 need updating.
- Earlier attempt: Wix Plugin Atlas#66 (a Wix app, 2022).
- Follow-on goal: sahajayoga.ca shows the atlas with its own searchable city pages #427 — sahajayoga.ca live on the Wix setup, with the seven lines this goal left open.
- Follow-up goal: A site can use its own title and description for the atlas's main page #350 — a site's own title and description on the atlas's main page; sahajayoga.ca's comes forward.
- Related: fix(turnstile): partner hosts fail the captcha with 110200 (unknown domain) #343 — until it is fixed, a newly set-up site's sign-up and correction forms are refused.
- Delivered so far: feat(atlas): add the Install tab and the Wix router endpoints SahajCloud#1055 (feat(atlas): add the Install tab, one site per service, and the Wix router endpoints SahajCloud#1058) and feat(widget): keep state when a host replaces the element #349 (feat(widget): keep state when a host replaces the element #383).
Technical notes
TL;DR (verified 2026-11-11, both children merged)
- Shipped: the Install tab, one site per service, the two Wix endpoints and the generated Velo templates (feat(atlas): add the Install tab, one site per service, and the Wix router endpoints SahajCloud#1058); the widget's same-key element transfer, 5 SahajCloud reads per Back press → 0 (feat(widget): keep state when a host replaces the element #383).
- Blocking the headline: R3 is now built in, not merely unfixed. The Wix track ships the Custom Element with no
routing=pathon purpose, and the widget reads its route only from?atlas=— so a router page at/free-classes/ca/ontarioboots the whole-map view. Open question 2 was never answered. - Not started: the sahajayoga.ca go-live (open question 3), which five success lines are entirely about. The site is unchanged —
/free-classes/ca/ontariostill answers 200 with the sitewide title, and/sahajatlasstill ranks. - Still unobserved: R2, the script type Wix writes for a Custom Element.
R3 — the route never reaches the widget on a Wix router page
Both halves are on main now, and they disagree.
- SahajCloud serves a virtual
canonical.routingoff the routing probe, and says so:Clients.ts:795("this hook is what the widget'scanonical.routingreads") anddocs/rules/clients.md:59. - The widget reads no such field.
ClientSchemaadmits onlycanonical.enabledandcanonical.embed(src/types/client.ts), so a virtualroutingis stripped on arrival, and the one input to the mode is the script parameter —src/loader/config.ts:111,185,src/lib/shape/routing.ts:181. - In query mode the boot route is
?atlas=or the embed default, never the pathname (routing.ts:155-175). Wix serves the path and no query. - The Wix template omits
routing=pathdeliberately, so the widget cannot fight the router for the URL —SahajCloud/.../InstallGuide/templates.ts:256-263;docs/embedding.md:127-130tells volunteers the same.
⚠ Both of those SahajCloud sentences are false today, whichever way question 2 goes.
Left as is, a go-live submits correct <head>s for hundreds of city pages whose body is the whole-map view. Question 2A (the widget reads the record) makes the two sentences true; 2B (put it in the pasted code) means deleting them and changing the template.
R2 — the script type Wix gives a Custom Element, still unobserved
auto.js is an ES module, so a classic tag is a syntax error: nothing parses and nothing logs. The documented embed sets type="module" itself (docs/embedding.md:25); Wix offers no choice and states nothing. The browser-verified fallback is still only in commit a94a567 — there is no src/loader/classic.ts and no embed.classic.js on main.
Both client sites are Premium, so one Custom Element on one page plus devtools settles it in minutes. Nothing that shipped reduces this risk, and success line 4 rests on it.
R4 — region ownership, now claimable but unproven
#1058 made ownership one rule (canonical.owned) and folded the claim into verify-embed: a region with no other owner is claimed on a successful check, and links is [] only where the client canonicalises on its own host. The cross-host case now answers with the owner's canonical rather than silently publishing a foreign one.
Unproven on Canada: no site owns it yet, and nothing can until sahajayoga.ca installs and passes a check. sydevs/SahajCloud#783 (the preview-host fallback owner) is still open.
R1 — settled
#383 transfers ownership instead of releasing it when the arriving element carries the same key, and keeps the query cache. Measured in Chromium against the built embed: 5 reads on main, 0 on the branch, content back at the same route. The earlier "a new Mapbox map load" cost was wrong — reuseMaps was already set, so react-map-gl recycles and re-parents the instance.
Measured on a simulated swap, not a real Custom Element. That confirmation belongs to the go-live.
Measured on Wix, and on sahajayoga.ca
- A Wix app cannot define a router (https://dev.wix.com/docs/overview/backend-services/custom-url-routing). A live Custom Element needs Premium, a connected domain and no Wix ads; both client sites report
"isPremium":true,"isPremiumDomain":true(2026-10-31). - Query routing drops the route, and a static page cannot 404. Hence a router.
- All five spike gates passed on
sydevelopers.wixsite.com/atlas-spike-classic: server-rendered head,notFound()→ real 404, Back/Forward and cold deep links,/frviarequest.baseUrl, hyphenated prefix, body text collapsed in the browser. A router<title>is emitted verbatim, with no Wix suffix. - Two traps that fail silently:
descriptionandrobotsrender only asmetaTagsrows; anylinksentry suppresses Wix's own canonical and hreflang, while[]makes Wix write both. Both are handled in #1058'sshape.ts. - sahajayoga.ca, re-checked 2026-11-11: unchanged.
/free-classesand/free-classes/ca/ontarioboth answer 200 with "Weekly Free Classes | Sahaja Yoga Canada" and a self-canonical — the soft-404 a static page gives./classes301s to/free-classes./sahajatlasis still live and would compete with the new city pages. - ⚠ Origin break at the go-live: moving from the iframe to a Custom Element changes the request
Originfrom*.filesusr.comtohttps://www.sahajayoga.ca. #1058 narrowed the allowlist to one domain plus its www twin, so the storedsite.domainmust be the real host before the element goes live.
What shipped, against the plan
- feat(atlas): add the Install tab and the Wix router endpoints SahajCloud#1055 → #1058. The Install tab (six tracks, every value prefilled, a Copy button on each), the
sitegroup replacingallowedDomainsand the drafts, the two Wix endpoints over one extracted resolver, the generatedrouters.jsand page code, per-client scoping on verify, the automatic claim, and the crawler-side SEO checks.- ⚠ The promised warning email became a digest item.
AtlasSeoWarningEmailandnotifySeoFailuresare gone; a failure is a "Search problem" open item read by the newatlas-service-managerhat in the "Your websites" digest, and a missing map is "Map not found" from the first nightly miss. The success line is reworded to match. An SEO failure still never touchesfailureCount. - Outstanding manual checks from that PR: the generated
routers.json a real Wix site, a non-admin manager opening their own service in a browser, and a deployed domain change.
- ⚠ The promised warning email became a digest item.
- feat(widget): keep state when a host replaces the element #349 → feat(widget): keep state when a host replaces the element #383. The same-key transfer, the
docs/embedding.mdInstall-tab pointer and Wix section,CHANGELOG.md. It did not touch routing: feat(widget): keep state when a host replaces the element #349's criteria never named it, because question 2 was open. - No repo. The sahajayoga.ca go-live and the retirement of its seven old classes-and-atlas pages. Still nobody's work.
What is left
- Answer questions 1–6. None was answered before the children were built, so 2 and 3 are now the goal's two blockers rather than its two choices.
- sydevs/SahajAtlasWeb — question 2's fix. 2A: read the mode off
/clients/me(the field is already served) and widenClientSchema; then correctclients.md:59andClients.ts:795. 2B: putrouting=pathin the Wix template and delete both sentences instead. - sydevs/SahajAtlasWeb — settle R2 in devtools, and restore
a94a567if Wix writes a classic tag. - No repo — the go-live, which lines 6 to 11 are about, plus retiring
/sahajatlasand/classesfrom the sitemap. - Still true from before: Turnstile holds neither Wix host, so a newly set-up site's sign-up and correction forms are refused until fix(turnstile): partner hosts fail the captcha with 110200 (unknown domain) #343 lands. French is still
["en"]in production.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
sydevs-bot commentedon Oct 31, 2026
🤖 no session running
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
sydevs-bot commentedon Oct 31, 2026
Reviewed from three angles. I kept your edits and rewrote around them.
Three things would have broken the headline promise. Path routing has only one input, the pasted script tag, so the planned Wix setup would send search engines new addresses while the map kept using the old ones (R3). Canada is owned by no site today, so every Canadian page would name a preview host as its canonical (R4). And nobody has seen whether Wix loads our script as a module — if not, nothing runs at all, silently. The fallback is in commit
a94a567, and both sites are Premium, so devtools settles it in minutes (R2).A city also has no description to publish, a volunteer cannot see the screen in their sidebar, and no work covers the sahajayoga.ca go-live. The success lines and
## Not includednow say so.Six decisions need you, in
## Open questions. Reply@sydevs-bot revise 1A, or in words. Question 1 reopens the main-page title.Both children need adjusting afterwards; the notes say how. Once nothing is open,
@sydevs-bot implementplans and starts the build.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
sydevs-bot commentedon Nov 11, 2026
Both children merged, so I checked the goal against what shipped.
Shipped: the Install tab with six tracks, one site per service, the two Wix endpoints with their generated Velo router, the automatic check, and the widget keeping its data when Wix replaces the element — 5 reads per Back press, now 0.
Six of thirteen lines are met. The seven that are not wait on two things:
/free-classes/ca/ontariostill answers with the sitewide title. The other two need any Premium Wix site. Question 3.routing=pathoff deliberately, and the widget reads its route only from?atlas=. Question 2 is now a blocker, not a choice.I also changed the line about a later search failure: it is an item in the "Your websites" email now, not its own email.
Answer questions 1–6 — reply
@sydevs-bot revise 2A, or in words. Then@sydevs-bot implementplans what is missing.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Ardnived commentedon Nov 18, 2026
Answered in the terminal by @Ardnived:
The seven open success lines moved to #427 (milestone Sahaj Atlas v3.1). Closing as completed: the setup screen shipped.