Repository navigation
Gallery: the Astro component, visualci-astro-gallery (sc-9306) - #193
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #699 · 510 unchanged · no changes This PR vs base: 28 changed, 76 added since #540, across 5 builds docspring/visualci · journeys · build #696 · 1 changed, 49 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent
This PR vs base: 2 changed, 8 added since #537, across 6 builds
Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
sc-9297-gallery-js
branch
from
December 4, 2026 08:42
7aac4ef to
bf71013
Compare
ndbroadbent
force-pushed
the
sc-9306-gallery-astro
branch
from
December 4, 2026 08:43
59ccad9 to
6856e05
Compare
ndbroadbent
force-pushed
the
sc-9297-gallery-js
branch
2 times, most recently
from
December 4, 2026 11:33
11adc64 to
9c8faf8
Compare
ndbroadbent
force-pushed
the
sc-9306-gallery-astro
branch
from
December 4, 2026 11:43
6856e05 to
cb8282d
Compare
ndbroadbent
force-pushed
the
sc-9306-gallery-astro
branch
2 times, most recently
from
December 4, 2026 12:35
e57ccc5 to
6cb58e8
Compare
<Gallery manifest=… /> fetches the manifest when the site builds, renders the contract's markup with visualci-gallery's render(), and brings the default stylesheet and a module script that hydrates every gallery on the page. A manifest that can't be read or has nothing to show fails the build. The props are the library's options and load()'s. clients/gallery is now a pnpm workspace (js, astro). Tests: every golden fixture through Astro's container API, the two failures, and a real astro build of a small site whose page carries the golden markup, a stylesheet and the script as files (no inline scripts).
Publishes visualci-gallery and visualci-astro-gallery from CI with provenance for a gallery-js-v* tag, with the NPM_TOKEN secret until npm trusted publishing is set up. The component depends on visualci-gallery with workspace:^, so it's published as a caret range.
The fleetlayer fixture's Mac approver tab needs its groups option, so the test site reads the whole options.json rather than copying some of it.
…avigation Under Astro's ClientRouter the component's script runs once per document, so a gallery on the next page stayed dead. It now hydrates on astro:page-load too (hydrate ignores a gallery it already has) and destroys the old page's galleries on astro:before-swap, so their listeners don't leak.
ndbroadbent
force-pushed
the
sc-9306-gallery-astro
branch
from
December 4, 2026 12:48
6cb58e8 to
53b5338
Compare
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.
Story: sc-9306 (epic sc-9295). Stacked on #189: GitHub retargets it to main when #189 merges.
What it adds
clients/gallery/astro: visualci-astro-gallery, an Astro component.<Gallery manifest="https://app.visualci.com/g/<org>/<project>.json" {...options} />reads the manifest when the site builds and renders the contract's markup.astro build. There's no fallback.clients/gallerybecomes a pnpm workspace (js, astro), with one lockfile. The component depends onvisualci-galleryasworkspace:^, which is published as a caret range..github/workflows/release-gallery-npm.ymlpublishes both packages from CI, with provenance, for agallery-js-v*tag.NPM_TOKENrepo secret, also kept in 1Password (Nathan's Tasks sc-9327).Tests
astro/test/gallery.test.tsrenders every contract fixture through Astro's container API and checks the failures.astro/test/build.test.tsruns a realastro buildof a small site with the fleetlayer fixture's manifest and options. It checks:clientsjob now runs the workspace: the library's type check, every package's build, and every package's tests.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.