Repository navigation
feat(atlas): reserve the add and correct view segments in the SEO route resolver - #1028
Merged
Merged
Conversation
…te resolver The widget's add-a-class (`/add`, `/<region…>/add`) and suggest-a-correction (`/<region…>/<eventId>/correct`) panels are new routed views (sydevs/SahajAtlasWeb#147). Without them in RESERVED_SEGMENTS, a deep link or reload of such a URL is read as a region slug and GET /api/atlas/seo 404s. Part of sydevs/SahajAtlasWeb#147 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
I could not request a reviewer here, so this is the step left for you.
🤖 sydevs dispatcher |
sydevs-bot
pushed a commit
that referenced
this pull request
Oct 25, 2026
Clean merge, no conflicts — the first on this branch that needed no numbers argument. Main's three commits since the last merge (#959, #1027, #1028) touch the atlas SEO resolver, the submission intake and escapeRegExp's home, none of which this branch reads. src/plugins/access is untouched on main this time, so there was no semantic call to make. tests/PERF.md's counts stand: main added one int spec and edited two unit specs without adding a unit file, and perf-figures-pinned counts files, not cases. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tj9vmW1FyGMJBwBFWybcWq
sydevs-bot
pushed a commit
that referenced
this pull request
Oct 25, 2026
The lane is 2902 cases on the merged tree, not 2898: main's #1028 added six to atlas-seo-route and this branch's rename dropped the `clients` case from locale-scoped-writes, which had nothing left to pin once that collection stopped carrying a top-level `locale`. The file count is unchanged at 225, so perf-figures-pinned stayed green and nothing forced this — PERF.md declares itself the single writer of every tier figure, and a figure four cases out is the drift that rule exists to stop. Recorded as a fourteenth session row rather than replacing one, with the gate's own 53.56 s; every earlier timing stays the session it names. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tj9vmW1FyGMJBwBFWybcWq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/atlas/seonow treatsaddandcorrectas widget view segments, not region slugs.Change outline
Reserved route segments (
src/endpoints/atlas/seo/atlasRoute.ts)RESERVED_SEGMENTSgainsaddandcorrect, matching the widget'sRESERVED_SLUGSon sydevs/SahajAtlasWeb#147. The docblock names both views with an example each:/add,/<region…>/add(add-a-class panel) → the region beside it, or the root when bare./<region…>/<eventId>/correct(suggest-a-correction panel) → that event.The endpoint docblock in
src/endpoints/atlas/seo/index.tsadds/addto the list of bare view routes that answer as the root.Specs
tests/unit/atlas-seo-route.spec.ts:/gb/london/add,/gb/london/1204/correct,/gb/london/CORRECTdrop the view segment; bare/addand/correctresolve to the root.tests/int/atlas-seo.int.spec.ts:/addanswers with the same document as/.Regions' slug validation refuses no reserved words today, so nothing changed there. Generated types are unchanged.
Contract impact
This is the atlas URL contract: the reserved-word set must match in three places. Widget: sydevs/SahajAtlasWeb#147 (branch
claude/feat-147-submit-a-class). Server-side host: WeMeditateWeblib/atlas-route.ts, sydevs/WeMeditateWeb#197. Merge this PR first (producer), then WeMeditateWeb.Test results
.claude/skills/pr-prep/check.sh): ✓ lint, format, both typechecks, unit 224 files / 2891 teststests/unit/atlas-seo-route.spec.ts42 passed;tests/int/atlas-seo.int.spec.ts54 passedadd/correctremoved from the set, 5 unit cases and the/addint case failPart of sydevs/SahajAtlasWeb#147
🤖 Generated with Claude Code