Repository navigation
feat: choose where the atlas opens, map-by-default shortcode, and a volunteer README - #61
Merged
Merged
Conversation
…d rewrite the README A third site setting, "Atlas page opens at". The volunteer pastes an address from sahajatlas.com (or from their own Atlas page, or a bare route); the plugin reads it as a route, checks it with SahajCloud's SEO endpoint on save, and passes it as the widget's `atlas` default. A refused or unknown address keeps the previous value and says why. The shortcode and block's `atlas` attribute take the same addresses. Under routing=path the widget ignored `atlas=` until SahajAtlasWeb#250, so this needs that PR deployed to work on path-routed Atlas pages. The browser lane's new start-route cell shows both: it fails on production and passes on #250's preview. The README is rewritten for the volunteer who installs the plugin: install, set up, choose where it opens, and the shortcode and block with examples. The block editor's help text no longer claims the map covers the window. The browser lane also refuses to run a cell on a port another server still answers: an orphaned server from an interrupted run had silently served every later cell on that port. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the page scroll past it Owner decision: `[sahaj_atlas]` and the block show the map unless `map="false"`. The element takes the column's full width at 3:4, capped at 80vh so a wide column never gets a map taller than the screen. In-content map embeds send `gestures=cooperative` (SahajAtlasWeb#251), so one finger and the wheel scroll the page and two fingers or Ctrl/⌘ + wheel move the map. The Atlas page sends none: it fills the screen and has nothing to scroll to. The browser lane gains an article cell: a bare `[sahaj_atlas]` between paragraphs, checking the box's size and that a wheel over the map scrolls the page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived
added a commit
that referenced
this pull request
Oct 5, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived
added a commit
that referenced
this pull request
Oct 6, 2026
* chore(release): 0.3.0 Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(readme): the 0.3.0 entry for #58 Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(readme): the 0.3.0 entries for #61 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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
atlas=default.[sahaj_atlas map="true" atlas="https://sahajatlas.com/gb"]works, and routes still work as before.README.mdis rewritten for a non-technical volunteer. It covers install, setup, choosing where the atlas opens, and the shortcode and block, with an examples table.readme.txtgains a matching FAQ entry.Shortcode and block changes (owner request)
[sahaj_atlas]and the block show the map by default. Usemap="false"for the list, a single class, or a sign-up form. A shortcode or block saved withoutmapnow shows the map.aspect-ratiobox as a definite height.gestures=cooperative(feat(embed): gestures=cooperative lets the host page scroll past a contained map SahajAtlasWeb#251). One finger and the mouse wheel scroll the page; two fingers or Ctrl/⌘ + wheel move the map. The Atlas page doesn't send it, because it fills the screen and has nothing to scroll to. Until #251 deploys, the widget ignores the parameter.⚠ Depends on SahajAtlasWeb#250 (merged) and #251
On an Atlas page with clean URLs (
routing=path, most sites), the widget ignoredatlas=. sydevs/SahajAtlasWeb#250 fixes that. Merge #250 first. Until it deploys, this setting only works on sites without clean URLs.Changes
includes/embed.php:sahaj_atlas_route_from_input()reads a pasted address. It accepts sahajatlas.com, this site's own Atlas page in either routing shape,?atlas=, or a baregb/london, and refuses any other site.sahaj_atlas_start_route()feeds the page embed.includes/settings.php: the thirdregister_setting,sahaj_atlas_sanitize_start_route()(memoised, because core sanitises a new option twice) and the field.sahaj-atlas.php:SAHAJ_ATLAS_OPTION_START_ROUTE.AGENTS.mdprinciple 4 anddocs/rules/code-comments.mdcounts updated.tests/start.php: 32 assertions.tests/browser.mjs: astart-routecell, and a check that refuses a port another server still answers. A server orphaned by an interrupted run had silently served every later cell on port 8830.Test results
After the shortcode changes:
pnpm test:allgives 380 assertions, 0 failures. With the old defaults restored, 5 of the new assertions fail.Browser lane,
astracell, new article check (a bare[sahaj_atlas]between paragraphs):8e5690eaOn a phone (350px column) it shows the compact card, as described above.
pnpm test:all: 0 failures, 374 assertions. I watched the new assertions fail first: with the page embed ignoring the option, the foreign-address guard removed, the 404 branch disabled, and the read-time sanitiser removed, 10 assertions failed.pnpm test:browser --only start-route:SAHAJ_ATLAS_WIDGET_FROM=https://9cdfb03c.sahajatlas.pages.dev), it passes with 0 failures. The Atlas page opens on the United Kingdom, listing its regions.astraagainst the preview: 0 failures.Manual verification
pnpm test:browser --only start-routeagainst production. It should report 0 failures.https://sahajatlas.com/<your country>into the new field and save. The Atlas page should open there.🤖 Generated with Claude Code