Skip to content

Publish the samples' architecture maps; fix the published voxel editor - #290

Merged
krisnye merged 3 commits into
mainfrom
krisnye/architecture-site
Nov 30, 2026
Merged

krisnye merged 3 commits into
mainfrom
krisnye/architecture-site

Conversation

@krisnye

@krisnye krisnye commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Publishes every standard sample's architecture map on the site, reachable from the sample browser, the guide and the README; and fixes the published voxel editor.

Maps on the site

  • Each standard sample builds with Architecture.plugin() (the benchmark, built for node, runs ecs-architecture map --web after its build), writing dist/architecture/ with source links to GitHub at the built commit, and publishes it through pages at ecs/samples/<package>/architecture/: todo, voxel editor, particles, GPU views, transferred sprites, benchmark, and the viewer's map of itself.
  • Sample browser: an App / Architecture switch beside "Open alone ↗" for samples with a map. #<package>/architecture opens the map, and the map's view follows in the address (#ecs-todo-vanillajs/architecture?focus=features/todos), so links reopen the same view. "Open alone" opens the map page while it's showing.
  • Guide: a chapter, "Architecture maps", linking each sample's map.
  • README: "Online" lists the maps and the missing Voxel Editor tab; ecs-architecture's README notes how private repositories view their maps (the dev server's /architecture/, or dist/architecture/index.html from disk).

Fixes

  • Voxel editor on the site: the sample browser's single build bundled two Spectrum versions (the voxel editor resolved 1.12.5, the guide 1.12.6), so sp-icon-corner-triangle300 was defined twice and the page failed. The ECS apps now share ^1.12.6; both lockfiles updated.
  • Build order: the sample browser now devDepends on every sample, so pnpm -r run build builds them first; from a clean checkout it could race @adobe/ecs-gpu's build.

Versions

@adobe/ecs-architecture 0.7.1, @adobe/ecs-architecture-viewer 0.1.1.

Tests

A local simulation of both deploys from a clean checkout (frozen installs, pnpm -r run build, pnpm -r run docs, collect-pages, served at / and at /data/), checked in a browser: the sample browser, todo's Architecture switch and GitHub links, the deep link, all seven maps without page errors, the voxel editor without console errors, the guide chapter's links, and the README's. In ecs/: check:workspace, typecheck, lint and tests (with CI=true) are green.

Co-Authored-By: OpenCode <noreply@opencode.ai>

Each standard sample builds its map with Architecture.plugin() (the benchmark,
built for node, with ecs-architecture map --web) and publishes it at
ecs/samples/<package>/architecture/; the viewer publishes its own map. The
sample browser names its samples as devDependencies so it builds after them.
Spectrum is ^1.12.6 throughout, so the sample browser bundles one copy.
@adobe/ecs-architecture 0.7.1, @adobe/ecs-architecture-viewer 0.1.1.
Co-Authored-By: OpenCode <noreply@opencode.ai>

#<package>/architecture shows the sample's map, its query following the map's
view, so a shared address reopens it; the dev server serves each sample's
built map at the same path.
Co-Authored-By: OpenCode <noreply@opencode.ai>

A guide chapter on maps linking each sample's, the maps in the README's
Online list beside the Voxel Editor, and a note on private repositories.
@krisnye
krisnye merged commit 6ed7943 into main Nov 30, 2026
4 checks passed
@krisnye
krisnye deleted the krisnye/architecture-site branch November 30, 2026 08:00
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