Skip to content

feat(seo): describe /map from the atlas root, not the site defaults #64

Description

@Ardnived

Summary

/map — the atlas entry point — has no metadata of its own. It inherits the global site title and
description and emits no canonical, so the front door of the atlas reads to a crawler as a
duplicate of the homepage
. Every region and class page beneath it is described correctly.

Deferred deliberately in #62 (see PR #63); this
issue tracked fixing it once SahajCloud could describe the atlas root in every locale. It can now
— see Unblocked. Nothing in this repo consumes that answer yet.

Current behaviour

Still true on main at 3b7469f, verified 2026-10-03.

GET /map
  <title>We Meditate</title>                          ← global default
  <meta name="description" content="Discover free …"> ← global default
  (no <link rel="canonical">)

Compare GET /map/gb/london, which is fully described — London, United Kingdom, a canonical read
from webUrl, 11 hreflang rows, og:*, and JSON-LD.

Why it is not fixed yet

The rule the implementation follows is that a page's metadata describes the atlas route the widget
mounted with
. /map mounts with atlas=/, the atlas root. Three places in this repo still treat
that route as undescribable:

  • lib/atlas-route.ts:115 — parseAtlasRoute returns null for / and for bare view routes.
  • server/atlas-client.ts:66 — getAtlasSeo short-circuits on that null and never calls the
    endpoint.
  • server/atlas-types.ts:170-172 — AtlasSeoResponse has only 'region' and 'event' members, so
    nothing here can type a root answer.

So +data.ts returns seo: null for the root and useAtlasHead contributes nothing. That is
asserted today by pages/map/Page.test.tsx:139.

Unblocked

Both original blockers landed, and the upstream 404 this ticket was written around is gone.

Localized metadata is served as data from upstream, so the ten-locale authoring problem that parked
this ticket no longer applies. The C3 concern — that a local implementation would be the second copy
— is satisfied by reading the endpoint rather than authoring strings here.

Acceptance criteria

  • server/atlas-types.ts carries the 'root' member and its content type, re-mirrored from
    SahajCloud's src/endpoints/responseTypes.ts
  • /map emits a <title> and <meta name="description"> describing the atlas root view,
    not the site defaults
  • /map emits a self-referencing <link rel="canonical">
  • Both are correct in every atlas locale, sourced from upstream rather than authored here
  • Bare view routes (/map/search, /map/calendar) resolve to the root view's metadata rather
    than to nothing — they are views of the root
  • No English string is emitted into a non-English page's <head>
  • Covered by a test in pages/map/Page.test.tsx alongside the existing head assertions

Files likely affected

  • server/atlas-types.ts — re-mirror first. With no 'root' member, the short-circuit below reads
    as correct to anyone opening the file
  • lib/atlas-route.ts — parseAtlasRoute returns null for /, which is the short-circuit. Its
    doc comment at line 95 still says this site owns the root's metadata "because no SahajCloud
    document describes it". That is now false, and must be corrected with the code
  • server/atlas-client.ts — getAtlasSeo short-circuits before the call; the root needs to reach
    the endpoint
  • lib/atlas-head.tsx — already emits everything needed once given a document, canonical included,
    through its Head config. No change expected

Interim considered and rejected

WebConfig.classPages[0] (the "Classes near me" page) is already localized and could supply a title
and description today. Rejected, and now moot: it describes our page about classes, not the atlas
root view, and upstream serves the real thing.

Related

Notes

Re-check: 2026-10-02 — passed. Re-verified unresolved on main at 3b7469f on 2026-10-03.

Activity

  1. added theissue type on Aug 28, 2026
  2. Ardnived commented on Sep 8, 2026

    @Ardnived
    ContributorAuthor

    Parked until 2026-10-02 (migrated from the retired Hold Until field). The loop mentions @Ardnived when that date passes.

  3. 4 remaining items

  4. Ardnived commented on Oct 3, 2026

    @Ardnived
    ContributorAuthor

    @sydevs-bot Analyze recent changes to the code and decide whether this ticket is still relevant. I believe the issue it describes has already been resolved. If so, close it.

  5. added
    bot:working
    and removed on Oct 3, 2026
  6. sydevs-bot commented on Oct 3, 2026

    @sydevs-bot
    Contributor

    🤖 no session running

    recent dispatches
    • 05:28Z implement · attempt 1 · session · done
    • 05:28Z implement · attempt 1 · session
    • 21:32Z answer · attempt 1 · session · done
    • 21:32Z answer · attempt 1 · session

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

  7. sydevs-bot commented on Oct 3, 2026

    @sydevs-bot
    Contributor

    Not resolved — keeping it open. /map still serves the site defaults on main at 3b7469f.

    The blockers did clear, but nothing here consumes the new answer:

    • server/atlas-types.ts:170-172 — AtlasSeoResponse has only 'region' and 'event'. No 'root' member.
    • lib/atlas-route.ts:115 — parseAtlasRoute still returns null for /.
    • server/atlas-client.ts:66 — getAtlasSeo short-circuits on that null and never calls the endpoint.

    So +data.ts hands seo: null to the root and useAtlasHead emits nothing. pages/map/Page.test.tsx:139 asserts exactly that today.

    Upstream is ready: SahajCloud main carries the type: 'root' variant at src/endpoints/responseTypes.ts:186. No commit on our side has picked it up.

    I corrected the body: Blocked on is now Unblocked, the stale 404 premise is gone, and server/atlas-types.ts is listed as the first file to touch. The work is small and well-defined now.

    @sydevs-bot implement starts it.

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


    Generated by Claude Code

  8. added and removed
    bot:working
    on Oct 3, 2026
  9. Ardnived commented on Oct 6, 2026

    @Ardnived
    ContributorAuthor

    @sydevs-bot implement

  10. added
    bot:working
    and removed
    bot:working
    on Oct 6, 2026
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

    Hold Until

    Oct 2, 2026

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions