feat(web): read-only "widget" mode + embeddable Annapolis demo#14
Merged
Conversation
Add a static, embeddable, read-only build of <chart-plotter> — the "widget" mode — and ship it as a live demo on the docs site. Renames the old prebaked "prod" mode to "widget" (attribute / ?widget / :host([widget]) / make serve-widget) and hardens it into a pure viewer: hides the Charts and Share buttons, drops the Advanced settings tab, and keeps only the client-side display settings (General/Text/Units/Depths), all local. No backend, no in-browser baking, no connections/dev tools (already prod-gated). Tooling + hosting: - `make demo` assembles a self-contained static bundle (per-band Annapolis .pmtiles + manifest, emitted S-101 client assets, the frontend) via the new scripts/fetch-demo-cells.sh; `make serve-demo` previews it. - docs CI builds the bundle into docs/static/demo and deploys it at /chartplotter/demo/; the intro page embeds it live via a <LiveChart/> component. New Widget docs page covers packaging, deploying, and CORS. Fixes: - serve: emitted S-101 assets are now a fallback, not a replacement, so an explicit --assets bundle serves its own index.html / manifest / .pmtiles (also fixes serve-widget). - downloader: resolve manifest archive (and aux) paths against the manifest URL, not the page — so a widget embedded on a page in a different directory finds its tiles instead of 404ing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Add a static, embeddable, read-only build of — the "widget" mode — and ship it as a live demo on the docs site.
Renames the old prebaked "prod" mode to "widget" (attribute / ?widget / :host([widget]) / make serve-widget) and hardens it into a pure viewer: hides the Charts and Share buttons, drops the Advanced settings tab, and keeps only the client-side display settings (General/Text/Units/Depths), all local. No backend, no in-browser baking, no connections/dev tools (already prod-gated).
Tooling + hosting:
make demoassembles a self-contained static bundle (per-band Annapolis .pmtiles + manifest, emitted S-101 client assets, the frontend) via the new scripts/fetch-demo-cells.sh;make serve-demopreviews it.Fixes: