Skip to content

Volunteers set up the atlas on their own site, Wix included, with searchable links #348

Closed
2 of 2 issues completed

Description

@Ardnived

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

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-classes for 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

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=path on purpose, and the widget reads its route only from ?atlas= — so a router page at /free-classes/ca/ontario boots 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/ontario still answers 200 with the sitewide title, and /sahajatlas still 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.routing off the routing probe, and says so: Clients.ts:795 ("this hook is what the widget's canonical.routing reads") and docs/rules/clients.md:59.
  • The widget reads no such field. ClientSchema admits only canonical.enabled and canonical.embed (src/types/client.ts), so a virtual routing is 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=path deliberately, so the widget cannot fight the router for the URL — SahajCloud/.../InstallGuide/templates.ts:256-263; docs/embedding.md:127-130 tells 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, /fr via request.baseUrl, hyphenated prefix, body text collapsed in the browser. A router <title> is emitted verbatim, with no Wix suffix.
  • Two traps that fail silently: description and robots render only as metaTags rows; any links entry suppresses Wix's own canonical and hreflang, while [] makes Wix write both. Both are handled in #1058's shape.ts.
  • sahajayoga.ca, re-checked 2026-11-11: unchanged. /free-classes and /free-classes/ca/ontario both answer 200 with "Weekly Free Classes | Sahaja Yoga Canada" and a self-canonical — the soft-404 a static page gives. /classes 301s to /free-classes. /sahajatlas is 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 Origin from *.filesusr.com to https://www.sahajayoga.ca. #1058 narrowed the allowlist to one domain plus its www twin, so the stored site.domain must 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 site group replacing allowedDomains and the drafts, the two Wix endpoints over one extracted resolver, the generated routers.js and page code, per-client scoping on verify, the automatic claim, and the crawler-side SEO checks.
    • ⚠ The promised warning email became a digest item. AtlasSeoWarningEmail and notifySeoFailures are gone; a failure is a "Search problem" open item read by the new atlas-service-manager hat 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 touches failureCount.
    • Outstanding manual checks from that PR: the generated routers.js on a real Wix site, a non-admin manager opening their own service in a browser, and a deployed domain change.
  • 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.md Install-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 widen ClientSchema; then correct clients.md:59 and Clients.ts:795. 2B: put routing=path in the Wix template and delete both sentences instead.
  • sydevs/SahajAtlasWeb — settle R2 in devtools, and restore a94a567 if Wix writes a classic tag.
  • No repo — the go-live, which lines 6 to 11 are about, plus retiring /sahajatlas and /classes from 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

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added theissue type on Oct 31, 2026
  2. added
    bot:working
    on Oct 31, 2026
  3. sydevs-bot commented on Oct 31, 2026

    @sydevs-bot
    Contributor

    🤖 no session running

    recent dispatches
    • 18:29Z revise-roadmap · attempt 1 · session · done
    • 18:29Z revise-roadmap · attempt 1 · session
    • 17:34Z revise-roadmap · attempt 1 · session · done
    • 17:34Z revise-roadmap · attempt 1 · session

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

  4. sydevs-bot commented on Oct 31, 2026

    @sydevs-bot
    Contributor

    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 included now 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 implement plans and starts the build.

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


    Generated by Claude Code

  5. removed
    bot:working
    on Oct 31, 2026
  6. moved this from Working to Awaiting in SYDevelopers Technical Roadmapon Oct 31, 2026
  7. added this to the Sahaj Atlas launch milestone on Nov 5, 2026
  8. added
    bot:working
    on Nov 11, 2026
  9. moved this from Awaiting to Working in SYDevelopers Technical Roadmapon Nov 11, 2026
  10. sydevs-bot commented on Nov 11, 2026

    @sydevs-bot
    Contributor

    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:

    • No real Wix install exists. Five are about sahajayoga.ca, which is untouched: /free-classes/ca/ontario still answers with the sitewide title. The other two need any Premium Wix site. Question 3.
    • A Wix city address would open on the whole map. The Wix setup leaves routing=path off 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 implement plans what is missing.

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


    Generated by Claude Code

  11. removed
    bot:working
    on Nov 11, 2026
  12. moved this from Working to Awaiting in SYDevelopers Technical Roadmapon Nov 11, 2026
  13. Ardnived commented on Nov 18, 2026

    @Ardnived
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    Medium

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions