Skip to content

Sample browser: follow links to the maps; probe only samples with one - #291

Merged
krisnye merged 1 commit into
mainfrom
krisnye/architecture-links
Nov 30, 2026
Merged

krisnye merged 1 commit into
mainfrom
krisnye/architecture-links

Conversation

@krisnye

@krisnye krisnye commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Fixes the guide's links to the architecture maps inside the sample browser.

  • Following a link in a sample: clicking a map link in the guide, inside the sample browser, loaded the map in the guide's frame while the browser kept showing the Guide tab, no App / Architecture switch, and the guide's address, so reloading or sharing went back to the guide. The browser now follows its frame wherever a link leads: the tab, the switch and the address name the sample or map shown (#ecs-todo-vanillajs/architecture).
  • No probes for samples without a map: the browser asked for every tab's map.js, the guide's included, logging a 404 for each. Tabs now say which samples publish a map (data-map), and only those are looked for; a test checks the marks against the packages' pages.

Tests

A site test follows the guide's link to the todo map and checks the tab, the switch and the address; the sample browser's 20 tests pass. Checked first against the live site: maps opened directly and through the switch worked, and the guide's links worked opened alone.

… another sample or map; only tabs marked with a map are probed

Co-Authored-By: OpenCode <noreply@opencode.ai>
@krisnye
krisnye merged commit c741cb3 into main Nov 30, 2026
4 checks passed
@krisnye
krisnye deleted the krisnye/architecture-links branch November 30, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant