Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

refactor(ci): reduce Pages to one landing (#6766)

Cindy Zhang00af005261e2
diff --git a/.github/pages/index.html b/.github/pages/index.html
new file mode 100644
index 0000000000..49e03fb5aa
--- /dev/null
+++ b/.github/pages/index.html
@@ -0,0 +1,124 @@
+<!-- Copyright (c) Meta Platforms, Inc. and affiliates. -->
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="robots" content="noindex, follow" />
+ <link rel="canonical" href="https://astryx.atmeta.com/" />
+ <title>Astryx has moved</title>
+ <style>
+ :root {
+ color-scheme: light dark;
+ font-family:
+ Inter,
+ ui-sans-serif,
+ system-ui,
+ -apple-system,
+ BlinkMacSystemFont,
+ 'Segoe UI',
+ sans-serif;
+ }
+ * {
+ box-sizing: border-box;
+ }
+ body {
+ min-height: 100vh;
+ margin: 0;
+ display: grid;
+ place-items: center;
+ background: light-dark(#f7f7f8, #171719);
+ color: light-dark(#18181b, #fafafa);
+ }
+ main {
+ width: min(100% - 2rem, 32rem);
+ padding: clamp(1.5rem, 6vw, 3rem);
+ border: 1px solid light-dark(#dedee3, #3f3f46);
+ border-radius: 1rem;
+ background: light-dark(#fff, #242427);
+ box-shadow: 0 1rem 3rem rgb(0 0 0 / 12%);
+ }
+ h1 {
+ margin: 0 0 0.75rem;
+ font-size: clamp(2rem, 9vw, 3rem);
+ line-height: 1;
+ }
+ p {
+ margin: 0 0 1.5rem;
+ color: light-dark(#52525b, #d4d4d8);
+ line-height: 1.5;
+ }
+ nav {
+ display: grid;
+ gap: 0.75rem;
+ }
+ a {
+ display: block;
+ padding: 1rem;
+ border: 1px solid light-dark(#d4d4d8, #52525b);
+ border-radius: 0.75rem;
+ color: inherit;
+ text-decoration: none;
+ }
+ a:hover {
+ border-color: #4b57b5;
+ }
+ a:focus-visible {
+ outline: 3px solid #4b57b5;
+ outline-offset: 3px;
+ }
+ a.primary {
+ border-color: #4b57b5;
+ background: #4b57b5;
+ color: #fff;
+ font-weight: 700;
+ }
+ strong,
+ small {
+ display: block;
+ }
+ small {
+ margin-top: 0.25rem;
+ color: inherit;
+ opacity: 0.8;
+ }
+ </style>
+ </head>
+ <body>
+ <main>
+ <h1>Astryx has moved</h1>
+ <p>
+ The canonical documentation, Storybook, and Sandbox now live together on
+ the Astryx docsite.
+ </p>
+ <nav aria-label="Astryx destinations">
+ <a class="primary" href="https://astryx.atmeta.com/">
+ <strong>Astryx documentation</strong>
+ <small>Canonical site</small>
+ </a>
+ <a id="storybook" href="https://astryx.atmeta.com/storybook/">
+ <strong>Storybook</strong>
+ <small>Components, props, and interactive examples</small>
+ </a>
+ <a id="sandbox" href="https://astryx.atmeta.com/sandbox/">
+ <strong>Sandbox</strong>
+ <small>Full app examples and developer tools</small>
+ </a>
+ </nav>
+ </main>
+ <script>
+ (() => {
+ const path = location.pathname.replace(/^\/astryx(?=\/|$)/, '') || '/';
+ for (const surface of ['storybook', 'sandbox']) {
+ if (path === `/${surface}` || path.startsWith(`/${surface}/`)) {
+ const target = new URL(path, 'https://astryx.atmeta.com');
+ target.search = location.search;
+ target.hash = location.hash;
+ document.getElementById(surface).href = target.href;
+ }
+ }
+ })();
+ </script>
+ </body>
+</html>
diff --git a/.github/scripts/ci-test-routing.test.mjs b/.github/scripts/ci-test-routing.test.mjs
index c2c87a90b7..5cf94e4a37 100644
--- a/.github/scripts/ci-test-routing.test.mjs
+++ b/.github/scripts/ci-test-routing.test.mjs
@@ -344,15 +344,19 @@ describe('ci.yml RTL package sharding', () => {
describe('deploy.yml push gating', () => {
const workflow = load('deploy.yml');
- it('still blocks the publish on the join and the build', () => {
- // Splitting the gate must not let a deploy through on a red suite.
- expect(workflow.jobs.deploy.needs).toEqual(
- expect.arrayContaining(['test', 'build']),
- );
- expect(workflow.jobs.deploy.if).toContain("needs.test.result == 'success'");
- expect(workflow.jobs.deploy.if).toContain(
- "needs.build.result == 'success'",
- );
+ it('ends at the stable validation join without a publisher', () => {
+ expect(workflow.jobs.deploy).toBeUndefined();
+ expect(workflow.jobs.test.needs).toEqual([
+ 'test-ui',
+ 'test-node',
+ 'typecheck',
+ ]);
+ const join = workflow.jobs.test.steps.find(
+ step => step.name === 'Assert every push gate succeeded',
+ ).run;
+ for (const owner of ['test-ui', 'test-node', 'typecheck']) {
+ expect(join).toContain(`needs.${owner}.result`);
+ }
});
it('keeps the typecheck gates behind the build they need', () => {
diff --git a/.github/scripts/ci-tooling-routing.test.mjs b/.github/scripts/ci-tooling-routing.test.mjs
index 099f4bd241..f14da4923a 100644
--- a/.github/scripts/ci-tooling-routing.test.mjs
+++ b/.github/scripts/ci-tooling-routing.test.mjs
@@ -192,15 +192,14 @@ describe('Node-tooling CI routing', () => {
expect(buildJoin).toContain('needs.build-sandbox.result');
});
- it('keeps privileged preview publication off the tooling lane', () => {
+ it('keeps removed preview publication out of the tooling lane', () => {
expect(prComment.jobs.resolve.outputs.tooling_only).toContain(
'steps.identity.outputs.tooling_only',
);
- for (const name of ['deploy-preview', 'comment']) {
- expect(prComment.jobs[name].if, name).toContain(
- "needs.resolve.outputs.tooling_only != 'true'",
- );
- }
+ expect(prComment.jobs['deploy-preview']).toBeUndefined();
+ expect(prComment.jobs.comment.if).toContain(
+ "needs.resolve.outputs.tooling_only != 'true'",
+ );
expect(prComment.jobs['spec-only-reconcile'].if).toContain(
"needs.resolve.outputs.tooling_only == 'true'",
);
diff --git a/.github/scripts/compact-gh-pages-history.sh b/.github/scripts/compact-gh-pages-history.sh
deleted file mode 100755
index 243f0563f7..0000000000
--- a/.github/scripts/compact-gh-pages-history.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-set -euo pipefail
-
-node .github/scripts/gh-pages-publisher.mjs compact
diff --git a/.github/scripts/gh-pages-publisher.mjs b/.github/scripts/gh-pages-publisher.mjs
deleted file mode 100755
index 86cc44afd4..0000000000
--- a/.github/scripts/gh-pages-publisher.mjs
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env node
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-import {main} from './lib/gh-pages-publisher.mjs';
-
-await main();
diff --git a/.github/scripts/lib/gh-pages-publisher.mjs b/.github/scripts/lib/gh-pages-publisher.mjs
deleted file mode 100755
index d9d363c1ce..0000000000
--- a/.github/scripts/lib/gh-pages-publisher.mjs
+++ /dev/null
@@ -1,2349 +0,0 @@
-#!/usr/bin/env node
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * @file Shared gh-pages publication queue and scoped publishers.
- * @input Repository/run/scope identity, Git remote, and publication payloads.
- * @output Serialized publications and cleanup after wait or publish failures.
- * @position Common publication lifetime for the repository's Pages writers.
- */
-
-import {spawnSync} from 'node:child_process';
-import {createHash} from 'node:crypto';
-import fs from 'node:fs';
-import os from 'node:os';
-import path from 'node:path';
-import {fileURLToPath} from 'node:url';
-
-import {
- createPreviewPublicationManifest,
- createPublishedDeploymentResult,
- writeDeploymentResult,
-} from './pr-preview.mjs';
-
-const PAGES_BRANCH = 'gh-pages';
-const QUEUE_REL = path.join('.astryx-gh-pages', 'publication-queue');
-const LEGACY_BASELINE_QUEUE_REL = path.join('visual-gate', 'publication-queue');
-const SCREENSHOT_RETENTION_INDEX_REL = path.join(
- '.astryx-gh-pages',
- 'retention',
- 'screenshot-created-at.json',
-);
-const BASELINE_SCOPE = 'visual-gate/baseline';
-const HOLDER_NAME = 'holder.json';
-const RUN_ID = /^[1-9][0-9]*$/;
-const SCOPE = /^[a-z0-9][a-z0-9._/-]*$/;
-const BOT_NAME = 'github-actions[bot]';
-const BOT_EMAIL = 'github-actions[bot]@users.noreply.github.com';
-const DEFAULT_WAIT_MS = 75 * 60 * 1000;
-
-function refuse(message) {
- throw new Error(`gh-pages publisher refused: ${message}`);
-}
-
-function run(command, args, options = {}) {
- const result = spawnSync(command, args, {
- encoding: 'utf8',
- ...options,
- });
- if (result.status !== 0) {
- refuse(
- `${command} ${args[0] ?? ''} failed: ${
- result.stderr?.trim() ||
- result.stdout?.trim() ||
- `exit ${result.status}`
- }`,
- );
- }
- return result.stdout.trim();
-}
-
-function tryRun(command, args, options = {}) {
- return spawnSync(command, args, {encoding: 'utf8', ...options});
-}
-
-function git(cwd, ...args) {
- return run('git', ['-C', cwd, ...args]);
-}
-
-function configureGitIdentity(cwd) {
- git(cwd, 'config', 'user.name', BOT_NAME);
- git(cwd, 'config', 'user.email', BOT_EMAIL);
-}
-
-function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
-}
-
-function validateIdentity(repository, runId, scope) {
- if (typeof repository !== 'string' || !/^[^/]+\/[^/]+$/.test(repository)) {
- refuse('repository identity is invalid');
- }
- if (!Number.isSafeInteger(runId) || runId <= 0) {
- refuse('current run id is invalid');
- }
- if (typeof scope !== 'string' || !SCOPE.test(scope) || scope.includes('..')) {
- refuse('publication scope is invalid');
- }
-}
-
-function ticketValue(repository, runId, scope) {
- return {version: 1, repository, runId, scope};
-}
-
-function validTicket(value, repository, runId, scope = value?.scope) {
- return (
- Number.isSafeInteger(runId) &&
- runId > 0 &&
- value?.version === 1 &&
- value.repository === repository &&
- value.runId === runId &&
- value.scope === scope &&
- typeof scope === 'string' &&
- SCOPE.test(scope) &&
- !scope.includes('..')
- );
-}
-
-function readJSON(file) {
- try {
- return JSON.parse(fs.readFileSync(file, 'utf8'));
- } catch {
- return null;
- }
-}
-
-export function orderedTickets(entries, repository) {
- if (!Array.isArray(entries)) refuse('queue entries are invalid');
- const tickets = [];
- const seen = new Set();
- for (const entry of entries) {
- if (!RUN_ID.test(entry?.name ?? '')) continue;
- const runId = Number(entry.name);
- if (!validTicket(entry.value, repository, runId)) {
- refuse(`queue ticket ${entry.name} has invalid identity`);
- }
- if (seen.has(runId)) refuse('queue repeats a run id');
- seen.add(runId);
- tickets.push(entry.value);
- }
- return tickets.sort((a, b) => a.runId - b.runId);
-}
-
-export function publicationBlockers(entries, repository, currentRunId, scope) {
- validateIdentity(repository, currentRunId, scope);
- const tickets = orderedTickets(entries, repository);
- if (
- !tickets.some(
- ticket => ticket.runId === currentRunId && ticket.scope === scope,
- )
- ) {
- refuse(`queue ticket for run ${currentRunId} is missing`);
- }
- return tickets.filter(ticket => ticket.runId < currentRunId);
-}
-
-export function isTerminalRun(status) {
- return status === 'completed' || status === 'missing';
-}
-
-function queueState(checkout, repository) {
- const root = path.join(checkout, QUEUE_REL);
- if (!fs.existsSync(root)) return {entries: [], invalid: [], holder: null};
- const entries = [];
- const invalid = [];
- let holder = null;
- for (const entry of fs.readdirSync(root, {withFileTypes: true})) {
- if (!entry.isFile() || !entry.name.endsWith('.json')) continue;
- const value = readJSON(path.join(root, entry.name));
- if (entry.name === HOLDER_NAME) {
- if (!validTicket(value, repository, value?.runId)) {
- refuse('publication holder has invalid identity');
- }
- holder = value;
- continue;
- }
- const name = entry.name.slice(0, -'.json'.length);
- if (!RUN_ID.test(name)) {
- invalid.push(entry.name);
- continue;
- }
- const runId = Number(name);
- if (!validTicket(value, repository, runId)) {
- invalid.push(entry.name);
- continue;
- }
- entries.push({name, value});
- }
- return {entries, invalid, holder};
-}
-
-function baselineScope(scope) {
- return scope === BASELINE_SCOPE;
-}
-
-function legacyTicketValue(repository, runId) {
- return {version: 1, repository, runId};
-}
-
-function validLegacyTicket(value, repository, runId) {
- return (
- Number.isSafeInteger(runId) &&
- runId > 0 &&
- value?.version === 1 &&
- value.repository === repository &&
- value.runId === runId
- );
-}
-
-function legacyQueueState(checkout, repository) {
- const root = path.join(checkout, LEGACY_BASELINE_QUEUE_REL);
- if (!fs.existsSync(root)) return {entries: [], invalid: [], holder: null};
- const entries = [];
- const invalid = [];
- let holder = null;
- for (const entry of fs.readdirSync(root, {withFileTypes: true})) {
- if (!entry.isFile() || !entry.name.endsWith('.json')) continue;
- const value = readJSON(path.join(root, entry.name));
- if (entry.name === HOLDER_NAME) {
- if (!validLegacyTicket(value, repository, value?.runId)) {
- refuse('legacy publication holder has invalid identity');
- }
- holder = value;
- continue;
- }
- const name = entry.name.slice(0, -'.json'.length);
- if (!RUN_ID.test(name)) {
- invalid.push(entry.name);
- continue;
- }
- const runId = Number(name);
- if (!validLegacyTicket(value, repository, runId)) {
- invalid.push(entry.name);
- continue;
- }
- entries.push({name, value});
- }
- return {entries, invalid, holder};
-}
-
-function orderedLegacyTickets(entries, repository) {
- const tickets = [];
- const seen = new Set();
- for (const entry of entries) {
- if (!RUN_ID.test(entry?.name ?? '')) continue;
- const runId = Number(entry.name);
- if (!validLegacyTicket(entry.value, repository, runId)) {
- refuse(`legacy queue ticket ${entry.name} has invalid identity`);
- }
- if (seen.has(runId)) refuse('legacy queue repeats a run id');
- seen.add(runId);
- tickets.push(entry.value);
- }
- return tickets.sort((a, b) => a.runId - b.runId);
-}
-
-function legacyPublicationBlockers(entries, repository, currentRunId) {
- validateIdentity(repository, currentRunId, BASELINE_SCOPE);
- const tickets = orderedLegacyTickets(entries, repository);
- if (!tickets.some(ticket => ticket.runId === currentRunId)) {
- refuse(`legacy queue ticket for run ${currentRunId} is missing`);
- }
- return tickets.filter(ticket => ticket.runId < currentRunId);
-}
-
-async function mutateLegacyBaselineQueue({
- repository,
- runId,
- token,
- tempRoot,
- remoteURL,
- mutate,
-}) {
- validateIdentity(repository, runId, BASELINE_SCOPE);
- for (let attempt = 1; attempt <= 10; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [LEGACY_BASELINE_QUEUE_REL],
- prefix: 'gh-pages-legacy-queue-',
- });
- try {
- const mutation = mutate(checkout);
- if (!mutation.changed) return mutation.value;
- configureGitIdentity(checkout);
- git(checkout, 'add', '-A', LEGACY_BASELINE_QUEUE_REL);
- git(
- checkout,
- 'commit',
- '-qm',
- 'visual baseline: update publication queue',
- );
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushed.status === 0) return mutation.value;
- if (permissionDenied(pushed)) {
- refuse(
- 'push to gh-pages denied while updating the legacy publication queue',
- );
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- await sleep(attempt * 1000);
- }
- refuse('could not update the legacy publication queue after 10 attempts');
-}
-
-async function enqueueLegacyBaseline(options) {
- const {repository, runId} = options;
- await mutateLegacyBaselineQueue({
- ...options,
- mutate(checkout) {
- const file = path.join(
- checkout,
- LEGACY_BASELINE_QUEUE_REL,
- `${runId}.json`,
- );
- if (fs.existsSync(file)) {
- if (!validLegacyTicket(readJSON(file), repository, runId)) {
- refuse('existing legacy queue ticket has invalid identity');
- }
- return {changed: false};
- }
- fs.mkdirSync(path.dirname(file), {recursive: true});
- fs.writeFileSync(
- file,
- `${JSON.stringify(legacyTicketValue(repository, runId), null, 2)}\n`,
- );
- return {changed: true};
- },
- });
-}
-
-async function releaseLegacyBaseline(options) {
- const {runId} = options;
- await mutateLegacyBaselineQueue({
- ...options,
- mutate(checkout) {
- const root = path.join(checkout, LEGACY_BASELINE_QUEUE_REL);
- const ticket = path.join(root, `${runId}.json`);
- const holder = path.join(root, HOLDER_NAME);
- let changed = false;
- if (fs.existsSync(ticket)) {
- fs.rmSync(ticket);
- changed = true;
- }
- const held = readJSON(holder);
- if (held?.runId === runId) {
- fs.rmSync(holder);
- changed = true;
- }
- return {changed};
- },
- });
-}
-
-async function removeInvalidLegacyBaseline({
- repository,
- runId,
- names,
- token,
- tempRoot,
- remoteURL,
-}) {
- await mutateLegacyBaselineQueue({
- repository,
- runId,
- token,
- tempRoot,
- remoteURL,
- mutate(checkout) {
- let changed = false;
- for (const name of names) {
- const file = path.join(checkout, LEGACY_BASELINE_QUEUE_REL, name);
- if (fs.existsSync(file)) {
- fs.rmSync(file);
- changed = true;
- }
- }
- return {changed};
- },
- });
-}
-
-async function claimLegacyBaseline(options) {
- const {repository, runId} = options;
- return mutateLegacyBaselineQueue({
- ...options,
- mutate(checkout) {
- const state = legacyQueueState(checkout, repository);
- if (state.invalid.length > 0) return {changed: false, value: false};
- if (state.holder)
- return {changed: false, value: state.holder.runId === runId};
- const tickets = orderedLegacyTickets(state.entries, repository);
- if (tickets[0]?.runId !== runId) return {changed: false, value: false};
- fs.writeFileSync(
- path.join(checkout, LEGACY_BASELINE_QUEUE_REL, HOLDER_NAME),
- `${JSON.stringify(legacyTicketValue(repository, runId), null, 2)}\n`,
- );
- return {changed: true, value: true};
- },
- });
-}
-
-async function waitForLegacyBaselineTurn({
- repository,
- runId,
- token,
- tempRoot,
- remoteURL,
- timeoutMs = DEFAULT_WAIT_MS,
- beforeClaimPush,
-}) {
- validateIdentity(repository, runId, BASELINE_SCOPE);
- const started = Date.now();
- const checkTimeout = blocker => {
- if (Date.now() - started >= timeoutMs) {
- refuse(
- `timed out behind legacy baseline publication run ${blocker ?? 'unknown'}`,
- );
- }
- };
- while (true) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [LEGACY_BASELINE_QUEUE_REL],
- prefix: 'gh-pages-legacy-queue-',
- });
- let state;
- try {
- state = legacyQueueState(checkout, repository);
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- if (state.invalid.length > 0) {
- checkTimeout(state.holder?.runId);
- await removeInvalidLegacyBaseline({
- repository,
- runId,
- names: state.invalid,
- token,
- tempRoot,
- remoteURL,
- });
- continue;
- }
- if (state.holder?.runId === runId) return;
- if (state.holder) {
- if (isTerminalRun(runStatus(repository, state.holder.runId))) {
- checkTimeout(state.holder.runId);
- await releaseLegacyBaseline({
- repository,
- runId: state.holder.runId,
- token,
- tempRoot,
- remoteURL,
- });
- continue;
- }
- } else {
- const blockers = legacyPublicationBlockers(
- state.entries,
- repository,
- runId,
- );
- let pruned = false;
- for (const blocker of blockers) {
- if (isTerminalRun(runStatus(repository, blocker.runId))) {
- checkTimeout(blocker.runId);
- await releaseLegacyBaseline({
- repository,
- runId: blocker.runId,
- token,
- tempRoot,
- remoteURL,
- });
- pruned = true;
- }
- }
- if (pruned) continue;
- if (
- blockers.length === 0 &&
- (await claimLegacyBaseline({
- repository,
- runId,
- token,
- tempRoot,
- remoteURL,
- }))
- ) {
- return;
- }
- }
- const blocker =
- state.holder?.runId ??
- orderedLegacyTickets(state.entries, repository)[0]?.runId;
- checkTimeout(blocker);
- process.stdout.write(
- `Waiting for legacy baseline publication run ${blocker}.\n`,
- );
- await sleep(30000);
- }
-}
-
-function remoteURL({repository, token, remoteURL}) {
- return (
- remoteURL ??
- process.env.ASTRYX_GH_PAGES_REMOTE_URL ??
- `https://x-access-token:${token}@github.com/${repository}.git`
- );
-}
-
-function checkoutPages({
- repository,
- token,
- tempRoot,
- sparsePaths = [],
- noCheckout = false,
- fullHistory = false,
- prefix = 'gh-pages-',
- remoteURL: configuredRemoteURL,
-}) {
- const checkout = fs.mkdtempSync(path.join(tempRoot, prefix));
- const args = [
- 'clone',
- '--quiet',
- '--filter=blob:none',
- '--single-branch',
- '--branch',
- PAGES_BRANCH,
- ];
- if (!fullHistory) {
- args.push('--depth=1');
- }
- if (noCheckout) {
- args.push('--no-checkout');
- } else if (sparsePaths.length > 0) {
- args.push('--sparse');
- }
- args.push(
- remoteURL({repository, token, remoteURL: configuredRemoteURL}),
- checkout,
- );
- run('git', args);
- if (noCheckout) {
- git(checkout, 'sparse-checkout', 'init', '--cone');
- git(checkout, 'sparse-checkout', 'set', ...sparsePaths);
- git(checkout, 'checkout', PAGES_BRANCH);
- } else if (sparsePaths.length > 0) {
- git(checkout, 'sparse-checkout', 'set', ...sparsePaths);
- }
- return checkout;
-}
-
-async function mutateQueue({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- mutate,
-}) {
- validateIdentity(repository, runId, scope);
- for (let attempt = 1; attempt <= 10; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [QUEUE_REL],
- prefix: 'gh-pages-queue-',
- });
- try {
- const mutation = mutate(checkout);
- if (!mutation.changed) return mutation.value;
- configureGitIdentity(checkout);
- git(checkout, 'add', '-A', QUEUE_REL);
- git(checkout, 'commit', '-qm', 'ci: update gh-pages publication queue');
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushed.status === 0) return mutation.value;
- if (permissionDenied(pushed)) {
- refuse('push to gh-pages denied while updating the publication queue');
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- await sleep(attempt * 1000);
- }
- refuse('could not update the publication queue after 10 attempts');
-}
-
-async function mutateDualQueue({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- message = 'ci: update gh-pages publication queues',
- mutate,
- beforePush,
-}) {
- validateIdentity(repository, runId, scope);
- for (let attempt = 1; attempt <= 10; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [QUEUE_REL, LEGACY_BASELINE_QUEUE_REL],
- prefix: 'gh-pages-dual-queue-',
- });
- try {
- const mutation = mutate(checkout);
- if (!mutation.changed) return mutation.value;
- configureGitIdentity(checkout);
- git(checkout, 'add', '-A', QUEUE_REL, LEGACY_BASELINE_QUEUE_REL);
- git(checkout, 'commit', '-qm', message);
- await beforePush?.({attempt, checkout});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushed.status === 0) return mutation.value;
- if (permissionDenied(pushed)) {
- refuse('push to gh-pages denied while updating publication queues');
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- await sleep(attempt * 1000);
- }
- refuse('could not update the publication queues after 10 attempts');
-}
-
-function ensureSharedTicket(checkout, repository, runId, scope) {
- const file = path.join(checkout, QUEUE_REL, `${runId}.json`);
- if (fs.existsSync(file)) {
- if (!validTicket(readJSON(file), repository, runId, scope)) {
- refuse('existing queue ticket has invalid identity');
- }
- return false;
- }
- fs.mkdirSync(path.dirname(file), {recursive: true});
- fs.writeFileSync(
- file,
- `${JSON.stringify(ticketValue(repository, runId, scope), null, 2)}\n`,
- );
- return true;
-}
-
-function ensureLegacyTicket(checkout, repository, runId) {
- const file = path.join(checkout, LEGACY_BASELINE_QUEUE_REL, `${runId}.json`);
- if (fs.existsSync(file)) {
- if (!validLegacyTicket(readJSON(file), repository, runId)) {
- refuse('existing legacy queue ticket has invalid identity');
- }
- return false;
- }
- fs.mkdirSync(path.dirname(file), {recursive: true});
- fs.writeFileSync(
- file,
- `${JSON.stringify(legacyTicketValue(repository, runId), null, 2)}\n`,
- );
- return true;
-}
-
-function dualQueueState(checkout, repository) {
- return {
- shared: queueState(checkout, repository),
- legacy: legacyQueueState(checkout, repository),
- };
-}
-
-function currentSharedTicket(entries, repository, runId, scope) {
- return orderedTickets(entries, repository).some(
- ticket => ticket.runId === runId && ticket.scope === scope,
- );
-}
-
-function currentLegacyTicket(entries, repository, runId) {
- return orderedLegacyTickets(entries, repository).some(
- ticket => ticket.runId === runId,
- );
-}
-
-export async function enqueuePublication(options) {
- const {repository, runId, scope} = options;
- await mutateDualQueue({
- ...options,
- message: 'ci: update gh-pages publication queues',
- mutate(checkout) {
- const sharedChanged = ensureSharedTicket(
- checkout,
- repository,
- runId,
- scope,
- );
- const legacyChanged = ensureLegacyTicket(checkout, repository, runId);
- return {changed: sharedChanged || legacyChanged};
- },
- });
- process.stdout.write(
- `Queued gh-pages publication run ${runId} (${scope}).\n`,
- );
-}
-
-export async function releasePublication(options) {
- const {runId, scope} = options;
- await mutateDualQueue({
- ...options,
- message: 'ci: release gh-pages publication turn',
- mutate(checkout) {
- const sharedRoot = path.join(checkout, QUEUE_REL);
- const sharedTicket = path.join(sharedRoot, `${runId}.json`);
- const sharedHolder = path.join(sharedRoot, HOLDER_NAME);
- const legacyRoot = path.join(checkout, LEGACY_BASELINE_QUEUE_REL);
- const legacyTicket = path.join(legacyRoot, `${runId}.json`);
- const legacyHolder = path.join(legacyRoot, HOLDER_NAME);
- let changed = false;
- if (fs.existsSync(legacyTicket)) {
- fs.rmSync(legacyTicket);
- changed = true;
- }
- const legacyHeld = readJSON(legacyHolder);
- if (legacyHeld?.runId === runId) {
- fs.rmSync(legacyHolder);
- changed = true;
- }
- if (fs.existsSync(sharedTicket)) {
- fs.rmSync(sharedTicket);
- changed = true;
- }
- const sharedHeld = readJSON(sharedHolder);
- if (sharedHeld?.runId === runId && sharedHeld?.scope === scope) {
- fs.rmSync(sharedHolder);
- changed = true;
- }
- return {changed};
- },
- });
- process.stdout.write(
- `Released gh-pages publication run ${runId} (${scope}).\n`,
- );
-}
-
-async function removeInvalid({
- repository,
- runId,
- scope,
- names,
- token,
- tempRoot,
- remoteURL,
-}) {
- await mutateQueue({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- mutate(checkout) {
- let changed = false;
- for (const name of names) {
- const file = path.join(checkout, QUEUE_REL, name);
- if (fs.existsSync(file)) {
- fs.rmSync(file);
- changed = true;
- }
- }
- return {changed};
- },
- });
-}
-
-async function claimPublication(options) {
- const {repository, runId, scope} = options;
- return mutateQueue({
- ...options,
- mutate(checkout) {
- const state = queueState(checkout, repository);
- if (state.invalid.length > 0) return {changed: false, value: false};
- if (state.holder) {
- return {
- changed: false,
- value: state.holder.runId === runId && state.holder.scope === scope,
- };
- }
- const tickets = orderedTickets(state.entries, repository);
- if (tickets[0]?.runId !== runId || tickets[0]?.scope !== scope) {
- return {changed: false, value: false};
- }
- fs.writeFileSync(
- path.join(checkout, QUEUE_REL, HOLDER_NAME),
- `${JSON.stringify(ticketValue(repository, runId, scope), null, 2)}\n`,
- );
- return {changed: true, value: true};
- },
- });
-}
-
-function runStatus(repository, runId) {
- const result = tryRun('gh', [
- 'api',
- `repos/${repository}/actions/runs/${runId}`,
- ]);
- if (result.status === 0) {
- try {
- return JSON.parse(result.stdout).status;
- } catch (error) {
- refuse(`cannot parse queued run ${runId}: ${error.message}`);
- }
- }
- if (/HTTP 404|Not Found/i.test(result.stderr ?? '')) return 'missing';
- refuse(
- `cannot resolve queued run ${runId}: ${
- result.stderr?.trim() || result.stdout?.trim() || `exit ${result.status}`
- }`,
- );
-}
-
-export async function waitForPublicationTurn({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- timeoutMs = DEFAULT_WAIT_MS,
- beforeClaimPush,
-}) {
- validateIdentity(repository, runId, scope);
- const started = Date.now();
- const checkTimeout = blocker => {
- if (Date.now() - started >= timeoutMs) {
- refuse(
- `timed out behind gh-pages publication run ${blocker ?? 'unknown'}`,
- );
- }
- };
- while (true) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [QUEUE_REL, LEGACY_BASELINE_QUEUE_REL],
- prefix: 'gh-pages-dual-queue-',
- });
- let state;
- try {
- state = dualQueueState(checkout, repository);
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
-
- if (state.shared.invalid.length > 0) {
- checkTimeout(state.shared.holder?.runId);
- await removeInvalid({
- repository,
- runId,
- scope,
- names: state.shared.invalid,
- token,
- tempRoot,
- remoteURL,
- });
- continue;
- }
- if (state.legacy.invalid.length > 0) {
- checkTimeout(state.legacy.holder?.runId);
- await removeInvalidLegacyBaseline({
- repository,
- runId,
- names: state.legacy.invalid,
- token,
- tempRoot,
- remoteURL,
- });
- continue;
- }
-
- const sharedHeldByCurrent =
- state.shared.holder?.runId === runId &&
- state.shared.holder?.scope === scope;
- const legacyHeldByCurrent = state.legacy.holder?.runId === runId;
- if (sharedHeldByCurrent && legacyHeldByCurrent) {
- process.stdout.write(
- `gh-pages publication turn acquired by run ${runId}.\n`,
- );
- return;
- }
-
- if (state.shared.holder && !sharedHeldByCurrent) {
- if (isTerminalRun(runStatus(repository, state.shared.holder.runId))) {
- checkTimeout(state.shared.holder.runId);
- await releasePublication({
- repository,
- runId: state.shared.holder.runId,
- scope: state.shared.holder.scope,
- token,
- tempRoot,
- remoteURL,
- });
- continue;
- }
- const blocker = state.shared.holder.runId;
- checkTimeout(blocker);
- process.stdout.write(
- `Waiting for gh-pages publication run ${blocker}.\n`,
- );
- await sleep(30000);
- continue;
- }
-
- if (state.legacy.holder && !legacyHeldByCurrent) {
- if (isTerminalRun(runStatus(repository, state.legacy.holder.runId))) {
- checkTimeout(state.legacy.holder.runId);
- await releaseLegacyBaseline({
- repository,
- runId: state.legacy.holder.runId,
- token,
- tempRoot,
- remoteURL,
- });
- continue;
- }
- const blocker = state.legacy.holder.runId;
- checkTimeout(blocker);
- process.stdout.write(
- `Waiting for legacy baseline publication run ${blocker}.\n`,
- );
- await sleep(30000);
- continue;
- }
-
- const sharedHasTicket = currentSharedTicket(
- state.shared.entries,
- repository,
- runId,
- scope,
- );
- const legacyHasTicket = currentLegacyTicket(
- state.legacy.entries,
- repository,
- runId,
- );
- if (!sharedHasTicket || !legacyHasTicket) {
- refuse(`queue ticket for run ${runId} is missing`);
- }
-
- const sharedBlockers = publicationBlockers(
- state.shared.entries,
- repository,
- runId,
- scope,
- );
- const legacyBlockers = legacyPublicationBlockers(
- state.legacy.entries,
- repository,
- runId,
- );
- let pruned = false;
- for (const blocker of sharedBlockers) {
- if (isTerminalRun(runStatus(repository, blocker.runId))) {
- checkTimeout(blocker.runId);
- await releasePublication({
- repository,
- runId: blocker.runId,
- scope: blocker.scope,
- token,
- tempRoot,
- remoteURL,
- });
- pruned = true;
- }
- }
- for (const blocker of legacyBlockers) {
- if (isTerminalRun(runStatus(repository, blocker.runId))) {
- checkTimeout(blocker.runId);
- await releaseLegacyBaseline({
- repository,
- runId: blocker.runId,
- token,
- tempRoot,
- remoteURL,
- });
- pruned = true;
- }
- }
- if (pruned) continue;
-
- if (sharedBlockers.length === 0 && legacyBlockers.length === 0) {
- const claimed = await mutateDualQueue({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- message: 'ci: claim gh-pages publication turn',
- beforePush: beforeClaimPush,
- mutate(claimCheckout) {
- const claimState = dualQueueState(claimCheckout, repository);
- const sharedClear =
- !claimState.shared.holder &&
- publicationBlockers(
- claimState.shared.entries,
- repository,
- runId,
- scope,
- ).length === 0;
- const legacyClear =
- !claimState.legacy.holder &&
- legacyPublicationBlockers(
- claimState.legacy.entries,
- repository,
- runId,
- ).length === 0;
- if (!sharedClear || !legacyClear)
- return {changed: false, value: false};
- fs.writeFileSync(
- path.join(claimCheckout, QUEUE_REL, HOLDER_NAME),
- `${JSON.stringify(ticketValue(repository, runId, scope), null, 2)}\n`,
- );
- fs.writeFileSync(
- path.join(claimCheckout, LEGACY_BASELINE_QUEUE_REL, HOLDER_NAME),
- `${JSON.stringify(legacyTicketValue(repository, runId), null, 2)}\n`,
- );
- return {changed: true, value: true};
- },
- });
- if (claimed) {
- process.stdout.write(
- `gh-pages publication turn acquired by run ${runId}.\n`,
- );
- return;
- }
- continue;
- }
-
- const blocker =
- sharedBlockers[0]?.runId ?? legacyBlockers[0]?.runId ?? 'unknown';
- checkTimeout(blocker);
- process.stdout.write(`Waiting for gh-pages publication run ${blocker}.\n`);
- await sleep(30000);
- }
-}
-
-function copyContents(source, destination) {
- fs.mkdirSync(destination, {recursive: true});
- for (const entry of fs.readdirSync(source, {withFileTypes: true})) {
- fs.cpSync(
- path.join(source, entry.name),
- path.join(destination, entry.name),
- {
- recursive: true,
- force: true,
- },
- );
- }
-}
-
-function permissionDenied(result) {
- const text = `${result.stderr ?? ''}\n${result.stdout ?? ''}`;
- return /denied|403|permission|not authorized/i.test(text);
-}
-
-function pushOrRetry(result) {
- if (result.status === 0) return true;
- if (permissionDenied(result)) {
- refuse('push to gh-pages denied');
- }
- return false;
-}
-
-function commitIfNeeded(checkout, message, addArgs) {
- configureGitIdentity(checkout);
- git(checkout, 'add', ...addArgs);
- const diff = tryRun('git', ['-C', checkout, 'diff', '--cached', '--quiet']);
- if (diff.status === 0) return null;
- git(checkout, 'commit', '-qm', message);
- return git(checkout, 'rev-parse', 'HEAD');
-}
-
-function output(name, value) {
- if (!process.env.GITHUB_OUTPUT) return;
- fs.appendFileSync(process.env.GITHUB_OUTPUT, `${name}=${value}\n`);
-}
-
-function safeRelativePath(value, name) {
- const normalized = path.posix.normalize(
- String(value ?? '').replace(/\\/g, '/'),
- );
- if (
- !normalized ||
- normalized === '.' ||
- normalized.startsWith('../') ||
- normalized.includes('/../') ||
- path.isAbsolute(normalized)
- ) {
- refuse(`${name} is invalid`);
- }
- return normalized;
-}
-
-function fileList(root) {
- const files = [];
- function visit(dir, prefix = '') {
- for (const entry of fs.readdirSync(dir, {withFileTypes: true})) {
- const rel = path.posix.join(prefix, entry.name);
- const file = path.join(dir, entry.name);
- if (entry.isDirectory()) {
- visit(file, rel);
- } else if (entry.isFile()) {
- files.push(rel);
- }
- }
- }
- visit(root);
- return files.sort();
-}
-
-function sameDirectoryContents(first, second) {
- if (!fs.existsSync(first) || !fs.existsSync(second)) return false;
- const firstFiles = fileList(first);
- const secondFiles = fileList(second);
- if (firstFiles.length !== secondFiles.length) return false;
- for (let index = 0; index < firstFiles.length; index += 1) {
- if (firstFiles[index] !== secondFiles[index]) return false;
- if (
- !fs
- .readFileSync(path.join(first, firstFiles[index]))
- .equals(fs.readFileSync(path.join(second, secondFiles[index])))
- ) {
- return false;
- }
- }
- return true;
-}
-
-function scriptPath(...parts) {
- return path.join(process.cwd(), '.github', 'scripts', ...parts);
-}
-
-function runNodeScript(parts, args) {
- const out = run(process.execPath, [scriptPath(...parts), ...args]);
- if (out) process.stdout.write(`${out}\n`);
- return out;
-}
-
-function assertHoldingPublicationTurn({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
-}) {
- validateIdentity(repository, runId, scope);
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [QUEUE_REL],
- prefix: 'gh-pages-queue-check-',
- });
- try {
- const holder = queueState(checkout, repository).holder;
- if (holder?.runId !== runId || holder?.scope !== scope) {
- refuse(`publication turn for ${scope} is not held by run ${runId}`);
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
-}
-
-export async function publishImmutablePath({
- repository,
- token,
- tempRoot,
- remoteURL,
- source,
- destination,
- message,
- maxAttempts = 5,
- beforePush,
-}) {
- const sourceDir = path.resolve(source);
- const destinationRel = safeRelativePath(destination, '--destination');
- if (!fs.existsSync(sourceDir) || !fs.statSync(sourceDir).isDirectory()) {
- refuse('--source must be a directory');
- }
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [destinationRel],
- prefix: 'gh-pages-immutable-',
- });
- try {
- const destinationDir = path.join(checkout, destinationRel);
- if (fs.existsSync(destinationDir)) {
- if (sameDirectoryContents(sourceDir, destinationDir)) {
- process.stdout.write('Immutable path already published.\n');
- output('published', 'true');
- return {published: true, alreadyPublished: true};
- }
- refuse('immutable destination already exists with different bytes');
- }
- copyContents(sourceDir, destinationDir);
- const commit = commitIfNeeded(
- checkout,
- message ?? `publish ${destinationRel}`,
- [destinationRel],
- );
- if (commit === null) {
- output('published', 'true');
- return {published: true};
- }
- await beforePush?.({attempt, checkout, commit});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushOrRetry(pushed)) {
- output('published', 'true');
- return {published: true, commit};
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying immutable publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not publish ${destinationRel} after ${maxAttempts} attempts`);
-}
-
-export async function publishManualVisualBaseline({
- repository,
- runId,
- token,
- tempRoot,
- remoteURL,
- capture,
- keys,
- reason,
- actor,
- prune = false,
- maxAttempts = 5,
- beforePush,
-}) {
- const scope = 'visual-gate/baseline';
- assertHoldingPublicationTurn({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- });
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: ['visual-gate/baseline'],
- prefix: 'gh-pages-manual-baseline-',
- });
- try {
- const args = [
- 'accept',
- '--baseline',
- path.join(checkout, 'visual-gate', 'baseline'),
- '--out',
- path.resolve(capture),
- '--keys',
- String(keys),
- '--reason',
- String(reason),
- '--actor',
- String(actor),
- ];
- if (prune) args.push('--prune');
- runNodeScript(['visual-gate', 'gate.mjs'], args);
- const commit = commitIfNeeded(
- checkout,
- `visual baseline: ${keys} (run ${runId})`,
- ['-A', 'visual-gate/baseline'],
- );
- if (commit === null) {
- process.stdout.write('Baseline unchanged.\n');
- return {published: false};
- }
- await beforePush?.({attempt, checkout, commit});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushOrRetry(pushed)) {
- process.stdout.write('Baseline updated.\n');
- return {published: true, commit};
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying manual baseline publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not push the updated baseline after ${maxAttempts} attempts`);
-}
-
-const PREVIEW_MANIFEST = '.astryx-preview.json';
-
-function previewDirectory(value, name) {
- if (!value) return null;
- const directory = path.resolve(value);
- if (!fs.existsSync(directory) || !fs.statSync(directory).isDirectory()) {
- refuse(`${name} must be a directory`);
- }
- const index = path.join(directory, 'index.html');
- if (!fs.existsSync(index) || !fs.statSync(index).isFile()) {
- refuse(`${name} must contain index.html`);
- }
- return directory;
-}
-
-function sha256(file) {
- return createHash('sha256').update(fs.readFileSync(file)).digest('hex');
-}
-
-function clearPreviewContents(destination) {
- fs.mkdirSync(destination, {recursive: true});
- // Sandbox remains on Pages until its own migration. Keep Storybook and the
- // immutable visual evidence untouched when replacing Sandbox for this PR.
- for (const name of ['sandbox', PREVIEW_MANIFEST]) {
- fs.rmSync(path.join(destination, name), {recursive: true, force: true});
- }
-}
-
-export async function publishPrPreview({
- repository,
- token,
- tempRoot,
- remoteURL,
- pr,
- head,
- headRepo,
- headRepoId,
- headRef,
- baseRepo,
- sourceRunId,
- sourceRunAttempt,
- sourceConclusion,
- storybook,
- sandbox,
- resultFile,
- maxAttempts = 5,
- beforePush,
-}) {
- const prNumber = Number(pr);
- if (!Number.isSafeInteger(prNumber) || prNumber <= 0) {
- refuse('PR number is invalid');
- }
- if (baseRepo !== repository) {
- refuse('preview base repository does not match publisher repository');
- }
- if (storybook) {
- refuse('Storybook previews are hosted on Vercel, not gh-pages');
- }
- const sandboxDir = previewDirectory(sandbox, '--sandbox');
- if (sourceConclusion !== 'success' && sandboxDir) {
- refuse('failed source CI cannot publish preview targets');
- }
- const identity = {
- prNumber,
- headSha: head,
- headRepository: headRepo,
- headRepositoryId: headRepoId,
- headRef,
- baseRepository: baseRepo,
- sourceRunId,
- sourceRunAttempt,
- sourceConclusion,
- };
- const storybookIndexSha256 = null;
- const sandboxIndexSha256 = sandboxDir
- ? sha256(path.join(sandboxDir, 'index.html'))
- : null;
- const manifest = createPreviewPublicationManifest(identity, {
- storybookIndexSha256,
- sandboxIndexSha256,
- });
- const destinationRel = `pr/${prNumber}`;
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [destinationRel],
- prefix: 'gh-pages-preview-',
- });
- try {
- const destination = path.join(checkout, destinationRel);
- clearPreviewContents(destination);
- if (sandboxDir) {
- const sandboxDestination = path.join(destination, 'sandbox');
- fs.mkdirSync(sandboxDestination, {recursive: true});
- for (const entry of fs.readdirSync(sandboxDir, {withFileTypes: true})) {
- if (entry.name === 'template-assets') continue;
- fs.cpSync(
- path.join(sandboxDir, entry.name),
- path.join(sandboxDestination, entry.name),
- {recursive: true, force: true},
- );
- }
- }
- if (
- sandboxDir &&
- sha256(path.join(destination, 'sandbox', 'index.html')) !==
- sandboxIndexSha256
- ) {
- refuse('published Sandbox index does not match its source artifact');
- }
- fs.writeFileSync(
- path.join(destination, PREVIEW_MANIFEST),
- `${JSON.stringify(manifest, null, 2)}\n`,
- );
- let commit = commitIfNeeded(checkout, `Deploy PR #${prNumber} preview`, [
- '-A',
- destinationRel,
- ]);
- if (commit !== null) {
- await beforePush?.({attempt, checkout, commit});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (!pushOrRetry(pushed)) {
- process.stdout.write(
- `Push rejected; retrying PR preview publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- continue;
- }
- } else {
- commit = git(checkout, 'rev-parse', 'HEAD');
- }
-
- const result = createPublishedDeploymentResult(identity, {
- storybookIndexSha256,
- sandboxIndexSha256,
- pagesCommit: commit,
- });
- if (resultFile) writeDeploymentResult(resultFile, result);
- process.stdout.write(`Reconciled PR #${prNumber} preview.\n`);
- return result;
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- }
- refuse(
- `could not publish PR #${prNumber} preview after ${maxAttempts} attempts`,
- );
-}
-
-function listOpenPRsFromGitHub(repository) {
- const result = run('gh', [
- 'pr',
- 'list',
- '--repo',
- repository,
- '--state',
- 'open',
- '--limit',
- '1000',
- '--json',
- 'number',
- '--jq',
- '.[].number',
- ]);
- return new Set(
- result
- .split(/\s+/)
- .filter(Boolean)
- .map(value => String(Number(value)))
- .filter(value => value !== 'NaN'),
- );
-}
-
-function isSevenHex(value) {
- return /^[0-9a-f]{7}$/.test(value);
-}
-
-function currentTimeMs() {
- return Number(process.env.ASTRYX_GH_PAGES_NOW_MS) || Date.now();
-}
-
-function screenshotRetentionFile(checkout) {
- return path.join(checkout, SCREENSHOT_RETENTION_INDEX_REL);
-}
-
-function readScreenshotRetentionIndex(checkout) {
- const file = screenshotRetentionFile(checkout);
- const value = readJSON(file);
- return value && typeof value === 'object' && !Array.isArray(value)
- ? value
- : {};
-}
-
-function writeScreenshotRetentionIndex(checkout, index) {
- const file = screenshotRetentionFile(checkout);
- fs.mkdirSync(path.dirname(file), {recursive: true});
- fs.writeFileSync(file, `${JSON.stringify(index, null, 2)}\n`);
-}
-
-function screenshotPaths(checkout) {
- const reportsRoot = path.join(checkout, 'reports');
- const paths = [];
- if (!fs.existsSync(reportsRoot)) return paths;
- for (const report of fs.readdirSync(reportsRoot, {withFileTypes: true})) {
- if (!report.isDirectory()) continue;
- const root = path.join(reportsRoot, report.name, 'screenshots');
- if (!fs.existsSync(root)) continue;
- for (const file of fileList(root)) {
- if (file.endsWith('.png')) {
- paths.push(
- path.posix.join('reports', report.name, 'screenshots', file),
- );
- }
- }
- }
- return paths.sort();
-}
-
-function gitPathTimestamp(checkout, rel) {
- const result = tryRun('git', [
- '-C',
- checkout,
- 'log',
- '-1',
- '--format=%ct',
- '--',
- rel,
- ]);
- if (result.status !== 0) return null;
- const timestamp = Number(result.stdout.trim());
- return Number.isFinite(timestamp) && timestamp > 0 ? timestamp * 1000 : null;
-}
-
-function seedScreenshotRetentionIndex(checkout, now = currentTimeMs()) {
- const index = readScreenshotRetentionIndex(checkout);
- let changed = false;
- const live = new Set(screenshotPaths(checkout));
- for (const rel of live) {
- if (typeof index[rel] !== 'string') {
- index[rel] = new Date(
- gitPathTimestamp(checkout, rel) ?? now,
- ).toISOString();
- changed = true;
- }
- }
- for (const rel of Object.keys(index)) {
- if (!live.has(rel) || !rel.endsWith('.png')) {
- delete index[rel];
- changed = true;
- }
- }
- if (changed) writeScreenshotRetentionIndex(checkout, index);
- return {index, changed};
-}
-
-function rememberPublishedScreenshots(
- checkout,
- destinationRel,
- sourceDir,
- now = currentTimeMs(),
-) {
- const {index} = seedScreenshotRetentionIndex(checkout, now);
- let changed = false;
- for (const file of fileList(sourceDir)) {
- if (!file.endsWith('.png')) continue;
- const rel = path.posix.join(destinationRel.replaceAll(path.sep, '/'), file);
- if (typeof index[rel] !== 'string') {
- index[rel] = new Date(now).toISOString();
- changed = true;
- }
- }
- if (changed) writeScreenshotRetentionIndex(checkout, index);
-}
-
-function expiredReportScreenshots(checkout, now = currentTimeMs()) {
- const cutoffMs = now - 30 * 24 * 60 * 60 * 1000;
- const {index} = seedScreenshotRetentionIndex(checkout, now);
- return Object.entries(index)
- .filter(
- ([rel, iso]) =>
- rel.endsWith('.png') &&
- fs.existsSync(path.join(checkout, rel)) &&
- Date.parse(iso) < cutoffMs,
- )
- .map(([rel]) => rel)
- .sort();
-}
-
-function pruneEmptyScreenshotDirs(checkout) {
- const reportsRoot = path.join(checkout, 'reports');
- if (!fs.existsSync(reportsRoot)) return;
- for (const report of fs.readdirSync(reportsRoot, {withFileTypes: true})) {
- if (!report.isDirectory()) continue;
- const root = path.join(reportsRoot, report.name, 'screenshots');
- if (!fs.existsSync(root)) continue;
- if (!fileList(root).some(file => file.endsWith('.png'))) {
- fs.rmSync(root, {recursive: true, force: true});
- }
- }
-}
-
-function forgetScreenshots(checkout, rels) {
- const index = readScreenshotRetentionIndex(checkout);
- let changed = false;
- for (const rel of rels) {
- if (index[rel] !== undefined) {
- delete index[rel];
- changed = true;
- }
- }
- if (changed) writeScreenshotRetentionIndex(checkout, index);
-}
-
-export async function cleanupPreviews({
- repository,
- token,
- tempRoot,
- remoteURL,
- dryRun = false,
- openPRs,
- now,
- maxAttempts = 5,
- beforePush,
-}) {
- const open =
- openPRs instanceof Set ? openPRs : listOpenPRsFromGitHub(repository);
- if (open.size === 0) {
- process.stdout.write('No confirmed open PR list; skipping cleanup.\n');
- return {deleted: 0, skipped: true};
- }
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- fullHistory: true,
- prefix: 'gh-pages-cleanup-',
- });
- try {
- const deleted = [];
- for (const entry of fs.readdirSync(checkout, {withFileTypes: true})) {
- if (entry.isDirectory() && isSevenHex(entry.name))
- deleted.push(entry.name);
- }
- const prRoot = path.join(checkout, 'pr');
- if (fs.existsSync(prRoot)) {
- for (const entry of fs.readdirSync(prRoot, {withFileTypes: true})) {
- if (!entry.isDirectory()) continue;
- if (!open.has(entry.name))
- deleted.push(path.posix.join('pr', entry.name));
- const templateAssets = path.join(
- prRoot,
- entry.name,
- 'sandbox',
- 'template-assets',
- );
- if (fs.existsSync(templateAssets)) {
- deleted.push(
- path.posix.join('pr', entry.name, 'sandbox', 'template-assets'),
- );
- }
- }
- }
- for (const item of [
- 'favicon.svg',
- 'iframe.html',
- 'index.json',
- 'project.json',
- 'nunito-sans-bold-italic.woff2',
- 'nunito-sans-bold.woff2',
- 'nunito-sans-italic.woff2',
- 'nunito-sans-regular.woff2',
- 'sb-addons',
- 'sb-common-assets',
- 'sb-manager',
- ]) {
- if (fs.existsSync(path.join(checkout, item))) deleted.push(item);
- }
- const expiredScreenshots = expiredReportScreenshots(checkout, now);
- deleted.push(...expiredScreenshots);
- const uniqueDeleted = [...new Set(deleted)].sort();
- for (const rel of uniqueDeleted) process.stdout.write(`DELETE ${rel}\n`);
- if (dryRun) return {deleted: uniqueDeleted.length, dryRun: true};
- for (const rel of uniqueDeleted) {
- fs.rmSync(path.join(checkout, rel), {recursive: true, force: true});
- }
- forgetScreenshots(checkout, expiredScreenshots);
- pruneEmptyScreenshotDirs(checkout);
- if (uniqueDeleted.length === 0) {
- process.stdout.write('Nothing to clean up.\n');
- return {deleted: 0};
- }
- const commit = commitIfNeeded(
- checkout,
- `chore: cleanup ${uniqueDeleted.length} stale deployments`,
- ['-A'],
- );
- if (commit === null) return {deleted: 0};
- await beforePush?.({attempt, checkout, commit});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushOrRetry(pushed)) return {deleted: uniqueDeleted.length, commit};
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying cleanup publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not push cleanup after ${maxAttempts} attempts`);
-}
-
-export async function publishVibeReport({
- repository,
- token,
- tempRoot,
- remoteURL,
- reportId,
- source,
- maxAttempts = 5,
- beforePush,
-}) {
- const report = safeRelativePath(String(reportId), '--report-id');
- const sourceDir = path.resolve(source);
- if (!fs.existsSync(sourceDir) || !fs.statSync(sourceDir).isDirectory()) {
- refuse('--source must be a directory');
- }
- const destinationRel = `reports/${report}`;
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: ['reports'],
- prefix: 'gh-pages-vibe-report-',
- });
- const stageRoot = fs.mkdtempSync(path.join(tempRoot, 'vibe-report-stage-'));
- try {
- const destination = path.join(checkout, destinationRel);
- const stage = path.join(stageRoot, report);
- seedScreenshotRetentionIndex(checkout);
- if (fs.existsSync(destination)) {
- copyContents(destination, stage);
- }
- copyContents(sourceDir, stage);
- fs.rmSync(destination, {recursive: true, force: true});
- copyContents(stage, destination);
- const screenshots = path.join(stage, 'screenshots');
- if (fs.existsSync(screenshots)) {
- rememberPublishedScreenshots(
- checkout,
- `${destinationRel}/screenshots`,
- screenshots,
- );
- }
- updateReportsIndex(path.join(checkout, 'reports'));
- const commit = commitIfNeeded(checkout, `report: ${report}`, [
- '-A',
- 'reports',
- ]);
- if (commit === null) return {published: false};
- await beforePush?.({attempt, checkout, commit});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushOrRetry(pushed)) return {published: true, commit};
- } finally {
- fs.rmSync(stageRoot, {recursive: true, force: true});
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying vibe report publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not publish report ${report} after ${maxAttempts} attempts`);
-}
-
-function updateReportsIndex(reportsDir) {
- fs.mkdirSync(reportsDir, {recursive: true});
- const entries = fs
- .readdirSync(reportsDir, {withFileTypes: true})
- .filter(entry => entry.isDirectory())
- .map(entry => entry.name)
- .sort()
- .reverse();
- const html = `<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Astryx Vibe Test Reports</title>
-</head>
-<body>
- <h1>📊 Astryx Vibe Test Reports</h1>
- <ul>
- ${entries.map(name => `<li><a href="${name}/">${name}</a></li>`).join('\n ')}
- </ul>
-</body>
-</html>`;
- fs.writeFileSync(path.join(reportsDir, 'index.html'), html);
-}
-
-export async function publishVibeScreenshots({
- repository,
- token,
- tempRoot,
- remoteURL,
- reportId,
- screenshots,
- manifests,
- maxAttempts = 5,
- beforePush,
-}) {
- const report = safeRelativePath(String(reportId), '--report-id');
- const screenshotsDir = path.resolve(screenshots);
- const manifestsDir = path.resolve(manifests);
- if (
- !fs.existsSync(screenshotsDir) ||
- !fs.statSync(screenshotsDir).isDirectory()
- ) {
- refuse('--screenshots must be a directory');
- }
- const destinationRel = `reports/${report}/screenshots`;
- const stageRoot = fs.mkdtempSync(
- path.join(tempRoot, 'vibe-screenshots-stage-'),
- );
- try {
- const stage = path.join(stageRoot, 'screenshots');
- fs.mkdirSync(stage, {recursive: true});
- for (const file of fileList(screenshotsDir)) {
- if (file.endsWith('.png')) {
- fs.copyFileSync(
- path.join(screenshotsDir, file),
- path.join(stage, path.basename(file)),
- );
- }
- }
- const merged = {};
- if (fs.existsSync(manifestsDir)) {
- for (const file of fileList(manifestsDir)) {
- if (path.basename(file) === 'manifest.json') {
- Object.assign(merged, readJSON(path.join(manifestsDir, file)) ?? {});
- }
- }
- }
- fs.writeFileSync(
- path.join(stage, 'manifest.json'),
- `${JSON.stringify(merged, null, 2)}\n`,
- );
- return await publishMutableSubtree({
- repository,
- token,
- tempRoot,
- remoteURL,
- source: stage,
- destination: destinationRel,
- message: `screenshots: ${report} (${fileList(stage).filter(file => file.endsWith('.png')).length} images)`,
- maxAttempts,
- beforePush,
- });
- } finally {
- fs.rmSync(stageRoot, {recursive: true, force: true});
- }
-}
-
-export async function publishMutableSubtree({
- repository,
- token,
- tempRoot,
- remoteURL,
- source,
- destination,
- message,
- maxAttempts = 5,
- beforePush,
-}) {
- const sourceDir = path.resolve(source);
- const destinationRel = safeRelativePath(destination, '--destination');
- if (!fs.existsSync(sourceDir) || !fs.statSync(sourceDir).isDirectory()) {
- refuse('--source must be a directory');
- }
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- sparsePaths: [destinationRel],
- prefix: 'gh-pages-subtree-',
- });
- try {
- const destinationDir = path.join(checkout, destinationRel);
- seedScreenshotRetentionIndex(checkout);
- fs.rmSync(destinationDir, {recursive: true, force: true});
- copyContents(sourceDir, destinationDir);
- if (destinationRel.endsWith('/screenshots')) {
- rememberPublishedScreenshots(checkout, destinationRel, sourceDir);
- }
- const commit = commitIfNeeded(
- checkout,
- message ?? `publish ${destinationRel}`,
- ['-A', destinationRel],
- );
- if (commit === null) return {published: false};
- await beforePush?.({attempt, checkout, commit});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- PAGES_BRANCH,
- ]);
- if (pushOrRetry(pushed)) return {published: true, commit};
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying subtree publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not publish ${destinationRel} after ${maxAttempts} attempts`);
-}
-
-export async function compactGhPages({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- clearQueueForRun = false,
- maxAttempts = 5,
- beforePush,
-}) {
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- fullHistory: true,
- prefix: 'gh-pages-compact-',
- });
- try {
- const oldHead = git(checkout, 'rev-parse', 'HEAD');
- seedScreenshotRetentionIndex(checkout);
- const expiredScreenshots = expiredReportScreenshots(checkout);
- for (const rel of expiredScreenshots) {
- fs.rmSync(path.join(checkout, rel), {recursive: true, force: true});
- }
- forgetScreenshots(checkout, expiredScreenshots);
- pruneEmptyScreenshotDirs(checkout);
- if (clearQueueForRun) {
- fs.rmSync(path.join(checkout, QUEUE_REL, `${runId}.json`), {
- force: true,
- });
- const holder = path.join(checkout, QUEUE_REL, HOLDER_NAME);
- const held = readJSON(holder);
- if (held?.runId === runId && held?.scope === scope) {
- fs.rmSync(holder, {force: true});
- }
- fs.rmSync(path.join(checkout, LEGACY_BASELINE_QUEUE_REL), {
- recursive: true,
- force: true,
- });
- }
- git(checkout, 'add', '-A');
- configureGitIdentity(checkout);
- const tree = git(checkout, 'write-tree');
- const commit = run('git', [
- '-C',
- checkout,
- 'commit-tree',
- tree,
- '-m',
- `chore: compact ${PAGES_BRANCH} history`,
- ]);
- await beforePush?.({attempt, checkout, commit, oldHead});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- `--force-with-lease=refs/heads/${PAGES_BRANCH}:${oldHead}`,
- `${commit}:refs/heads/${PAGES_BRANCH}`,
- ]);
- if (pushOrRetry(pushed)) {
- process.stdout.write(
- `Compacted ${PAGES_BRANCH} to ${commit.slice(0, 7)}.\n`,
- );
- return {published: true, commit};
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying gh-pages compaction (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not compact ${PAGES_BRANCH} after ${maxAttempts} attempts`);
-}
-
-export async function publishStableSite({
- repository,
- token,
- tempRoot,
- remoteURL,
- source,
- sha,
- maxAttempts = 5,
- beforePush,
-}) {
- const sourceDir = path.resolve(source);
- const shortSha = sha.slice(0, 7);
- for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
- const checkout = checkoutPages({
- repository,
- token,
- tempRoot,
- remoteURL,
- noCheckout: true,
- sparsePaths: ['storybook', 'sandbox', 'assets'],
- prefix: 'gh-pages-stable-',
- });
- try {
- const oldHead = git(checkout, 'rev-parse', 'HEAD');
- for (const rel of [
- 'storybook',
- 'sandbox',
- 'assets',
- 'index.html',
- 'latest',
- ]) {
- fs.rmSync(path.join(checkout, rel), {recursive: true, force: true});
- }
- copyContents(sourceDir, checkout);
- fs.closeSync(fs.openSync(path.join(checkout, '.nojekyll'), 'a'));
- git(checkout, 'add', '-A');
- const diff = tryRun('git', [
- '-C',
- checkout,
- 'diff',
- '--cached',
- '--quiet',
- ]);
- if (diff.status === 0) {
- process.stdout.write('Nothing to publish.\n');
- return {published: false};
- }
- configureGitIdentity(checkout);
- const tree = git(checkout, 'write-tree');
- const commit = run('git', [
- '-C',
- checkout,
- 'commit-tree',
- tree,
- '-m',
- `Deploy ${shortSha} to GitHub Pages`,
- ]);
- await beforePush?.({attempt, checkout, commit, oldHead});
- const pushed = tryRun('git', [
- '-C',
- checkout,
- 'push',
- 'origin',
- `--force-with-lease=refs/heads/${PAGES_BRANCH}:${oldHead}`,
- `${commit}:refs/heads/${PAGES_BRANCH}`,
- ]);
- if (pushOrRetry(pushed)) {
- process.stdout.write(
- `Published stable site ${shortSha} (${commit.slice(0, 7)}).\n`,
- );
- return {published: true, commit};
- }
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- process.stdout.write(
- `Push rejected; retrying stable-site publish (${attempt}/${maxAttempts}).\n`,
- );
- await sleep(attempt * 2000);
- }
- refuse(`could not publish the stable site after ${maxAttempts} attempts`);
-}
-
-export async function withPublicationTurn({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- timeoutMs,
- beforeClaimPush,
- publish,
-}) {
- validateIdentity(repository, runId, scope);
- await enqueuePublication({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- });
- // Enqueue refusal must not release another scope's ticket. Once enqueued,
- // waiting owns queue state too, even before either holder is acquired.
- try {
- await waitForPublicationTurn({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- timeoutMs,
- beforeClaimPush,
- });
- return await publish();
- } finally {
- await releasePublication({
- repository,
- runId,
- scope,
- token,
- tempRoot,
- remoteURL,
- });
- }
-}
-
-function flag(args, name, fallback) {
- const index = args.indexOf(name);
- if (index === -1) return fallback;
- const value = args[index + 1];
- if (!value || value.startsWith('--')) refuse(`${name} requires a value`);
- return value;
-}
-
-function cliContext(args) {
- const repository = process.env.GITHUB_REPOSITORY ?? '';
- const runId = Number(process.env.GITHUB_RUN_ID);
- const token = process.env.GH_TOKEN ?? process.env.GITHUB_TOKEN ?? '';
- const tempRoot = process.env.RUNNER_TEMP || os.tmpdir();
- const maxAttempts = Number(flag(args, '--max-attempts', '5'));
- if (!token) refuse('GitHub token is missing');
- if (!Number.isSafeInteger(maxAttempts) || maxAttempts <= 0) {
- refuse('--max-attempts is invalid');
- }
- return {repository, runId, token, tempRoot, maxAttempts};
-}
-
-export async function main(argv = process.argv.slice(2)) {
- const command = argv[0];
- const context = cliContext(argv);
- if (command === 'enqueue' || command === 'wait' || command === 'release') {
- const scope = flag(argv, '--scope');
- if (!scope) refuse('--scope is required');
- if (command === 'enqueue') {
- await enqueuePublication({...context, scope});
- } else if (command === 'wait') {
- await waitForPublicationTurn({...context, scope});
- } else {
- await releasePublication({...context, scope});
- }
- } else if (command === 'stable-site') {
- const source = flag(argv, '--source');
- const sha = flag(argv, '--sha', process.env.GITHUB_SHA ?? '');
- if (!source) refuse('--source is required');
- if (!/^[0-9a-f]{7,40}$/i.test(sha)) refuse('--sha is invalid');
- await withPublicationTurn({
- ...context,
- scope: 'whole-tree',
- publish: () => publishStableSite({...context, source, sha}),
- });
- } else if (command === 'immutable-path') {
- const source = flag(argv, '--source');
- const destination = flag(argv, '--destination');
- const scope = flag(argv, '--scope');
- if (!source) refuse('--source is required');
- if (!destination) refuse('--destination is required');
- if (!scope) refuse('--scope is required');
- await withPublicationTurn({
- ...context,
- scope,
- publish: () =>
- publishImmutablePath({
- ...context,
- source,
- destination,
- message: flag(argv, '--message'),
- }),
- });
- } else if (command === 'visual-baseline-manual') {
- await publishManualVisualBaseline({
- ...context,
- capture: flag(argv, '--capture'),
- keys: flag(argv, '--keys'),
- reason: flag(argv, '--reason'),
- actor: flag(argv, '--actor'),
- prune: flag(argv, '--prune', 'false') === 'true',
- });
- } else if (command === 'pr-preview') {
- const pr = flag(argv, '--pr');
- await withPublicationTurn({
- ...context,
- scope: `pr-preview/${pr}`,
- publish: () =>
- publishPrPreview({
- ...context,
- pr,
- head: flag(argv, '--head'),
- headRepo: flag(argv, '--head-repo'),
- headRepoId: flag(argv, '--head-repo-id'),
- headRef: flag(argv, '--head-ref'),
- baseRepo: flag(argv, '--base-repo'),
- sourceRunId: flag(argv, '--source-run-id'),
- sourceRunAttempt: flag(argv, '--source-run-attempt'),
- sourceConclusion: flag(argv, '--source-conclusion'),
- storybook: flag(argv, '--storybook'),
- sandbox: flag(argv, '--sandbox'),
- resultFile: flag(argv, '--result'),
- }),
- });
- } else if (command === 'cleanup-previews') {
- await withPublicationTurn({
- ...context,
- scope: 'cleanup/previews',
- publish: () =>
- cleanupPreviews({
- ...context,
- dryRun: flag(argv, '--dry-run', 'false') === 'true',
- }),
- });
- } else if (command === 'vibe-report') {
- const reportId = flag(argv, '--report-id');
- await withPublicationTurn({
- ...context,
- scope: 'reports/vibe-report',
- publish: () =>
- publishVibeReport({
- ...context,
- reportId,
- source: flag(argv, '--source'),
- }),
- });
- } else if (command === 'vibe-screenshots') {
- const reportId = flag(argv, '--report-id');
- await withPublicationTurn({
- ...context,
- scope: 'reports/vibe-screenshots',
- publish: () =>
- publishVibeScreenshots({
- ...context,
- reportId,
- screenshots: flag(argv, '--screenshots'),
- manifests: flag(argv, '--manifests'),
- }),
- });
- } else if (command === 'compact') {
- const scope = 'whole-tree';
- await enqueuePublication({...context, scope});
- await waitForPublicationTurn({...context, scope});
- try {
- await compactGhPages({...context, scope, clearQueueForRun: true});
- } catch (error) {
- await releasePublication({...context, scope});
- throw error;
- }
- } else {
- refuse(
- 'usage: gh-pages-publisher.mjs <enqueue|wait|release|stable-site|immutable-path|visual-baseline-manual|pr-preview|cleanup-previews|vibe-report|vibe-screenshots|compact>',
- );
- }
-}
-
-if (
- process.argv[1] &&
- fs.realpathSync(process.argv[1]) ===
- fs.realpathSync(fileURLToPath(import.meta.url))
-) {
- try {
- await main();
- } catch (error) {
- console.error(error.message);
- process.exitCode = 1;
- }
-}
diff --git a/.github/scripts/lib/gh-pages-publisher.test.mjs b/.github/scripts/lib/gh-pages-publisher.test.mjs
deleted file mode 100644
index dd8f3f8b44..0000000000
--- a/.github/scripts/lib/gh-pages-publisher.test.mjs
+++ /dev/null
@@ -1,1613 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * @file Local-Git contracts for Pages publishers and queue lifetimes.
- * @input Shared/legacy queue fixtures and controlled wait/publication failures.
- * @output Evidence of owned cleanup, preserved foreign state, and atomic holders.
- * @position Regression coverage for the shared gh-pages publication helper.
- */
-
-import {execFileSync, spawnSync} from 'node:child_process';
-import {createHash} from 'node:crypto';
-import fs from 'node:fs';
-import os from 'node:os';
-import path from 'node:path';
-import {fileURLToPath} from 'node:url';
-
-import {afterEach, describe, expect, it, vi} from 'vitest';
-import {PNG} from 'pngjs';
-
-import {
- cleanupPreviews,
- compactGhPages,
- enqueuePublication,
- publishImmutablePath,
- publishManualVisualBaseline,
- publishPrPreview,
- publishVibeReport,
- publishVibeScreenshots,
- publishStableSite,
- releasePublication,
- waitForPublicationTurn,
- withPublicationTurn,
-} from './gh-pages-publisher.mjs';
-
-const REPO = 'facebook/astryx';
-const roots = [];
-const LEGACY_LOCK = fileURLToPath(
- new URL('../visual-gate/lib/baseline-publication-lock.mjs', import.meta.url),
-);
-
-const HEAD = 'a'.repeat(40);
-const TESTED = 'b'.repeat(40);
-const BASE = 'd'.repeat(40);
-const KEY = 'core-button--default__neutral-light';
-
-const SHARED_HOLDER = path.join(
- '.astryx-gh-pages',
- 'publication-queue',
- 'holder.json',
-);
-const LEGACY_HOLDER = path.join(
- 'visual-gate',
- 'publication-queue',
- 'holder.json',
-);
-
-function holderCommit(checkout, holder) {
- return git(checkout, 'log', '-1', '--format=%H', '--', holder);
-}
-
-function holderAt(checkout, commit, holder) {
- const result = spawnSync(
- 'git',
- ['-C', checkout, 'show', `${commit}:${holder}`],
- {
- encoding: 'utf8',
- },
- );
- if (result.status !== 0) return null;
- return JSON.parse(result.stdout);
-}
-
-function holderStates(checkout, runId) {
- return git(checkout, 'rev-list', '--reverse', 'HEAD')
- .split('\n')
- .filter(Boolean)
- .map(commit => ({
- commit,
- shared: holderAt(checkout, commit, SHARED_HOLDER)?.runId === runId,
- legacy: holderAt(checkout, commit, LEGACY_HOLDER)?.runId === runId,
- }));
-}
-
-function expectNoPartialHolderState(checkout, runId) {
- expect(
- holderStates(checkout, runId).filter(
- state => state.shared !== state.legacy,
- ),
- ).toEqual([]);
-}
-
-const SHOT = {
- storyId: 'core-button--default',
- title: 'Core/Button',
- name: 'Default',
- component: 'Button',
- theme: 'neutral',
- mode: 'light',
- reasons: ['component:Button'],
-};
-
-function png(red, green = 0, blue = 0) {
- const image = new PNG({width: 2, height: 2});
- for (let offset = 0; offset < image.data.length; offset += 4) {
- image.data[offset] = red;
- image.data[offset + 1] = green;
- image.data[offset + 2] = blue;
- image.data[offset + 3] = 255;
- }
- return PNG.sync.write(image);
-}
-
-function digest(bytes) {
- return createHash('sha256').update(bytes).digest('hex');
-}
-
-function writeJSON(file, value) {
- writeFile(file, `${JSON.stringify(value, null, 2)}\n`);
-}
-
-function git(cwd, ...args) {
- return execFileSync('git', ['-C', cwd, ...args], {encoding: 'utf8'}).trim();
-}
-
-afterEach(() => {
- for (const root of roots.splice(0)) {
- fs.rmSync(root, {recursive: true, force: true});
- }
-});
-
-function writeFile(file, value) {
- fs.mkdirSync(path.dirname(file), {recursive: true});
- fs.writeFileSync(file, value);
-}
-
-function fixture() {
- const root = fs.mkdtempSync(path.join(os.tmpdir(), 'gh-pages-publisher-'));
- roots.push(root);
- const seed = path.join(root, 'seed');
- const remote = path.join(root, 'remote.git');
- const bin = path.join(root, 'bin');
- fs.mkdirSync(seed);
- fs.mkdirSync(bin);
- git(seed, 'init', '-q', '-b', 'gh-pages');
- git(seed, 'config', 'user.name', 'Test');
- git(seed, 'config', 'user.email', '[email protected]');
- writeFile(path.join(seed, 'storybook', 'old.html'), 'old storybook');
- writeFile(path.join(seed, 'sandbox', 'old.html'), 'old sandbox');
- writeFile(path.join(seed, 'assets', 'old.css'), 'old asset');
- writeFile(path.join(seed, 'pr', '123', 'index.html'), 'preview');
- writeFile(
- path.join(seed, 'pr', '123', 'visual', 'evidence.json'),
- 'same-PR visual evidence',
- );
- writeFile(path.join(seed, 'pr', '124', 'index.html'), 'closed preview');
- writeFile(
- path.join(seed, 'pr', '123', 'sandbox', 'template-assets', 'old.txt'),
- 'old duplicate asset',
- );
- writeFile(path.join(seed, 'abcdef1', 'index.html'), 'legacy preview');
- writeFile(path.join(seed, 'reports', 'vibe', 'index.html'), 'vibe');
- const before = png(255);
- const after = png(0, 0, 255);
- writeFile(
- path.join(seed, 'visual-gate', 'baseline', 'shots', `${KEY}.png`),
- before,
- );
- writeJSON(path.join(seed, 'visual-gate', 'baseline', 'manifest.json'), {
- version: 1,
- platform: 'linux-arm64',
- browser: 'chromium-140.0',
- viewport: {width: 1280, height: 900},
- shots: {
- [KEY]: {...SHOT, key: KEY, sha256: digest(before), width: 2, height: 2},
- },
- decisions: [],
- });
- const evidence = path.join(seed, 'pr', '42', 'visual', HEAD, '123', '1');
- writeFile(path.join(evidence, 'after', `${KEY}.png`), after);
- writeJSON(path.join(evidence, 'evidence.json'), {
- version: 1,
- repo: REPO,
- pr: 42,
- headSha: HEAD,
- testedSha: TESTED,
- baseSha: BASE,
- run: {id: 123, attempt: 1},
- capture: {
- platform: 'linux-arm64',
- browser: 'chromium-140.0',
- viewport: {width: 1280, height: 900},
- },
- deltas: [
- {
- key: KEY,
- kind: 'changed',
- beforeSha256: digest(before),
- shot: SHOT,
- },
- ],
- verdict: {version: 1, status: 'changed'},
- });
- writeFile(path.join(seed, 'visual-gate', '55', 'old.html'), 'old report');
- writeFile(path.join(seed, 'index.html'), 'old landing');
- writeFile(path.join(seed, 'latest'), 'oldsha');
- writeFile(path.join(seed, '.nojekyll'), '');
- git(seed, 'add', '.');
- git(seed, 'commit', '-qm', 'seed');
- git(root, 'clone', '-q', '--bare', seed, remote);
- writeFile(
- path.join(bin, 'gh'),
- `#!/bin/sh
-printf '{"workflow_runs":[{"name":"CI","id":123,"run_attempt":1,"status":"completed","conclusion":"success"}],"name":"CI","id":123,"run_attempt":1,"status":"completed","conclusion":"success","head_sha":"${HEAD}"}\n'
-`,
- );
- fs.chmodSync(path.join(bin, 'gh'), 0o755);
- return {root, remote, bin};
-}
-
-function writeLegacyTicket(remote, root, runId) {
- const writer = cloneRemote(remote, root, `legacy-${runId}`);
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- writeJSON(
- path.join(writer, 'visual-gate', 'publication-queue', `${runId}.json`),
- {
- version: 1,
- repository: REPO,
- runId,
- },
- );
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', `legacy ticket ${runId}`);
- git(writer, 'push', '-q', 'origin', 'gh-pages');
-}
-
-function runLegacyLock(fx, command, runId, extra = {}) {
- return spawnSync(process.execPath, [LEGACY_LOCK, command], {
- encoding: 'utf8',
- env: {
- ...process.env,
- PATH: `${fx.bin}:${process.env.PATH}`,
- ASTRYX_BASELINE_QUEUE_URL: `file://${fx.remote}`,
- GH_TOKEN: 'test-token',
- GITHUB_REPOSITORY: REPO,
- GITHUB_RUN_ID: String(runId),
- RUNNER_TEMP: fx.root,
- ...extra,
- },
- });
-}
-
-function writeSharedHolder(remote, root, runId, scope) {
- const writer = cloneRemote(remote, root, `shared-holder-${runId}`);
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- writeJSON(
- path.join(writer, '.astryx-gh-pages', 'publication-queue', `${runId}.json`),
- {
- version: 1,
- repository: REPO,
- runId,
- scope,
- },
- );
- writeJSON(
- path.join(writer, '.astryx-gh-pages', 'publication-queue', 'holder.json'),
- {
- version: 1,
- repository: REPO,
- runId,
- scope,
- },
- );
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', `shared holder ${runId}`);
- git(writer, 'push', '-q', 'origin', 'gh-pages');
-}
-
-function writeLegacyHolder(remote, root, runId, {withTicket = false} = {}) {
- const writer = cloneRemote(remote, root, `legacy-holder-${runId}`);
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- if (withTicket) {
- writeJSON(
- path.join(writer, 'visual-gate', 'publication-queue', `${runId}.json`),
- {
- version: 1,
- repository: REPO,
- runId,
- },
- );
- }
- writeJSON(path.join(writer, LEGACY_HOLDER), {
- version: 1,
- repository: REPO,
- runId,
- });
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', `legacy holder ${runId}`);
- git(writer, 'push', '-q', 'origin', 'gh-pages');
-}
-
-function writeCompetingSharedHolder(remote, root, runId, scope) {
- const writer = cloneRemote(remote, root, `competing-shared-${runId}`);
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- writeJSON(
- path.join(writer, '.astryx-gh-pages', 'publication-queue', `${runId}.json`),
- {
- version: 1,
- repository: REPO,
- runId,
- scope,
- },
- );
- writeJSON(path.join(writer, SHARED_HOLDER), {
- version: 1,
- repository: REPO,
- runId,
- scope,
- });
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', `competing shared holder ${runId}`);
- git(writer, 'push', '-q', 'origin', 'gh-pages');
-}
-
-function commitReportScreenshots({remote, root, reportId, files, isoDate}) {
- const writer = cloneRemote(
- remote,
- root,
- `report-shots-${reportId}-${Date.parse(isoDate)}`,
- );
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- for (const [name, bytes] of Object.entries(files)) {
- writeFile(
- path.join(writer, 'reports', reportId, 'screenshots', name),
- bytes,
- );
- }
- git(writer, 'add', '.');
- execFileSync(
- 'git',
- ['-C', writer, 'commit', '-qm', `screenshots ${reportId}`],
- {
- env: {
- ...process.env,
- GIT_AUTHOR_DATE: isoDate,
- GIT_COMMITTER_DATE: isoDate,
- },
- },
- );
- git(writer, 'push', '-q', 'origin', 'gh-pages');
-}
-
-function cloneRemote(remote, root, name = 'final') {
- const checkout = path.join(root, name);
- git(root, 'clone', '-q', '--branch', 'gh-pages', remote, checkout);
- return checkout;
-}
-
-function context({root, remote, bin}, runId, scope) {
- return {
- repository: REPO,
- runId,
- scope,
- token: 'test-token',
- tempRoot: root,
- remoteURL: `file://${remote}`,
- envPath: `${bin}:${process.env.PATH}`,
- };
-}
-
-function previewIdentity(overrides = {}) {
- return {
- pr: 123,
- head: HEAD,
- headRepo: 'cixzhang/astryx',
- headRepoId: '321',
- headRef: 'preview-fix',
- baseRepo: REPO,
- sourceRunId: 333,
- sourceRunAttempt: 1,
- sourceConclusion: 'success',
- ...overrides,
- };
-}
-
-async function queuedPublish(fx, runId, scope, publish) {
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- return await withPublicationTurn({
- ...context(fx, runId, scope),
- publish,
- });
- } finally {
- process.env.PATH = previousPath;
- }
-}
-
-async function withFixturePath(fx, callback) {
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- return await callback();
- } finally {
- process.env.PATH = previousPath;
- }
-}
-
-async function withoutGitIdentity(callback) {
- const root = fs.mkdtempSync(path.join(os.tmpdir(), 'git-no-identity-'));
- const emptyGlobalConfig = path.join(root, 'config');
- fs.writeFileSync(emptyGlobalConfig, '');
- const keys = [
- 'GIT_AUTHOR_NAME',
- 'GIT_AUTHOR_EMAIL',
- 'GIT_COMMITTER_NAME',
- 'GIT_COMMITTER_EMAIL',
- 'GIT_CONFIG_GLOBAL',
- 'GIT_CONFIG_NOSYSTEM',
- 'HOME',
- ];
- const previous = Object.fromEntries(keys.map(key => [key, process.env[key]]));
- for (const key of keys) delete process.env[key];
- process.env.GIT_CONFIG_GLOBAL = emptyGlobalConfig;
- process.env.GIT_CONFIG_NOSYSTEM = '1';
- process.env.HOME = root;
- try {
- return await callback();
- } finally {
- for (const key of keys) {
- if (previous[key] === undefined) delete process.env[key];
- else process.env[key] = previous[key];
- }
- fs.rmSync(root, {recursive: true, force: true});
- }
-}
-
-function expectPublicationReleased(fx, runId, name) {
- const checkout = cloneRemote(fx.remote, fx.root, name);
- for (const holder of [SHARED_HOLDER, LEGACY_HOLDER]) {
- const ticket = path.join(path.dirname(holder), `${runId}.json`);
- expect(fs.existsSync(path.join(checkout, ticket)), ticket).toBe(false);
- expect(holderAt(checkout, 'HEAD', holder)?.runId).not.toBe(runId);
- }
- expectNoPartialHolderState(checkout, runId);
- return checkout;
-}
-
-describe('publication turn lifetime', () => {
- it('cleans up after run lookup failure and permits another scope in the same run', async () => {
- const fx = fixture();
- const older = context(fx, 899, 'whole-tree');
- const turn = context(fx, 900, 'pr-visual/evidence');
- const publish = vi.fn();
- await withFixturePath(fx, async () => {
- await enqueuePublication(older);
- await waitForPublicationTurn(older);
- writeFile(
- path.join(fx.bin, 'gh'),
- '#!/bin/sh\nprintf "injected run lookup failure\\n" >&2\nexit 1\n',
- );
- await expect(withPublicationTurn({...turn, publish})).rejects.toThrow(
- /cannot resolve queued run 899: injected run lookup failure/,
- );
- expect(publish).not.toHaveBeenCalled();
- const failed = expectPublicationReleased(fx, 900, 'after-wait-error');
- expect(holderAt(failed, 'HEAD', SHARED_HOLDER)).toMatchObject({
- runId: 899,
- scope: 'whole-tree',
- });
- expect(holderAt(failed, 'HEAD', LEGACY_HOLDER)).toMatchObject({
- runId: 899,
- });
-
- await releasePublication(older);
- const source = path.join(fx.root, 'next-scope');
- writeFile(path.join(source, 'index.html'), 'next publication');
- await expect(
- withPublicationTurn({
- ...turn,
- scope: 'pr-preview/42',
- publish: () =>
- publishImmutablePath({
- ...turn,
- source,
- destination: 'pr/42/next-publication',
- }),
- }),
- ).resolves.toMatchObject({published: true});
- });
- const final = expectPublicationReleased(fx, 900, 'after-next-scope');
- expect(
- fs.readFileSync(
- path.join(final, 'pr/42/next-publication/index.html'),
- 'utf8',
- ),
- ).toBe('next publication');
- expectNoPartialHolderState(final, 899);
- });
-
- it.each(['shared', 'legacy'])(
- 'cleans up a timed-out turn without removing a live %s holder',
- async queue => {
- const fx = fixture();
- if (queue === 'shared') {
- writeSharedHolder(fx.remote, fx.root, 899, 'whole-tree');
- } else {
- writeLegacyHolder(fx.remote, fx.root, 899, {withTicket: true});
- }
- writeFile(
- path.join(fx.bin, 'gh'),
- '#!/bin/sh\nprintf \'{"status":"in_progress"}\\n\'\n',
- );
- const before = cloneRemote(fx.remote, fx.root, 'before-timeout');
- const holder = queue === 'shared' ? SHARED_HOLDER : LEGACY_HOLDER;
- const queuePath = path.dirname(holder);
- const queueTree = git(before, 'rev-parse', `HEAD:${queuePath}`);
- const publish = vi.fn();
- await withFixturePath(fx, () =>
- expect(
- withPublicationTurn({
- ...context(fx, 900, 'pr-visual/evidence'),
- timeoutMs: 0,
- publish,
- }),
- ).rejects.toThrow(/timed out behind gh-pages publication run 899/),
- );
- expect(publish).not.toHaveBeenCalled();
- const final = expectPublicationReleased(fx, 900, 'after-timeout');
- expect(git(final, 'rev-parse', `HEAD:${queuePath}`)).toBe(queueTree);
- },
- );
-
- it('cleans up an interrupted claim without exposing either partial holder', async () => {
- const fx = fixture();
- const error = new Error('injected claim failure');
- const publish = vi.fn();
- const beforeClaimPush = vi.fn(({checkout}) => {
- // Both holders are staged, but the failed claim must publish neither.
- expect(holderAt(checkout, 'HEAD', SHARED_HOLDER)).toMatchObject({
- runId: 900,
- });
- expect(holderAt(checkout, 'HEAD', LEGACY_HOLDER)).toMatchObject({
- runId: 900,
- });
- throw error;
- });
- await withFixturePath(fx, () =>
- expect(
- withPublicationTurn({
- ...context(fx, 900, 'pr-visual/evidence'),
- beforeClaimPush,
- publish,
- }),
- ).rejects.toBe(error),
- );
- expect(beforeClaimPush).toHaveBeenCalledOnce();
- expect(publish).not.toHaveBeenCalled();
- expectPublicationReleased(fx, 900, 'after-claim-error');
- });
-
- it.each(['throw', 'reject'])(
- 'releases an acquired turn after publish %s',
- async failure => {
- const fx = fixture();
- const error = new Error('injected publish failure');
- await expect(
- queuedPublish(fx, 900, 'pr-visual/evidence', () => {
- const acquired = cloneRemote(fx.remote, fx.root, 'acquired');
- expect(holderAt(acquired, 'HEAD', SHARED_HOLDER)).toMatchObject({
- runId: 900,
- scope: 'pr-visual/evidence',
- });
- expect(holderAt(acquired, 'HEAD', LEGACY_HOLDER)).toMatchObject({
- runId: 900,
- });
- if (failure === 'reject') return Promise.reject(error);
- throw error;
- }),
- ).rejects.toBe(error);
- expectPublicationReleased(fx, 900, 'after-publish-error');
- },
- );
-
- it.each([false, true])(
- 'preserves another scope when enqueue refuses (already held: %s)',
- async held => {
- const fx = fixture();
- const existing = context(fx, 900, 'pr-preview/42');
- const publish = vi.fn();
- await withFixturePath(fx, async () => {
- await enqueuePublication(existing);
- if (held) await waitForPublicationTurn(existing);
- const before = git(
- fx.root,
- '--git-dir',
- fx.remote,
- 'rev-parse',
- 'gh-pages',
- );
- await expect(
- withPublicationTurn({
- ...context(fx, 900, 'pr-visual/evidence'),
- publish,
- }),
- ).rejects.toThrow(/existing queue ticket has invalid identity/);
- expect(
- git(fx.root, '--git-dir', fx.remote, 'rev-parse', 'gh-pages'),
- ).toBe(before);
- });
- expect(publish).not.toHaveBeenCalled();
- },
- );
-
- it('releases successful sequential scopes in the same run without a partial dual holder', async () => {
- const fx = fixture();
- const scopes = ['pr-visual/evidence', 'pr-preview/42'];
- for (const [index, scope] of scopes.entries()) {
- const source = path.join(fx.root, `source-${index}`);
- writeFile(path.join(source, 'index.html'), scope);
- await expect(
- queuedPublish(fx, 900, scope, () =>
- publishImmutablePath({
- ...context(fx, 900, scope),
- source,
- destination: `pr/42/lifetime-${index}`,
- }),
- ),
- ).resolves.toMatchObject({published: true});
- const final = expectPublicationReleased(
- fx,
- 900,
- `after-success-${index}`,
- );
- for (const [publishedIndex, publishedScope] of scopes
- .slice(0, index + 1)
- .entries()) {
- expect(
- fs.readFileSync(
- path.join(final, `pr/42/lifetime-${publishedIndex}/index.html`),
- 'utf8',
- ),
- ).toBe(publishedScope);
- }
- }
- });
-});
-
-describe('gh-pages publisher', () => {
- it.each(['browser-only', 'capture-failure', 'missing-verdict'])(
- 'validates %s before manual baseline publication',
- async scenario => {
- const fx = fixture();
- const capture = path.join(fx.root, 'capture');
- const after = png(0, 0, 255);
- writeFile(path.join(capture, 'shots', `${KEY}.png`), after);
- writeJSON(path.join(capture, 'manifest.json'), {
- platform: 'linux-arm64',
- browser: 'chromium-141.0',
- viewport: {width: 1280, height: 900},
- shots: {[KEY]: {...SHOT, sha256: digest(after)}},
- });
- if (scenario !== 'missing-verdict') {
- const failures = [
- {
- key: 'baseline',
- error:
- 'baseline was captured with chromium-140.0, this run with chromium-141.0 — refresh the baseline (gate.mjs accept --keys all --reason "browser bump").',
- },
- ];
- if (scenario === 'capture-failure')
- failures.push({key: KEY, error: 'timeout'});
- writeJSON(path.join(capture, 'verdict.json'), {
- status: 'failed',
- counts: {total: 1, failed: failures.length},
- failures,
- removed: [],
- });
- }
- const before = git(
- fx.root,
- '--git-dir',
- fx.remote,
- 'rev-parse',
- 'gh-pages:visual-gate/baseline',
- );
- const publish = () =>
- queuedPublish(fx, 850, 'visual-gate/baseline', () =>
- publishManualVisualBaseline({
- ...context(fx, 850, 'visual-gate/baseline'),
- capture,
- keys: 'all',
- reason: 'browser bump',
- actor: 'maintainer',
- prune: true,
- }),
- );
- if (scenario === 'browser-only') {
- await expect(publish()).resolves.toMatchObject({published: true});
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.readFileSync(
- path.join(final, 'visual-gate/baseline/shots', `${KEY}.png`),
- ),
- ).toEqual(after);
- const manifest = JSON.parse(
- fs.readFileSync(
- path.join(final, 'visual-gate/baseline/manifest.json'),
- 'utf8',
- ),
- );
- expect(manifest.browser).toBe('chromium-141.0');
- expect(manifest.decisions.at(-1)).toMatchObject({
- promoted: [KEY],
- reason: 'browser bump',
- });
- } else {
- await expect(publish()).rejects.toThrow(/Refusing to promote/);
- expect(
- git(
- fx.root,
- '--git-dir',
- fx.remote,
- 'rev-parse',
- 'gh-pages:visual-gate/baseline',
- ),
- ).toBe(before);
- }
- },
- );
-
- it('queues whole-tree and scoped writers without Actions pending-run cancellation', async () => {
- const fx = fixture();
- const wholeTree = context(fx, 800, 'whole-tree');
- const scoped = context(fx, 801, 'visual-gate/reports');
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await enqueuePublication(wholeTree);
- await enqueuePublication(scoped);
- await expect(
- waitForPublicationTurn({...scoped, timeoutMs: 0}),
- ).rejects.toThrow(/timed out behind gh-pages publication run 800/);
- await waitForPublicationTurn(wholeTree);
- await releasePublication(wholeTree);
- await waitForPublicationTurn(scoped);
- await releasePublication(scoped);
- } finally {
- process.env.PATH = previousPath;
- }
-
- const final = cloneRemote(fx.remote, fx.root);
- const queue = path.join(final, '.astryx-gh-pages', 'publication-queue');
- expect(fs.existsSync(queue) ? fs.readdirSync(queue).sort() : []).toEqual(
- [],
- );
- });
-
- it('publishes the stable site as an orphan while preserving unrelated scoped paths', async () => {
- const fx = fixture();
- const staged = path.join(fx.root, 'staged');
- writeFile(path.join(staged, 'storybook', 'index.html'), 'new storybook');
- writeFile(path.join(staged, 'sandbox', 'index.html'), 'new sandbox');
- writeFile(path.join(staged, 'assets', 'astryx.css'), 'new css');
- writeFile(path.join(staged, 'index.html'), 'new landing');
- writeFile(path.join(staged, 'latest'), 'abcdef1');
- const queueWriter = cloneRemote(fx.remote, fx.root, 'queue-writer');
- git(queueWriter, 'config', 'user.name', 'Test');
- git(queueWriter, 'config', 'user.email', '[email protected]');
- writeFile(
- path.join(
- queueWriter,
- '.astryx-gh-pages',
- 'publication-queue',
- '700.json',
- ),
- '{"version":1,"repository":"facebook/astryx","runId":700,"scope":"whole-tree"}\n',
- );
- git(queueWriter, 'add', '.');
- git(queueWriter, 'commit', '-qm', 'seed queue');
- git(queueWriter, 'push', '-q', 'origin', 'gh-pages');
-
- await withoutGitIdentity(() =>
- publishStableSite({
- ...context(fx, 900, 'whole-tree'),
- source: staged,
- sha: 'abcdef1234567890',
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.readFileSync(path.join(final, 'storybook', 'index.html'), 'utf8'),
- ).toBe('new storybook');
- expect(fs.existsSync(path.join(final, 'storybook', 'old.html'))).toBe(
- false,
- );
- expect(
- fs.readFileSync(path.join(final, 'pr', '123', 'index.html'), 'utf8'),
- ).toBe('preview');
- expect(
- fs.readFileSync(
- path.join(final, 'reports', 'vibe', 'index.html'),
- 'utf8',
- ),
- ).toBe('vibe');
- expect(
- JSON.parse(
- fs.readFileSync(
- path.join(final, 'visual-gate', 'baseline', 'manifest.json'),
- 'utf8',
- ),
- ).version,
- ).toBe(1);
- expect(
- fs.readFileSync(
- path.join(final, '.astryx-gh-pages', 'publication-queue', '700.json'),
- 'utf8',
- ),
- ).toContain('whole-tree');
- expect(git(final, 'rev-list', '--count', 'HEAD')).toBe('1');
- });
-
- it('does not claim either holder while waiting for an older legacy baseline ticket', async () => {
- const fx = fixture();
- writeLegacyTicket(fx.remote, fx.root, 899);
- const turn = context(fx, 900, 'visual-gate/reports');
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await enqueuePublication(turn);
- await expect(
- waitForPublicationTurn({...turn, timeoutMs: 0}),
- ).rejects.toThrow(/timed out behind gh-pages publication run 899/);
- } finally {
- process.env.PATH = previousPath;
- }
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(
- path.join(
- final,
- '.astryx-gh-pages',
- 'publication-queue',
- 'holder.json',
- ),
- ),
- ).toBe(false);
- expect(
- fs.existsSync(
- path.join(final, 'visual-gate', 'publication-queue', 'holder.json'),
- ),
- ).toBe(false);
- });
-
- it('lets a late older legacy run finish while the newer shared holder waits', async () => {
- const fx = fixture();
- const turn = context(fx, 900, 'visual-gate/reports');
- await enqueuePublication(turn);
- writeLegacyTicket(fx.remote, fx.root, 899);
-
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await expect(
- waitForPublicationTurn({...turn, timeoutMs: 0}),
- ).rejects.toThrow(/timed out behind gh-pages publication run 899/);
- expect(runLegacyLock(fx, 'wait', 899).status).toBe(0);
- expect(runLegacyLock(fx, 'release', 899).status).toBe(0);
- await waitForPublicationTurn(turn);
- } finally {
- process.env.PATH = previousPath;
- }
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- JSON.parse(fs.readFileSync(path.join(final, SHARED_HOLDER), 'utf8')),
- ).toMatchObject({runId: 900, scope: 'visual-gate/reports'});
- expect(
- JSON.parse(fs.readFileSync(path.join(final, LEGACY_HOLDER), 'utf8')),
- ).toMatchObject({runId: 900});
- expect(holderCommit(final, SHARED_HOLDER)).toBe(
- holderCommit(final, LEGACY_HOLDER),
- );
- expectNoPartialHolderState(final, 900);
- });
-
- it('bridges the legacy and shared queues for a new report writer', async () => {
- const fx = fixture();
- const turn = context(fx, 900, 'visual-gate/reports');
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await enqueuePublication(turn);
- await waitForPublicationTurn(turn);
- } finally {
- process.env.PATH = previousPath;
- }
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- JSON.parse(
- fs.readFileSync(
- path.join(
- final,
- '.astryx-gh-pages',
- 'publication-queue',
- 'holder.json',
- ),
- 'utf8',
- ),
- ),
- ).toMatchObject({runId: 900, scope: 'visual-gate/reports'});
- expect(
- JSON.parse(
- fs.readFileSync(
- path.join(final, 'visual-gate', 'publication-queue', 'holder.json'),
- 'utf8',
- ),
- ),
- ).toMatchObject({runId: 900});
- });
-
- it('allows only one simultaneous current writer to claim both holders', async () => {
- const fx = fixture();
- const first = context(fx, 900, 'visual-gate/reports');
- const second = context(fx, 901, 'pr-visual/evidence');
- await enqueuePublication(first);
- await enqueuePublication(second);
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await Promise.all([
- waitForPublicationTurn(first),
- expect(
- waitForPublicationTurn({...second, timeoutMs: 0}),
- ).rejects.toThrow(/timed out behind gh-pages publication run 900/),
- ]);
- } finally {
- process.env.PATH = previousPath;
- }
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- JSON.parse(fs.readFileSync(path.join(final, SHARED_HOLDER), 'utf8')),
- ).toMatchObject({runId: 900, scope: 'visual-gate/reports'});
- expect(
- JSON.parse(fs.readFileSync(path.join(final, LEGACY_HOLDER), 'utf8')),
- ).toMatchObject({runId: 900});
- expect(holderCommit(final, SHARED_HOLDER)).toBe(
- holderCommit(final, LEGACY_HOLDER),
- );
- expectNoPartialHolderState(final, 900);
- });
-
- it('retries an interrupted dual-holder claim without publishing a partial holder', async () => {
- const fx = fixture();
- const turn = context(fx, 900, 'visual-gate/reports');
- await enqueuePublication(turn);
- let raced = false;
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await waitForPublicationTurn({
- ...turn,
- beforeClaimPush: async ({attempt}) => {
- if (attempt !== 1 || raced) return;
- raced = true;
- const writer = cloneRemote(fx.remote, fx.root, 'dual-queue-race');
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- writeFile(path.join(writer, 'race.txt'), 'race');
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', 'race');
- git(writer, 'push', '-q', 'origin', 'gh-pages');
- },
- });
- } finally {
- process.env.PATH = previousPath;
- }
- expect(raced).toBe(true);
- const final = cloneRemote(fx.remote, fx.root);
- expect(fs.readFileSync(path.join(final, 'race.txt'), 'utf8')).toBe('race');
- expect(holderCommit(final, SHARED_HOLDER)).toBe(
- holderCommit(final, LEGACY_HOLDER),
- );
- expectNoPartialHolderState(final, 900);
- });
-
- it('prunes a completed legacy blocker and then acquires both holders', async () => {
- const fx = fixture();
- writeLegacyTicket(fx.remote, fx.root, 899);
- const turn = context(fx, 900, 'visual-gate/reports');
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await enqueuePublication(turn);
- await waitForPublicationTurn(turn);
- } finally {
- process.env.PATH = previousPath;
- }
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(
- path.join(final, 'visual-gate', 'publication-queue', '899.json'),
- ),
- ).toBe(false);
- expect(
- JSON.parse(
- fs.readFileSync(
- path.join(final, 'visual-gate', 'publication-queue', 'holder.json'),
- 'utf8',
- ),
- ),
- ).toMatchObject({runId: 900});
- });
-
- it('releases both holders in one commit without an observable partial release', async () => {
- const fx = fixture();
- const turn = context(fx, 900, 'visual-gate/reports');
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await enqueuePublication(turn);
- await waitForPublicationTurn(turn);
- await releasePublication(turn);
- } finally {
- process.env.PATH = previousPath;
- }
- const final = cloneRemote(fx.remote, fx.root);
- expect(fs.existsSync(path.join(final, SHARED_HOLDER))).toBe(false);
- expect(fs.existsSync(path.join(final, LEGACY_HOLDER))).toBe(false);
- expectNoPartialHolderState(final, 900);
- });
-
- it('prunes a terminal legacy holder without a ticket before claiming both holders', async () => {
- const fx = fixture();
- writeLegacyHolder(fx.remote, fx.root, 899);
- const turn = context(fx, 900, 'visual-gate/reports');
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await enqueuePublication(turn);
- await waitForPublicationTurn(turn);
- } finally {
- process.env.PATH = previousPath;
- }
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(
- path.join(final, 'visual-gate', 'publication-queue', '899.json'),
- ),
- ).toBe(false);
- expect(
- JSON.parse(fs.readFileSync(path.join(final, SHARED_HOLDER), 'utf8')),
- ).toMatchObject({runId: 900});
- expect(
- JSON.parse(fs.readFileSync(path.join(final, LEGACY_HOLDER), 'utf8')),
- ).toMatchObject({runId: 900});
- expectNoPartialHolderState(final, 900);
- });
-
- it('rechecks a fresh tip before claiming when a competing holder appears', async () => {
- const fx = fixture();
- const turn = context(fx, 900, 'visual-gate/reports');
- await enqueuePublication(turn);
- let raced = false;
- const previousPath = process.env.PATH;
- process.env.PATH = `${fx.bin}:${previousPath}`;
- try {
- await expect(
- waitForPublicationTurn({
- ...turn,
- timeoutMs: 0,
- beforeClaimPush: async ({attempt}) => {
- if (attempt !== 1 || raced) return;
- raced = true;
- writeCompetingSharedHolder(fx.remote, fx.root, 899, 'whole-tree');
- },
- }),
- ).rejects.toThrow(/timed out behind gh-pages publication run 899/);
- } finally {
- process.env.PATH = previousPath;
- }
- expect(raced).toBe(true);
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- JSON.parse(fs.readFileSync(path.join(final, SHARED_HOLDER), 'utf8')),
- ).toMatchObject({runId: 899, scope: 'whole-tree'});
- expect(fs.existsSync(path.join(final, LEGACY_HOLDER))).toBe(false);
- });
-
- it('publishes immutable visual evidence without overwriting different bytes', async () => {
- const fx = fixture();
- const source = path.join(fx.root, 'immutable-source');
- writeFile(path.join(source, 'index.html'), 'evidence');
- writeJSON(path.join(source, 'evidence.json'), {ok: true});
-
- await queuedPublish(fx, 910, 'pr-visual/evidence', () =>
- publishImmutablePath({
- ...context(fx, 910, 'pr-visual/evidence'),
- source,
- destination: 'pr/42/visual/head/run/1',
- message: 'Visual evidence: pr/42/visual/head/run/1',
- }),
- );
- await queuedPublish(fx, 911, 'pr-visual/evidence', () =>
- publishImmutablePath({
- ...context(fx, 911, 'pr-visual/evidence'),
- source,
- destination: 'pr/42/visual/head/run/1',
- message: 'Visual evidence: pr/42/visual/head/run/1',
- }),
- );
- writeFile(path.join(source, 'index.html'), 'changed evidence');
- await expect(
- queuedPublish(fx, 912, 'pr-visual/evidence', () =>
- publishImmutablePath({
- ...context(fx, 912, 'pr-visual/evidence'),
- source,
- destination: 'pr/42/visual/head/run/1',
- message: 'Visual evidence: pr/42/visual/head/run/1',
- }),
- ),
- ).rejects.toThrow(/immutable destination already exists/);
- });
-
- it('publishes reviewed baseline bytes only while holding the shared turn', async () => {
- const fx = fixture();
- const capture = path.join(fx.root, 'canonical-capture');
- const after = png(0, 0, 255);
- writeFile(path.join(capture, 'shots', `${KEY}.png`), after);
- writeJSON(path.join(capture, 'manifest.json'), {
- version: 1,
- platform: 'linux-arm64',
- browser: 'chromium-140.0',
- viewport: {width: 1280, height: 900},
- context: {sha: TESTED},
- shots: {
- [KEY]: {...SHOT, key: KEY, sha256: digest(after), width: 2, height: 2},
- },
- });
- writeJSON(path.join(capture, 'verdict.json'), {status: 'changed'});
- const options = {
- ...context(fx, 931, 'visual-gate/baseline'),
- capture,
- keys: KEY,
- reason: 'The reviewed frame matches the intended component rendering.',
- actor: 'maintainer',
- };
- await expect(publishManualVisualBaseline(options)).rejects.toThrow();
- await queuedPublish(fx, 931, 'visual-gate/baseline', () =>
- publishManualVisualBaseline(options),
- );
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.readFileSync(
- path.join(final, 'visual-gate/baseline/shots', `${KEY}.png`),
- ),
- ).toEqual(after);
- const manifest = JSON.parse(
- fs.readFileSync(
- path.join(final, 'visual-gate/baseline/manifest.json'),
- 'utf8',
- ),
- );
- expect(manifest.shots[KEY].sha256).toBe(digest(after));
- expect(manifest.decisions.at(-1).reason).toBe(options.reason);
- expect(
- fs.readFileSync(path.join(final, 'storybook/old.html'), 'utf8'),
- ).toBe('old storybook');
- });
-
- it('publishes Sandbox only and preserves existing Storybook and visual bytes', async () => {
- const fx = fixture();
- const sandbox = path.join(fx.root, 'preview-sandbox');
- writeFile(path.join(sandbox, 'index.html'), 'new sandbox');
- writeFile(
- path.join(sandbox, 'template-assets', 'ignored.txt'),
- 'shared asset',
- );
- const result = await queuedPublish(fx, 940, 'pr-preview/123', () =>
- publishPrPreview({
- ...context(fx, 940, 'pr-preview/123'),
- ...previewIdentity(),
- sandbox,
- }),
- );
- const final = cloneRemote(fx.remote, fx.root);
- expect(fs.readFileSync(path.join(final, 'pr/123/index.html'), 'utf8')).toBe(
- 'preview',
- );
- expect(
- fs.readFileSync(path.join(final, 'pr/123/sandbox/index.html'), 'utf8'),
- ).toBe('new sandbox');
- expect(
- fs.existsSync(path.join(final, 'pr/123/sandbox/template-assets')),
- ).toBe(false);
- expect(
- fs.readFileSync(path.join(final, 'pr/123/visual/evidence.json'), 'utf8'),
- ).toBe('same-PR visual evidence');
- expect(fs.readFileSync(path.join(final, 'pr/124/index.html'), 'utf8')).toBe(
- 'closed preview',
- );
- expect(result.targets).toMatchObject({
- storybook: {available: false},
- sandbox: {available: true},
- });
- const manifest = JSON.parse(
- fs.readFileSync(path.join(final, 'pr/123/.astryx-preview.json'), 'utf8'),
- );
- expect(manifest.targets).toMatchObject({
- storybook: {available: false},
- sandbox: {available: true},
- });
- });
-
- it('rejects attempts to republish Storybook onto Pages', async () => {
- const fx = fixture();
- const storybook = path.join(fx.root, 'storybook');
- writeFile(path.join(storybook, 'index.html'), 'untrusted storybook');
- await expect(
- publishPrPreview({
- ...context(fx, 946, 'pr-preview/123'),
- ...previewIdentity(),
- storybook,
- }),
- ).rejects.toThrow(/Storybook previews are hosted on Vercel/);
- const final = cloneRemote(fx.remote, fx.root);
- expect(fs.readFileSync(path.join(final, 'pr/123/index.html'), 'utf8')).toBe(
- 'preview',
- );
- });
-
- it('cleans stale previews without deleting visual evidence or live previews', async () => {
- const fx = fixture();
- await queuedPublish(fx, 941, 'cleanup/previews', () =>
- cleanupPreviews({
- ...context(fx, 941, 'cleanup/previews'),
- openPRs: new Set(['123', '42']),
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(fs.existsSync(path.join(final, 'abcdef1'))).toBe(false);
- expect(fs.existsSync(path.join(final, 'pr', '124'))).toBe(false);
- expect(fs.existsSync(path.join(final, 'pr', '123', 'index.html'))).toBe(
- true,
- );
- expect(
- fs.existsSync(
- path.join(final, 'pr', '123', 'sandbox', 'template-assets'),
- ),
- ).toBe(false);
- expect(
- fs.existsSync(
- path.join(
- final,
- 'pr',
- '42',
- 'visual',
- HEAD,
- '123',
- '1',
- 'evidence.json',
- ),
- ),
- ).toBe(true);
- expect(
- fs.existsSync(
- path.join(final, 'visual-gate', 'baseline', 'manifest.json'),
- ),
- ).toBe(true);
- });
-
- it('publishes vibe screenshots without disturbing previews or baselines', async () => {
- const fx = fixture();
- const screenshots = path.join(fx.root, 'screenshots');
- const manifests = path.join(fx.root, 'manifests');
- writeFile(path.join(screenshots, 'iteration', 'one.png'), png(10));
- writeJSON(path.join(manifests, 'iteration', 'manifest.json'), {
- one: {ok: true},
- });
-
- await queuedPublish(fx, 942, 'reports/vibe-screenshots', () =>
- publishVibeScreenshots({
- ...context(fx, 942, 'reports/vibe-screenshots'),
- reportId: 'vibe',
- screenshots,
- manifests,
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(
- path.join(final, 'reports', 'vibe', 'screenshots', 'one.png'),
- ),
- ).toBe(true);
- expect(
- JSON.parse(
- fs.readFileSync(
- path.join(final, 'reports', 'vibe', 'screenshots', 'manifest.json'),
- 'utf8',
- ),
- ).one.ok,
- ).toBe(true);
- expect(fs.existsSync(path.join(final, 'pr', '123', 'index.html'))).toBe(
- true,
- );
- expect(
- fs.existsSync(
- path.join(final, 'visual-gate', 'baseline', 'manifest.json'),
- ),
- ).toBe(true);
- });
-
- it('removes 58-day-old report screenshots while keeping the report page', async () => {
- const fx = fixture();
- commitReportScreenshots({
- remote: fx.remote,
- root: fx.root,
- reportId: 'vibe',
- isoDate: '2026-07-01T00:00:00Z',
- files: {
- 'old.png': png(58),
- 'manifest.json': Buffer.from('{\"old\":true}\n'),
- },
- });
-
- await queuedPublish(fx, 944, 'cleanup/previews', () =>
- cleanupPreviews({
- ...context(fx, 944, 'cleanup/previews'),
- openPRs: new Set(['123', '42']),
- now: Date.parse('2026-08-28T00:00:00Z'),
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(path.join(final, 'reports', 'vibe', 'index.html')),
- ).toBe(true);
- expect(
- fs.existsSync(path.join(final, 'reports', 'vibe', 'screenshots')),
- ).toBe(false);
- });
-
- it('compaction drops terminal legacy migration state and preserves active shared queue', async () => {
- const fx = fixture();
- const writer = cloneRemote(fx.remote, fx.root, 'compact-queue-state');
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- writeJSON(
- path.join(writer, 'visual-gate', 'publication-queue', '899.json'),
- {
- version: 1,
- repository: REPO,
- runId: 899,
- },
- );
- writeJSON(
- path.join(writer, 'visual-gate', 'publication-queue', 'holder.json'),
- {
- version: 1,
- repository: REPO,
- runId: 899,
- },
- );
- writeJSON(
- path.join(writer, '.astryx-gh-pages', 'publication-queue', '950.json'),
- {
- version: 1,
- repository: REPO,
- runId: 950,
- scope: 'pr-preview/950',
- },
- );
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', 'queue state');
- git(writer, 'push', '-q', 'origin', 'gh-pages');
-
- const turn = context(fx, 943, 'whole-tree');
- await withFixturePath(fx, async () => {
- await enqueuePublication(turn);
- await waitForPublicationTurn(turn);
- await compactGhPages({...turn, clearQueueForRun: true});
- });
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(path.join(final, 'visual-gate', 'publication-queue')),
- ).toBe(false);
- expect(
- fs.existsSync(
- path.join(final, '.astryx-gh-pages', 'publication-queue', '950.json'),
- ),
- ).toBe(true);
- expect(
- fs.existsSync(
- path.join(final, '.astryx-gh-pages', 'publication-queue', '943.json'),
- ),
- ).toBe(false);
- });
-
- it('publishes a vibe report through the shared publisher while preserving screenshots', async () => {
- const fx = fixture();
- const writer = cloneRemote(fx.remote, fx.root, 'existing-report-shots');
- git(writer, 'config', 'user.name', 'Test');
- git(writer, 'config', 'user.email', '[email protected]');
- writeFile(
- path.join(
- writer,
- 'reports',
- 'vibe-report',
- 'screenshots',
- 'existing.png',
- ),
- png(1),
- );
- writeFile(
- path.join(writer, 'reports', 'vibe-report', 'screenshots', 'same.png'),
- 'old bytes',
- );
- git(writer, 'add', '.');
- git(writer, 'commit', '-qm', 'existing screenshots');
- git(writer, 'push', '-q', 'origin', 'gh-pages');
- const source = path.join(fx.root, 'vibe-report-source');
- writeFile(path.join(source, 'index.html'), 'new report');
- writeFile(path.join(source, 'previews', 'case.html'), 'preview');
- writeFile(path.join(source, 'screenshots', 'same.png'), 'new bytes');
-
- await queuedPublish(fx, 945, 'reports/vibe-report', () =>
- publishVibeReport({
- ...context(fx, 945, 'reports/vibe-report'),
- reportId: 'vibe-report',
- source,
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.readFileSync(
- path.join(final, 'reports', 'vibe-report', 'index.html'),
- 'utf8',
- ),
- ).toBe('new report');
- expect(
- fs.existsSync(
- path.join(
- final,
- 'reports',
- 'vibe-report',
- 'screenshots',
- 'existing.png',
- ),
- ),
- ).toBe(true);
- expect(
- fs.readFileSync(
- path.join(final, 'reports', 'vibe-report', 'screenshots', 'same.png'),
- 'utf8',
- ),
- ).toBe('new bytes');
- expect(fs.existsSync(path.join(final, 'reports', 'index.html'))).toBe(true);
- });
-
- it('keeps screenshot ages stable across repeated production compactions', async () => {
- const fx = fixture();
- commitReportScreenshots({
- remote: fx.remote,
- root: fx.root,
- reportId: 'old-report',
- isoDate: '2026-08-20T00:00:00Z',
- files: {'old.png': png(58)},
- });
- commitReportScreenshots({
- remote: fx.remote,
- root: fx.root,
- reportId: 'recent-report',
- isoDate: '2026-09-15T00:00:00Z',
- files: {'recent.png': png(8)},
- });
-
- for (const [index, isoDate] of [
- '2026-08-28T00:00:00Z',
- '2026-09-04T00:00:00Z',
- '2026-09-11T00:00:00Z',
- '2026-09-18T00:00:00Z',
- ].entries()) {
- const compactTurn = context(fx, 946 + index, 'whole-tree');
- await withFixturePath(fx, () =>
- withoutGitIdentity(async () => {
- await enqueuePublication(compactTurn);
- await waitForPublicationTurn(compactTurn);
- const previousNow = process.env.ASTRYX_GH_PAGES_NOW_MS;
- process.env.ASTRYX_GH_PAGES_NOW_MS = String(Date.parse(isoDate));
- try {
- await compactGhPages({...compactTurn, clearQueueForRun: true});
- } finally {
- if (previousNow === undefined) {
- delete process.env.ASTRYX_GH_PAGES_NOW_MS;
- } else {
- process.env.ASTRYX_GH_PAGES_NOW_MS = previousNow;
- }
- }
- }),
- );
- const afterCompact = cloneRemote(
- fx.remote,
- fx.root,
- `after-compact-${index}`,
- );
- expect(
- fs.existsSync(
- path.join(afterCompact, 'visual-gate', 'publication-queue'),
- ),
- ).toBe(false);
- expect(
- fs.existsSync(
- path.join(
- afterCompact,
- 'reports',
- 'old-report',
- 'screenshots',
- 'old.png',
- ),
- ),
- ).toBe(true);
- expect(
- fs.existsSync(
- path.join(
- afterCompact,
- 'reports',
- 'recent-report',
- 'screenshots',
- 'recent.png',
- ),
- ),
- ).toBe(true);
- }
-
- await queuedPublish(fx, 951, 'cleanup/previews', () =>
- cleanupPreviews({
- ...context(fx, 951, 'cleanup/previews'),
- openPRs: new Set(['123', '42']),
- now: Date.parse('2026-09-21T00:00:00Z'),
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(
- fs.existsSync(path.join(final, 'reports', 'old-report', 'screenshots')),
- ).toBe(false);
- expect(
- fs.existsSync(
- path.join(
- final,
- 'reports',
- 'recent-report',
- 'screenshots',
- 'recent.png',
- ),
- ),
- ).toBe(true);
- expect(
- fs.existsSync(path.join(final, 'visual-gate', 'publication-queue')),
- ).toBe(false);
- });
-
- it('compacts the whole gh-pages tree without dropping scoped content', async () => {
- const fx = fixture();
- const turn = context(fx, 943, 'whole-tree');
- await withFixturePath(fx, () =>
- withoutGitIdentity(async () => {
- await enqueuePublication(turn);
- await waitForPublicationTurn(turn);
- await compactGhPages({...turn, clearQueueForRun: true});
- }),
- );
-
- const final = cloneRemote(fx.remote, fx.root);
- expect(git(final, 'rev-list', '--count', 'HEAD')).toBe('1');
- expect(fs.existsSync(path.join(final, 'pr', '123', 'index.html'))).toBe(
- true,
- );
- expect(
- fs.existsSync(
- path.join(
- final,
- 'pr',
- '42',
- 'visual',
- HEAD,
- '123',
- '1',
- 'evidence.json',
- ),
- ),
- ).toBe(true);
- expect(
- fs.existsSync(
- path.join(final, 'visual-gate', 'baseline', 'manifest.json'),
- ),
- ).toBe(true);
- expect(
- fs.existsSync(path.join(final, 'reports', 'vibe', 'index.html')),
- ).toBe(true);
- });
-});
diff --git a/.github/scripts/lib/pr-preview.mjs b/.github/scripts/lib/pr-preview.mjs
index e096a807f9..1158f9f538 100644
--- a/.github/scripts/lib/pr-preview.mjs
+++ b/.github/scripts/lib/pr-preview.mjs
@@ -13,14 +13,12 @@ import {
} from './vercel-preview.mjs';
export const PR_ANALYSIS_MARKER = '<!-- astryx-pr-analysis -->';
-export const PREVIEW_RESULT_VERSION = 1;
function headMarker(sha) {
return `<!-- astryx-pr-head:${sha} -->`;
}
const FULL_SHA = /^[0-9a-f]{40}$/;
-const SHA256 = /^[0-9a-f]{64}$/;
const REPOSITORY = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/;
const GENERATOR = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
@@ -243,161 +241,6 @@ export async function confirmSourceRunIdentity({
return actual;
}
-function targetPaths(prNumber) {
- return {
- storybook: `pr/${prNumber}/`,
- sandbox: `pr/${prNumber}/sandbox/`,
- };
-}
-
-function resultIdentity(identity) {
- return {
- repository: repository(identity.baseRepository, 'base repository'),
- pullRequest: {
- number: positiveInteger(identity.prNumber, 'pull request number'),
- headSha: fullSha(identity.headSha, 'pull request head'),
- headRef: nonempty(identity.headRef, 'pull request branch'),
- headRepository: repository(
- identity.headRepository,
- 'pull request head repository',
- ),
- headRepositoryId: nonempty(
- identity.headRepositoryId,
- 'pull request head repository id',
- ),
- },
- sourceRun: {
- id: positiveInteger(identity.sourceRunId, 'source run id'),
- attempt: positiveInteger(identity.sourceRunAttempt, 'source run attempt'),
- conclusion: String(identity.sourceConclusion ?? ''),
- },
- };
-}
-
-export function createUnavailableDeploymentResult(identity, reason) {
- const normalized = resultIdentity(identity);
- const paths = targetPaths(normalized.pullRequest.number);
- return {
- version: PREVIEW_RESULT_VERSION,
- status: 'unavailable',
- reason: nonempty(reason, 'unavailable reason'),
- ...normalized,
- pagesCommit: null,
- targets: {
- storybook: {
- available: false,
- path: paths.storybook,
- indexSha256: null,
- },
- sandbox: {
- available: false,
- path: paths.sandbox,
- indexSha256: null,
- },
- },
- };
-}
-
-export function createPreviewPublicationManifest(
- identity,
- {storybookIndexSha256 = null, sandboxIndexSha256 = null} = {},
-) {
- const normalized = resultIdentity(identity);
- const paths = targetPaths(normalized.pullRequest.number);
- const target = (targetPath, digest) => {
- if (digest !== null && !SHA256.test(String(digest))) {
- refuse('preview index digest is invalid');
- }
- return {
- available: digest !== null,
- path: targetPath,
- indexSha256: digest,
- };
- };
- return {
- version: PREVIEW_RESULT_VERSION,
- ...normalized,
- targets: {
- storybook: target(paths.storybook, storybookIndexSha256),
- sandbox: target(paths.sandbox, sandboxIndexSha256),
- },
- };
-}
-
-export function createPublishedDeploymentResult(
- identity,
- {storybookIndexSha256 = null, sandboxIndexSha256 = null, pagesCommit},
-) {
- return {
- ...createPreviewPublicationManifest(identity, {
- storybookIndexSha256,
- sandboxIndexSha256,
- }),
- status: 'published',
- reason: null,
- pagesCommit: fullSha(pagesCommit, 'gh-pages commit'),
- };
-}
-
-export function writeDeploymentResult(file, value) {
- fs.mkdirSync(path.dirname(path.resolve(file)), {recursive: true});
- fs.writeFileSync(file, `${JSON.stringify(value, null, 2)}\n`);
-}
-
-export function validateDeploymentResult(value, expected) {
- const identity = resultIdentity(expected);
- if (value?.version !== PREVIEW_RESULT_VERSION) {
- refuse('deployment result version is invalid');
- }
- if (!['published', 'unavailable'].includes(value.status)) {
- refuse('deployment result status is invalid');
- }
- if (value.repository !== identity.repository) {
- refuse('deployment base repository does not match');
- }
- for (const [key, expectedValue] of Object.entries(identity.pullRequest)) {
- if (String(value.pullRequest?.[key]) !== String(expectedValue)) {
- refuse(`deployment pull request ${key} does not match`);
- }
- }
- for (const [key, expectedValue] of Object.entries(identity.sourceRun)) {
- if (String(value.sourceRun?.[key]) !== String(expectedValue)) {
- refuse(`deployment source run ${key} does not match`);
- }
- }
-
- const paths = targetPaths(identity.pullRequest.number);
- for (const name of ['storybook', 'sandbox']) {
- const target = value.targets?.[name];
- if (target?.path !== paths[name] || typeof target.available !== 'boolean') {
- refuse(`deployment ${name} target is invalid`);
- }
- if (target.available) {
- if (
- value.status !== 'published' ||
- !SHA256.test(target.indexSha256 ?? '')
- ) {
- refuse(`deployment ${name} proof is invalid`);
- }
- if (identity.sourceRun.conclusion !== 'success') {
- refuse(`deployment ${name} cannot be available for failed source CI`);
- }
- } else if (target.indexSha256 !== null) {
- refuse(`deployment ${name} has a digest without availability`);
- }
- }
- if (value.status === 'published') {
- fullSha(value.pagesCommit, 'deployment gh-pages commit');
- } else {
- if (value.pagesCommit !== null)
- refuse('unavailable deployment has a commit');
- if (value.targets.storybook.available || value.targets.sandbox.available) {
- refuse('unavailable deployment advertises a target');
- }
- }
- return value;
-}
-
export function validateAnalysisMetadata(metadata, identity) {
if (String(metadata?.prNumber) !== String(identity.prNumber)) {
refuse('analysis pull request does not match');
@@ -446,7 +289,7 @@ function previewState(storybook, sandbox) {
}
// Both preview links come from one verified exact-head Vercel deployment.
-// Pages publication may continue independently, but is never a PR link.
+// No branch-backed preview is considered a link source.
function safeCurrentBody({
identity,
runUrl,
@@ -488,18 +331,6 @@ function trustedAnalysis({analysisPath, metadataPath, identity, core}) {
}
}
-function trustedDeployment({deploymentResultPath, identity, core}) {
- try {
- if (!fs.existsSync(deploymentResultPath)) return null;
- return validateDeploymentResult(readJSON(deploymentResultPath), identity);
- } catch (error) {
- core.warning(
- `Ignoring untrusted or stale Sandbox result: ${error.message}`,
- );
- return null;
- }
-}
-
async function allComments(github, owner, repo, prNumber) {
return github.paginate(github.rest.issues.listComments, {
owner,
@@ -517,10 +348,7 @@ export async function reconcilePrComment({
analysisPath = 'pr-analysis/analysis.json',
metadataPath = 'pr-analysis/pr-meta.json',
a11yPath = 'a11y/a11y-report.json',
- deploymentResultPath = 'preview-deployment/preview-deployment.json',
visualPath = 'trusted-visual/verdict.json',
- visualPublished = false,
- visualReportPath = '',
createIfMissing = true,
fallbackMessage,
lookupPreview = resolveVercelPreview,
@@ -571,9 +399,6 @@ export async function reconcilePrComment({
})) === candidateOrigin
? candidateOrigin
: null;
- // Continue checking the trusted Pages result for stale evidence, but never
- // use Pages as a preview-link fallback.
- trustedDeployment({deploymentResultPath, identity, core});
const storybook = previewOrigin !== null;
const sandbox = storybook;
const comments = await allComments(github, owner, repo, identity.prNumber);
@@ -604,20 +429,7 @@ export async function reconcilePrComment({
analysisPath,
'--a11y',
resolvedA11yPath,
- ...(fs.existsSync(visualPath)
- ? [
- '--visual',
- visualPath,
- ...(visualPublished && visualReportPath
- ? [
- '--visual-report-url',
- `https://${owner}.github.io/${repo}/${visualReportPath}/`,
- '--visual-image-url',
- `https://raw.githubusercontent.com/${owner}/${repo}/gh-pages/${visualReportPath}/`,
- ]
- : []),
- ]
- : []),
+ ...(fs.existsSync(visualPath) ? ['--visual', visualPath] : []),
...(storybook ? ['--storybook-url', `${previewOrigin}/storybook/`] : []),
...(sandbox ? ['--sandbox-url', `${previewOrigin}/sandbox/`] : []),
'--preview-state',
@@ -769,8 +581,8 @@ export async function reconcileEarlyPreviewComment({
}
}
- // Replace an older same-head Pages Sandbox URL without dropping CI, a11y,
- // or immutable visual evidence in the surrounding report.
+ // Replace older same-head preview URLs without dropping CI, a11y, or visual
+ // evidence in the surrounding report.
body = body
.replaceAll(legacySandboxURL, `${origin}/sandbox/`)
.replace(/^> \*\*Preview availability:\*\*[^\n]*\n\n/m, '');
diff --git a/.github/scripts/lib/pr-preview.test.mjs b/.github/scripts/lib/pr-preview.test.mjs
index f2d01545d3..046274f902 100644
--- a/.github/scripts/lib/pr-preview.test.mjs
+++ b/.github/scripts/lib/pr-preview.test.mjs
@@ -10,19 +10,14 @@ import yaml from 'yaml';
import {
PR_ANALYSIS_MARKER,
- createPublishedDeploymentResult,
- createUnavailableDeploymentResult,
reconcileEarlyPreviewComment,
reconcilePrComment,
resolveWorkflowRunPullRequest,
validateAnalysisMetadata,
- writeDeploymentResult,
} from './pr-preview.mjs';
const HEAD = 'a'.repeat(40);
const BASE = 'b'.repeat(40);
-const PAGES = 'c'.repeat(40);
-const INDEX = 'd'.repeat(64);
const VERCEL_ORIGIN = 'https://astryx-3s4xgbci4-fbopensource.vercel.app';
const ROOT = path.resolve(import.meta.dirname, '../../..');
const REQUIRE = createRequire(import.meta.url);
@@ -156,14 +151,13 @@ function githubFixture({value = identity(), comments = []} = {}) {
return {github, state};
}
-function fixture(value = identity(), {analysis = true, deployment} = {}) {
+function fixture(value = identity(), {analysis = true} = {}) {
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'pr-preview-'));
roots.push(root);
const paths = {
analysis: path.join(root, 'analysis.json'),
metadata: path.join(root, 'pr-meta.json'),
a11y: path.join(root, 'a11y.json'),
- deployment: path.join(root, 'preview-deployment.json'),
visual: path.join(root, 'missing-visual.json'),
};
if (analysis) {
@@ -194,21 +188,11 @@ function fixture(value = identity(), {analysis = true, deployment} = {}) {
paths.a11y,
'{"components":{},"summary":{"componentsAudited":0,"totalViolations":0}}',
);
- if (deployment) writeDeploymentResult(paths.deployment, deployment);
return paths;
}
-function published(value, available = ['sandbox']) {
- return createPublishedDeploymentResult(value, {
- storybookIndexSha256: available.includes('storybook') ? INDEX : null,
- sandboxIndexSha256: available.includes('sandbox') ? INDEX : null,
- pagesCommit: PAGES,
- });
-}
-
async function reconcile({
value = identity(),
- deployment,
previewAvailable = false,
analysis = true,
comments = [],
@@ -217,7 +201,7 @@ async function reconcile({
fallbackMessage,
execute,
} = {}) {
- const paths = fixture(value, {analysis, deployment});
+ const paths = fixture(value, {analysis});
const {github, state} = githubFixture({
value: githubFixtureValue,
comments,
@@ -234,7 +218,6 @@ async function reconcile({
analysisPath: paths.analysis,
metadataPath: paths.metadata,
a11yPath: paths.a11y,
- deploymentResultPath: paths.deployment,
lookupPreview: async () => (previewAvailable ? VERCEL_ORIGIN : null),
probePreview: async () => true,
visualPath: paths.visual,
@@ -402,7 +385,6 @@ describe('trusted PR preview identity', () => {
expect(writeCapableJobs).toEqual([
'preview-comment',
'spec-only-reconcile',
- 'deploy-preview',
'comment',
]);
for (const name of writeCapableJobs) {
@@ -504,42 +486,23 @@ describe('analysis metadata compatibility', () => {
describe('PR comment preview reconciliation', () => {
it.each([
- ['neither ready', undefined, false],
- ['exact-head Vercel ready', undefined, true],
- ['Pages Sandbox only is not proof', published(identity()), false],
- ['Vercel ready with independent Pages result', published(identity()), true],
- [
- 'obsolete Pages Storybook proof',
- published(identity(), ['storybook']),
- false,
- ],
- [
- 'Pages failure with ready Vercel',
- createUnavailableDeploymentResult(identity(), 'publisher-failed'),
- true,
- ],
- ])(
- 'shows both or neither exact-head links: %s',
- async (_label, deployment, ready) => {
- const {result} = await reconcile({deployment, previewAvailable: ready});
- expect(result.body.includes('View Storybook for this PR')).toBe(ready);
- expect(result.body.includes('View Sandbox for this PR')).toBe(ready);
- expect(result.body.includes('> **Preview availability:**')).toBe(!ready);
- if (ready) {
- expect(result.body).toContain(`${VERCEL_ORIGIN}/storybook/`);
- expect(result.body).toContain(`${VERCEL_ORIGIN}/sandbox/`);
- }
- expect(result.body).not.toContain(
- 'https://facebook.github.io/astryx/pr/5697/sandbox/',
- );
- },
- );
+ ['not ready', false],
+ ['exact-head Vercel ready', true],
+ ])('shows both or neither exact-head links: %s', async (_label, ready) => {
+ const {result} = await reconcile({previewAvailable: ready});
+ expect(result.body.includes('View Storybook for this PR')).toBe(ready);
+ expect(result.body.includes('View Sandbox for this PR')).toBe(ready);
+ expect(result.body.includes('> **Preview availability:**')).toBe(!ready);
+ if (ready) {
+ expect(result.body).toContain(`${VERCEL_ORIGIN}/storybook/`);
+ expect(result.body).toContain(`${VERCEL_ORIGIN}/sandbox/`);
+ }
+ expect(result.body).not.toContain('facebook.github.io/astryx/pr/');
+ });
it('keeps current trustworthy analysis when source CI fails', async () => {
const value = identity({sourceConclusion: 'failure'});
- const deployment = {status: 'unavailable', reason: 'source-failed'};
-
- const {result} = await reconcile({value, deployment});
+ const {result} = await reconcile({value});
expect(result.body).toContain('Modified Components');
expect(result.body).toContain('Card');
@@ -620,7 +583,6 @@ describe('PR comment preview reconciliation', () => {
};
const {result, core} = await reconcile({
- deployment: published(identity()),
comments: [stale],
execute: () => {
throw new Error('malformed analysis');
@@ -640,7 +602,7 @@ describe('PR comment preview reconciliation', () => {
it('updates one same-PR comment across repeated source attempts', async () => {
const first = identity();
const harness = githubFixture({value: first});
- const firstPaths = fixture(first, {deployment: published(first)});
+ const firstPaths = fixture(first);
const core = {info: vi.fn(), warning: vi.fn()};
const common = {
github: harness.github,
@@ -659,7 +621,6 @@ describe('PR comment preview reconciliation', () => {
analysisPath: firstPaths.analysis,
metadataPath: firstPaths.metadata,
a11yPath: firstPaths.a11y,
- deploymentResultPath: firstPaths.deployment,
});
const second = identity({sourceRunAttempt: 2});
@@ -667,16 +628,13 @@ describe('PR comment preview reconciliation', () => {
data: sourceRun(second),
});
harness.github.rest.pulls.get.mockResolvedValue({data: pull(second)});
- const secondPaths = fixture(second, {
- deployment: published(second, ['storybook']),
- });
+ const secondPaths = fixture(second, {});
await reconcilePrComment({
...common,
expectedIdentity: second,
analysisPath: secondPaths.analysis,
metadataPath: secondPaths.metadata,
a11yPath: secondPaths.a11y,
- deploymentResultPath: secondPaths.deployment,
visualPath: secondPaths.visual,
});
@@ -692,24 +650,10 @@ describe('PR comment preview reconciliation', () => {
expect(harness.state.listedIssues).toEqual([5697, 5697]);
});
- it.each([
- ['wrong PR', {prNumber: 9999}],
- ['wrong head', {headSha: 'e'.repeat(40)}],
- ['wrong repository', {headRepository: 'someone/astryx'}],
- ])(
- 'never treats an old Pages result with the %s as Vercel preview proof',
- async (_label, overrides) => {
- const deployment = published(identity(overrides));
- const {result} = await reconcile({deployment, previewAvailable: false});
- expect(result.body).not.toContain('View Storybook for this PR');
- expect(result.body).not.toContain('View Sandbox for this PR');
- },
- );
-
it('does not mutate any PR after the source identity becomes stale', async () => {
const expected = identity();
const current = identity({headSha: 'f'.repeat(40)});
- const paths = fixture(expected, {deployment: published(expected)});
+ const paths = fixture(expected);
const {github, state} = githubFixture({value: current});
await expect(
@@ -724,7 +668,6 @@ describe('PR comment preview reconciliation', () => {
analysisPath: paths.analysis,
metadataPath: paths.metadata,
a11yPath: paths.a11y,
- deploymentResultPath: paths.deployment,
visualPath: paths.visual,
}),
).rejects.toThrow(/headSha does not match/);
@@ -764,7 +707,7 @@ describe('PR comment preview reconciliation', () => {
it('does not emit links for dispatch without a PR-backed source run', async () => {
const value = identity();
- const paths = fixture(value, {deployment: published(value)});
+ const paths = fixture(value);
const {github, state} = githubFixture({value});
github.rest.actions.getWorkflowRun.mockResolvedValue({
data: {...sourceRun(value), event: 'workflow_dispatch'},
@@ -782,7 +725,6 @@ describe('PR comment preview reconciliation', () => {
analysisPath: paths.analysis,
metadataPath: paths.metadata,
a11yPath: paths.a11y,
- deploymentResultPath: paths.deployment,
visualPath: paths.visual,
}),
).rejects.toThrow(/not backed by a pull request/);
@@ -790,11 +732,10 @@ describe('PR comment preview reconciliation', () => {
expect(state.updated).toHaveLength(0);
});
- it('renders the current successful path from exact publisher proof', async () => {
+ it('renders the current successful path from exact Vercel proof', async () => {
const value = identity();
const {result, state} = await reconcile({
value,
- deployment: published(value),
previewAvailable: true,
});
@@ -808,7 +749,7 @@ describe('PR comment preview reconciliation', () => {
it('never advertises either link when one preview route probe fails', async () => {
const value = identity();
- const paths = fixture(value, {deployment: published(value)});
+ const paths = fixture(value);
const {github, state} = githubFixture({value});
const context = {
repo: {owner: 'facebook', repo: 'astryx'},
@@ -886,7 +827,7 @@ describe('PR comment preview reconciliation', () => {
it('posts preview links before CI and later enriches the same report', async () => {
const value = identity();
- const paths = fixture(value, {deployment: published(value)});
+ const paths = fixture(value);
const {github, state} = githubFixture({value});
const early = () =>
reconcileEarlyPreviewComment({
@@ -917,7 +858,6 @@ describe('PR comment preview reconciliation', () => {
analysisPath: paths.analysis,
metadataPath: paths.metadata,
a11yPath: paths.a11y,
- deploymentResultPath: paths.deployment,
visualPath: paths.visual,
lookupPreview: async () => VERCEL_ORIGIN,
probePreview: async () => true,
@@ -933,7 +873,6 @@ describe('PR comment preview reconciliation', () => {
const value = identity();
const {result, github, state} = await reconcile({
value,
- deployment: published(value),
previewAvailable: false,
});
expect(result.body).toContain('Modified Components');
@@ -995,7 +934,6 @@ describe('PR comment preview reconciliation', () => {
const value = identity();
const {github, state} = await reconcile({
value,
- deployment: published(value),
previewAvailable: true,
});
const prior = state.comments[0].body;
diff --git a/.github/scripts/lib/visual-format.test.mjs b/.github/scripts/lib/visual-format.test.mjs
index c27451fec8..d5ba7f1719 100644
--- a/.github/scripts/lib/visual-format.test.mjs
+++ b/.github/scripts/lib/visual-format.test.mjs
@@ -247,17 +247,17 @@ describe('buildVisualSection', () => {
},
],
}),
- 'https://facebook.github.io/astryx/pr/123/visual/head/run/',
- 'https://raw.githubusercontent.com/facebook/astryx/gh-pages/pr/123/visual/head/run/',
+ 'https://evidence.example/pr/123/visual/head/run/',
+ 'https://evidence.example/pr/123/visual/head/run/',
);
expect(section).toContain(
- 'https://raw.githubusercontent.com/facebook/astryx/gh-pages/pr/123/visual/head/run/before/core-button--primary__y2k-light.png',
+ 'https://evidence.example/pr/123/visual/head/run/before/core-button--primary__y2k-light.png',
);
expect(section).toContain(
- 'raw.githubusercontent.com/facebook/astryx/gh-pages/pr/123/visual/head/run/after/core-button--primary__y2k-light.png',
+ 'https://evidence.example/pr/123/visual/head/run/after/core-button--primary__y2k-light.png',
);
expect(section).toContain(
- 'raw.githubusercontent.com/facebook/astryx/gh-pages/pr/123/visual/head/run/diff/core-button--primary__y2k-light.png',
+ 'https://evidence.example/pr/123/visual/head/run/diff/core-button--primary__y2k-light.png',
);
expect(section).toContain('<th>Before</th><th>After</th><th>Diff</th>');
expect(section).toContain('Record that review on the PR');
diff --git a/.github/scripts/pages-landing.test.mjs b/.github/scripts/pages-landing.test.mjs
new file mode 100644
index 0000000000..4ab003ee97
--- /dev/null
+++ b/.github/scripts/pages-landing.test.mjs
@@ -0,0 +1,135 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file GitHub Pages compatibility landing contracts.
+ * @input The one-page source and its direct Pages workflow.
+ * @output Route recovery, accessibility, canonical-link, and ownership checks.
+ * @position Prevents the legacy origin from becoming a second maintained site.
+ */
+
+import fs from 'node:fs';
+import path from 'node:path';
+
+import {JSDOM} from 'jsdom';
+import {describe, expect, it} from 'vitest';
+import yaml from 'yaml';
+
+const ROOT = path.resolve(import.meta.dirname, '../..');
+const PAGE = fs.readFileSync(
+ path.join(ROOT, '.github/pages/index.html'),
+ 'utf8',
+);
+
+function render(url) {
+ return new JSDOM(PAGE, {runScripts: 'dangerously', url}).window.document;
+}
+
+function luminance(hex) {
+ const channels = hex
+ .match(/[0-9a-f]{2}/gi)
+ .map(channel => Number.parseInt(channel, 16) / 255)
+ .map(channel =>
+ channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4,
+ );
+ return 0.2126 * channels[0] + 0.7152 * channels[1] + 0.0722 * channels[2];
+}
+
+function contrast(foreground, background) {
+ const values = [luminance(foreground), luminance(background)].sort(
+ (a, b) => b - a,
+ );
+ return (values[0] + 0.05) / (values[1] + 0.05);
+}
+
+describe('GitHub Pages compatibility landing', () => {
+ it('keeps primary text and its caption above WCAG AA contrast', () => {
+ const background = '#4b57b5';
+ expect(PAGE).toContain(`background: ${background}`);
+ expect(contrast('#ffffff', background)).toBeGreaterThanOrEqual(4.5);
+ // The caption uses opacity: 0.8, so test the composited foreground too.
+ expect(contrast('#dbddf0', background)).toBeGreaterThanOrEqual(4.5);
+ });
+
+ it('labels the canonical docsite as primary and exposes both stable apps', () => {
+ const document = render('https://facebook.github.io/astryx/');
+ expect(document.querySelector('h1')?.textContent).toBe('Astryx has moved');
+ expect(document.querySelector('nav')?.getAttribute('aria-label')).toBe(
+ 'Astryx destinations',
+ );
+ expect(document.querySelector('a.primary')?.href).toBe(
+ 'https://astryx.atmeta.com/',
+ );
+ expect(document.querySelector('#storybook')?.href).toBe(
+ 'https://astryx.atmeta.com/storybook/',
+ );
+ expect(document.querySelector('#sandbox')?.href).toBe(
+ 'https://astryx.atmeta.com/sandbox/',
+ );
+ expect(document.querySelector('link[rel="canonical"]')?.href).toBe(
+ 'https://astryx.atmeta.com/',
+ );
+ expect(document.querySelector('meta[name="robots"]')?.content).toBe(
+ 'noindex, follow',
+ );
+ });
+
+ it.each([
+ [
+ 'Storybook',
+ 'https://facebook.github.io/astryx/storybook/?path=/story/core-button--primary#docs',
+ '#storybook',
+ 'https://astryx.atmeta.com/storybook/?path=/story/core-button--primary#docs',
+ ],
+ [
+ 'Sandbox',
+ 'https://facebook.github.io/astryx/sandbox/templates/login-sso/?theme=dark#preview',
+ '#sandbox',
+ 'https://astryx.atmeta.com/sandbox/templates/login-sso/?theme=dark#preview',
+ ],
+ ])(
+ 'preserves an old %s deep link in its recovery destination',
+ (_name, oldUrl, selector, expected) => {
+ expect(render(oldUrl).querySelector(selector)?.href).toBe(expected);
+ },
+ );
+
+ it('does not guess a destination for unrelated old paths', () => {
+ const document = render(
+ 'https://facebook.github.io/astryx/reports/old-run/?view=details#failure',
+ );
+ expect(document.querySelector('#storybook')?.href).toBe(
+ 'https://astryx.atmeta.com/storybook/',
+ );
+ expect(document.querySelector('#sandbox')?.href).toBe(
+ 'https://astryx.atmeta.com/sandbox/',
+ );
+ });
+
+ it('publishes the same source as index and 404 without branch fanout', () => {
+ const workflow = yaml.parse(
+ fs.readFileSync(
+ path.join(ROOT, '.github/workflows/pages-deploy.yml'),
+ 'utf8',
+ ),
+ );
+ expect(workflow.on.workflow_run).toBeUndefined();
+ expect(workflow.on.push.branches).toEqual(['main']);
+ expect(workflow.concurrency).toEqual({
+ group: 'github-pages-landing',
+ 'cancel-in-progress': true,
+ });
+ expect(Object.keys(workflow.jobs)).toEqual(['deploy']);
+ const command = workflow.jobs.deploy.steps
+ .map(step => step.run ?? '')
+ .join('\n');
+ expect(command).toContain(
+ 'cp .github/pages/index.html pages-dist/index.html',
+ );
+ expect(command).toContain(
+ 'cp .github/pages/index.html pages-dist/404.html',
+ );
+ expect(command).not.toContain('storybook');
+ expect(command).not.toContain('sandbox');
+ expect(command).not.toContain('gh-pages');
+ });
+});
diff --git a/.github/scripts/release-check-workflow.test.mjs b/.github/scripts/release-check-workflow.test.mjs
index 49d3ca195a..81dbc7ae04 100644
--- a/.github/scripts/release-check-workflow.test.mjs
+++ b/.github/scripts/release-check-workflow.test.mjs
@@ -515,7 +515,7 @@ describe('full release scope without PR metadata or maintenance writes', () => {
);
});
- it('does not run candidate capture, validation, or publication during release checks', () => {
+ it('does not run candidate capture or validation during release checks', () => {
for (const name of [
'Build canonical maintenance Storybook',
'Capture canonical visual baseline',
@@ -524,7 +524,7 @@ describe('full release scope without PR metadata or maintenance writes', () => {
expect(runs(step('pr-visual', name)), name).toBe(false);
}
expect(runs(jobs['maintenance-request'])).toBe(false);
- expect(runs(jobs['baseline-publication'])).toBe(false);
+ expect(jobs).not.toHaveProperty('baseline-publication');
expect(runs(step('pr-visual', 'Download Storybook artifact'))).toBe(true);
const visual = step('pr-visual', 'Run full release visual check');
expect(visual.run).toContain('gate.mjs release');
diff --git a/.github/scripts/visual-gate/README.md b/.github/scripts/visual-gate/README.md
index a51076c6f3..fb25dbc98a 100644
--- a/.github/scripts/visual-gate/README.md
+++ b/.github/scripts/visual-gate/README.md
@@ -92,16 +92,18 @@ Maintenance uses **CI**, not another workflow. Dispatch from `main`:
2. Review that run's report and capture. A browser-version mismatch can make the
comparison fail while still producing a complete candidate capture; inspect
the rendering rather than accepting it merely to clear a check.
-3. Dispatch CI again with `operation=promote`, the reviewed `run_id` and
- `run_attempt`, selected `keys` (or `all`), and an explicit `reason`. Choose
- `prune` only when the full-plan removal checks permit it.
-
-Promotion verifies the source maintenance run, attempt, and artifact identity,
-then uses the shared serialized gh-pages publisher. It never recaptures or
-promotes automatically after merge. The existing accept/prune validation and
-decision log remain the write boundary. Partial captures cannot become complete
-baseline candidates. Bootstrap, coverage changes, and browser refreshes use this
-same path; none is a release gate.
+3. Download that exact run/attempt's validated candidate artifact. In a dedicated
+ branch, run `gate.mjs accept` with the checked-in baseline, candidate directory,
+ reviewed keys (or `all`), and an explicit reason; use `--prune` only when the
+ full-plan removal checks permit it. Open a normal pull request containing only
+ the reviewed baseline delta.
+
+The pull request is the publication and decision record. `gate.mjs accept`
+revalidates the candidate verdict and hashes before writing the compact index and
+selected PNGs. It never recaptures, promotes automatically after merge, or writes
+to GitHub Pages. Partial captures cannot become complete baseline candidates.
+Bootstrap, coverage changes, and browser refreshes use this same path; none is a
+release gate.
The shared promotion boundary accepts `pass` or `changed`. A failed comparison
is eligible only for the validated browser-only refresh: every baseline and
@@ -114,16 +116,16 @@ skipped, unknown, partial, or otherwise failed evidence is refused before writes
```bash
pnpm build && pnpm -F @astryxdesign/storybook build
pnpm visual:plan
-pnpm visual:check --baseline .visual-baseline --out .visual-run
+pnpm visual:check --baseline .github/visual-baseline --out .visual-run
open .visual-run/report/index.html
```
CLI exit codes: `0` clean, `1` crashed, `2` changed. `gate.mjs release` selects the
closed full canonical plan used by broad PRs, release checks, and maintenance.
-`gate.mjs accept` is an explicit local write; CI baseline publication uses it
-inside the serialized publication turn. Local baselines must stay local:
-platform and browser differences make them incomparable with the pinned CI
-baseline.
+`gate.mjs accept` is an explicit local write. A reviewed baseline refresh is
+committed through a normal pull request; local captures must not overwrite the
+checked-in baseline without that review because platform and browser differences
+can make them incomparable.
## Determinism and storage
@@ -132,11 +134,13 @@ state, and blocks off-origin requests. Storybook's channel selects theme and
color mode. Each story starts in the default light theme before switching
variants. Canonical PNG encoding avoids treating encoding metadata as pixels.
-The baseline remains at `gh-pages:visual-gate/baseline/`. Immutable PR reports
-remain beside the preview at `pr/<number>/visual/<head>/<run>/<attempt>/`.
-The shared publisher, deployment, cleanup, and compaction must preserve the
-baseline and publication queue. Do not delete the `visual-gate/` subtree when
-retiring workflows; it still contains live baseline data and queue state.
+The baseline is versioned at `.github/visual-baseline/`. Its move into the
+repository and removal of the old branch writer belong in one change: splitting
+that ownership transfer would temporarily leave either two authoritative write
+paths or no durable comparison oracle. Pull-request reports, including their
+before/after/diff images, remain GitHub Actions artifacts for 30 days. The
+release check and baseline-candidate artifacts retain their existing independent
+lifetimes. GitHub Pages is not evidence storage.
## Drift guard
diff --git a/.github/scripts/visual-gate/gate-accept.test.mjs b/.github/scripts/visual-gate/gate-accept.test.mjs
index e15cebc7db..98b16c14cd 100644
--- a/.github/scripts/visual-gate/gate-accept.test.mjs
+++ b/.github/scripts/visual-gate/gate-accept.test.mjs
@@ -2,7 +2,7 @@
// `gate.mjs accept` is the promotion boundary: the one command that writes
// baseline files. These tests drive the real command against a scratch capture
-// and baseline, so what they prove is what CI's baseline-publication job runs.
+// and baseline, matching the local preparation for a reviewed baseline PR.
import {spawnSync} from 'node:child_process';
import {createHash} from 'node:crypto';
diff --git a/.github/scripts/visual-gate/lib/baseline-publication-lock.mjs b/.github/scripts/visual-gate/lib/baseline-publication-lock.mjs
deleted file mode 100644
index ca2c19ca12..0000000000
--- a/.github/scripts/visual-gate/lib/baseline-publication-lock.mjs
+++ /dev/null
@@ -1,429 +0,0 @@
-#!/usr/bin/env node
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-// Durable FIFO publication lock shared by automatic acceptance promotion and
-// manual baseline promotion. GitHub Actions concurrency is not used here:
-// even with cancel-in-progress:false it keeps only one pending run and cancels
-// an older pending publisher when a third arrives.
-
-import {spawnSync} from 'node:child_process';
-import fs from 'node:fs';
-import os from 'node:os';
-import path from 'node:path';
-import {fileURLToPath} from 'node:url';
-
-const QUEUE_REL = path.join('visual-gate', 'publication-queue');
-const HOLDER_NAME = 'holder.json';
-const RUN_ID = /^[1-9][0-9]*$/;
-
-function refuse(message) {
- throw new Error(`baseline publication lock refused: ${message}`);
-}
-
-function run(command, args, options = {}) {
- const result = spawnSync(command, args, {
- encoding: 'utf8',
- ...options,
- });
- if (result.status !== 0) {
- refuse(
- `${command} ${args[0] ?? ''} failed: ${
- result.stderr?.trim() ||
- result.stdout?.trim() ||
- `exit ${result.status}`
- }`,
- );
- }
- return result.stdout.trim();
-}
-
-function git(cwd, ...args) {
- return run('git', ['-C', cwd, ...args]);
-}
-
-function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
-}
-
-function validateIdentity(repository, runId) {
- if (typeof repository !== 'string' || !/^[^/]+\/[^/]+$/.test(repository)) {
- refuse('repository identity is invalid');
- }
- if (!Number.isSafeInteger(runId) || runId <= 0) {
- refuse('current run id is invalid');
- }
-}
-
-function validTicket(value, repository, runId) {
- return (
- Number.isSafeInteger(runId) &&
- runId > 0 &&
- value?.version === 1 &&
- value.repository === repository &&
- value.runId === runId
- );
-}
-
-export function orderedTickets(entries, repository) {
- if (!Array.isArray(entries)) refuse('queue entries are invalid');
- const tickets = [];
- const seen = new Set();
- for (const entry of entries) {
- if (!RUN_ID.test(entry?.name ?? '')) continue;
- const runId = Number(entry.name);
- if (!validTicket(entry.value, repository, runId)) {
- refuse(`queue ticket ${entry.name} has invalid identity`);
- }
- if (seen.has(runId)) refuse('queue repeats a run id');
- seen.add(runId);
- tickets.push(entry.value);
- }
- return tickets.sort((a, b) => a.runId - b.runId);
-}
-
-export function publicationBlockers(entries, repository, currentRunId) {
- validateIdentity(repository, currentRunId);
- const tickets = orderedTickets(entries, repository);
- if (!tickets.some(ticket => ticket.runId === currentRunId)) {
- refuse(`queue ticket for run ${currentRunId} is missing`);
- }
- return tickets.filter(ticket => ticket.runId < currentRunId);
-}
-
-export function isTerminalRun(status) {
- return status === 'completed' || status === 'missing';
-}
-
-function readJSON(file) {
- try {
- return JSON.parse(fs.readFileSync(file, 'utf8'));
- } catch {
- return null;
- }
-}
-
-function queueState(checkout, repository) {
- const root = path.join(checkout, QUEUE_REL);
- if (!fs.existsSync(root)) return {entries: [], invalid: [], holder: null};
- const entries = [];
- const invalid = [];
- let holder = null;
- for (const entry of fs.readdirSync(root, {withFileTypes: true})) {
- if (!entry.isFile() || !entry.name.endsWith('.json')) continue;
- const value = readJSON(path.join(root, entry.name));
- if (entry.name === HOLDER_NAME) {
- if (!validTicket(value, repository, value?.runId)) {
- refuse('publication holder has invalid identity');
- }
- holder = value;
- continue;
- }
- const name = entry.name.slice(0, -'.json'.length);
- if (!RUN_ID.test(name)) {
- invalid.push(entry.name);
- continue;
- }
- const runId = Number(name);
- if (!validTicket(value, repository, runId)) {
- invalid.push(entry.name);
- continue;
- }
- entries.push({name, value});
- }
- return {entries, invalid, holder};
-}
-
-function checkoutPages({repository, token, tempRoot}) {
- const checkout = fs.mkdtempSync(path.join(tempRoot, 'baseline-queue-'));
- const url =
- process.env.ASTRYX_BASELINE_QUEUE_URL ??
- `https://x-access-token:${token}@github.com/${repository}.git`;
- run('git', [
- 'clone',
- '--quiet',
- '--depth=1',
- '--filter=blob:none',
- '--sparse',
- '--single-branch',
- '--branch',
- 'gh-pages',
- url,
- checkout,
- ]);
- git(checkout, 'sparse-checkout', 'set', QUEUE_REL);
- return checkout;
-}
-
-async function mutateQueue({repository, token, tempRoot, mutate}) {
- for (let attempt = 1; attempt <= 10; attempt += 1) {
- const checkout = checkoutPages({repository, token, tempRoot});
- try {
- const mutation = mutate(checkout);
- if (!mutation.changed) return mutation.value;
- git(checkout, 'config', 'user.name', 'github-actions[bot]');
- git(
- checkout,
- 'config',
- 'user.email',
- 'github-actions[bot]@users.noreply.github.com',
- );
- git(checkout, 'add', '-A', QUEUE_REL);
- git(
- checkout,
- 'commit',
- '-qm',
- 'visual baseline: update publication queue',
- );
- const pushed = spawnSync(
- 'git',
- ['-C', checkout, 'push', 'origin', 'gh-pages'],
- {
- encoding: 'utf8',
- },
- );
- if (pushed.status === 0) return mutation.value;
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- await sleep(attempt * 1000);
- }
- refuse('could not update the publication queue after 10 attempts');
-}
-
-function ticketValue(repository, runId) {
- return {version: 1, repository, runId};
-}
-
-async function enqueue({repository, runId, token, tempRoot}) {
- await mutateQueue({
- repository,
- token,
- tempRoot,
- mutate(checkout) {
- const file = path.join(checkout, QUEUE_REL, `${runId}.json`);
- if (fs.existsSync(file)) {
- if (!validTicket(readJSON(file), repository, runId)) {
- refuse('existing queue ticket has invalid identity');
- }
- return {changed: false};
- }
- fs.mkdirSync(path.dirname(file), {recursive: true});
- fs.writeFileSync(
- file,
- `${JSON.stringify(ticketValue(repository, runId), null, 2)}\n`,
- );
- return {changed: true};
- },
- });
- process.stdout.write(`Queued baseline publication run ${runId}.\n`);
-}
-
-async function release({repository, runId, token, tempRoot}) {
- await mutateQueue({
- repository,
- token,
- tempRoot,
- mutate(checkout) {
- const root = path.join(checkout, QUEUE_REL);
- const ticket = path.join(root, `${runId}.json`);
- const holder = path.join(root, HOLDER_NAME);
- let changed = false;
- if (fs.existsSync(ticket)) {
- fs.rmSync(ticket);
- changed = true;
- }
- const held = readJSON(holder);
- if (held?.runId === runId) {
- fs.rmSync(holder);
- changed = true;
- }
- return {changed};
- },
- });
- process.stdout.write(`Released baseline publication run ${runId}.\n`);
-}
-
-async function removeInvalid({repository, names, token, tempRoot}) {
- await mutateQueue({
- repository,
- token,
- tempRoot,
- mutate(checkout) {
- let changed = false;
- for (const name of names) {
- const file = path.join(checkout, QUEUE_REL, name);
- if (fs.existsSync(file)) {
- fs.rmSync(file);
- changed = true;
- }
- }
- return {changed};
- },
- });
-}
-
-async function claim({repository, runId, token, tempRoot}) {
- return mutateQueue({
- repository,
- token,
- tempRoot,
- mutate(checkout) {
- const state = queueState(checkout, repository);
- if (state.invalid.length > 0) return {changed: false, value: false};
- if (state.holder) {
- return {changed: false, value: state.holder.runId === runId};
- }
- const tickets = orderedTickets(state.entries, repository);
- if (tickets[0]?.runId !== runId) return {changed: false, value: false};
- const holder = path.join(checkout, QUEUE_REL, HOLDER_NAME);
- fs.writeFileSync(
- holder,
- `${JSON.stringify(ticketValue(repository, runId), null, 2)}\n`,
- );
- return {changed: true, value: true};
- },
- });
-}
-
-function runStatus(repository, runId) {
- const result = spawnSync(
- 'gh',
- ['api', `repos/${repository}/actions/runs/${runId}`],
- {encoding: 'utf8'},
- );
- if (result.status === 0) {
- try {
- return JSON.parse(result.stdout).status;
- } catch (error) {
- refuse(`cannot parse queued run ${runId}: ${error.message}`);
- }
- }
- if (/HTTP 404|Not Found/i.test(result.stderr ?? '')) return 'missing';
- refuse(
- `cannot resolve queued run ${runId}: ${
- result.stderr?.trim() || result.stdout?.trim() || `exit ${result.status}`
- }`,
- );
-}
-
-async function waitForTurn({
- repository,
- runId,
- token,
- tempRoot,
- timeoutMs = 75 * 60 * 1000,
-}) {
- const started = Date.now();
- const checkTimeout = blocker => {
- if (Date.now() - started >= timeoutMs) {
- refuse(
- `timed out behind baseline publication run ${blocker ?? 'unknown'}`,
- );
- }
- };
- while (true) {
- const checkout = checkoutPages({repository, token, tempRoot});
- let state;
- try {
- state = queueState(checkout, repository);
- } finally {
- fs.rmSync(checkout, {recursive: true, force: true});
- }
- if (state.invalid.length > 0) {
- checkTimeout(state.holder?.runId);
- await removeInvalid({
- repository,
- names: state.invalid,
- token,
- tempRoot,
- });
- continue;
- }
- if (state.holder?.runId === runId) {
- process.stdout.write(
- `Baseline publication turn acquired by run ${runId}.\n`,
- );
- return;
- }
- if (state.holder) {
- if (isTerminalRun(runStatus(repository, state.holder.runId))) {
- checkTimeout(state.holder.runId);
- await release({
- repository,
- runId: state.holder.runId,
- token,
- tempRoot,
- });
- continue;
- }
- } else {
- const blockers = publicationBlockers(state.entries, repository, runId);
- let pruned = false;
- for (const blocker of blockers) {
- if (isTerminalRun(runStatus(repository, blocker.runId))) {
- checkTimeout(blocker.runId);
- await release({
- repository,
- runId: blocker.runId,
- token,
- tempRoot,
- });
- pruned = true;
- }
- }
- if (pruned) continue;
- if (
- blockers.length === 0 &&
- (await claim({repository, runId, token, tempRoot}))
- ) {
- process.stdout.write(
- `Baseline publication turn acquired by run ${runId}.\n`,
- );
- return;
- }
- }
- const blocker =
- state.holder?.runId ??
- orderedTickets(state.entries, repository)[0]?.runId;
- checkTimeout(blocker);
- process.stdout.write(`Waiting for baseline publication run ${blocker}.\n`);
- await sleep(30000);
- }
-}
-
-if (
- process.argv[1] &&
- fs.realpathSync(process.argv[1]) ===
- fs.realpathSync(fileURLToPath(import.meta.url))
-) {
- const command = process.argv[2];
- const repository = process.env.GITHUB_REPOSITORY ?? '';
- const runId = Number(process.env.GITHUB_RUN_ID);
- const token = process.env.GH_TOKEN ?? '';
- const tempRoot = process.env.RUNNER_TEMP || os.tmpdir();
- try {
- validateIdentity(repository, runId);
- if (!token) refuse('GitHub token is missing');
- if (command === 'enqueue') {
- await enqueue({repository, runId, token, tempRoot});
- } else if (command === 'wait') {
- const configuredTimeout = process.env.ASTRYX_BASELINE_LOCK_TIMEOUT_MS;
- const timeoutMs =
- configuredTimeout === undefined ? undefined : Number(configuredTimeout);
- if (
- timeoutMs !== undefined &&
- (!Number.isFinite(timeoutMs) || timeoutMs < 0)
- ) {
- refuse('lock timeout is invalid');
- }
- await waitForTurn({repository, runId, token, tempRoot, timeoutMs});
- } else if (command === 'release') {
- await release({repository, runId, token, tempRoot});
- } else {
- refuse('usage: baseline-publication-lock.mjs <enqueue|wait|release>');
- }
- } catch (error) {
- console.error(error.message);
- process.exitCode = 1;
- }
-}
diff --git a/.github/scripts/visual-gate/lib/baseline-publication-lock.test.mjs b/.github/scripts/visual-gate/lib/baseline-publication-lock.test.mjs
deleted file mode 100644
index 1f66f739a7..0000000000
--- a/.github/scripts/visual-gate/lib/baseline-publication-lock.test.mjs
+++ /dev/null
@@ -1,254 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-import {execFileSync, spawnSync} from 'node:child_process';
-import fs from 'node:fs';
-import os from 'node:os';
-import path from 'node:path';
-import {fileURLToPath} from 'node:url';
-
-import {afterEach, describe, expect, it} from 'vitest';
-
-import {
- isTerminalRun,
- orderedTickets,
- publicationBlockers,
-} from './baseline-publication-lock.mjs';
-
-const REPO = 'facebook/astryx';
-const SCRIPT = fileURLToPath(
- new URL('./baseline-publication-lock.mjs', import.meta.url),
-);
-const roots = [];
-
-afterEach(() => {
- for (const root of roots.splice(0)) {
- fs.rmSync(root, {recursive: true, force: true});
- }
-});
-
-function ticket(runId, workflow) {
- return {
- name: String(runId),
- value: {version: 1, repository: REPO, runId, workflow},
- };
-}
-
-function harness() {
- const root = fs.mkdtempSync(path.join(os.tmpdir(), 'baseline-lock-'));
- roots.push(root);
- const seed = path.join(root, 'seed');
- const remote = path.join(root, 'remote.git');
- const bin = path.join(root, 'bin');
- fs.mkdirSync(seed);
- fs.mkdirSync(bin);
- execFileSync('git', ['init', '-q', '-b', 'gh-pages'], {cwd: seed});
- execFileSync('git', ['config', 'user.name', 'Test'], {cwd: seed});
- execFileSync('git', ['config', 'user.email', '[email protected]'], {
- cwd: seed,
- });
- fs.writeFileSync(path.join(seed, '.nojekyll'), '');
- execFileSync('git', ['add', '.'], {cwd: seed});
- execFileSync('git', ['commit', '-qm', 'seed'], {cwd: seed});
- execFileSync('git', ['clone', '-q', '--bare', seed, remote], {cwd: root});
- const gh = path.join(bin, 'gh');
- fs.writeFileSync(gh, '#!/bin/sh\nprintf \'{"status":"in_progress"}\\n\'\n');
- fs.chmodSync(gh, 0o755);
-
- const invoke = (command, runId, extra = {}) =>
- spawnSync(process.execPath, [SCRIPT, command], {
- encoding: 'utf8',
- env: {
- ...process.env,
- PATH: `${bin}:${process.env.PATH}`,
- ASTRYX_BASELINE_QUEUE_URL: `file://${remote}`,
- GH_TOKEN: 'test-token',
- GITHUB_REPOSITORY: REPO,
- GITHUB_RUN_ID: String(runId),
- RUNNER_TEMP: root,
- ...extra,
- },
- });
- return {root, remote, gh, invoke};
-}
-
-describe('baseline publication lock', () => {
- it('orders normal, recovery, and manual requests in immutable run order', () => {
- expect(
- orderedTickets(
- [ticket(103, 'recovery'), ticket(99, 'manual'), ticket(101, 'normal')],
- REPO,
- ).map(value => value.runId),
- ).toEqual([99, 101, 103]);
- });
-
- it('keeps every older accepted publication ahead of a newer request', () => {
- expect(
- publicationBlockers(
- [ticket(200, 'normal'), ticket(201, 'recovery'), ticket(202, 'manual')],
- REPO,
- 202,
- ).map(value => value.runId),
- ).toEqual([200, 201]);
- });
-
- it('never lets a newer recovery or manual request block older accepted work', () => {
- expect(
- publicationBlockers(
- [ticket(200, 'normal'), ticket(201, 'recovery'), ticket(202, 'manual')],
- REPO,
- 200,
- ),
- ).toEqual([]);
- });
-
- it('prunes completed or missing abandoned runs, but never active ones', () => {
- expect(isTerminalRun('completed')).toBe(true);
- expect(isTerminalRun('missing')).toBe(true);
- for (const status of [
- 'requested',
- 'queued',
- 'pending',
- 'waiting',
- 'in_progress',
- ]) {
- expect(isTerminalRun(status)).toBe(false);
- }
- });
-
- it('queues two real runs without cancelling or overtaking the older one', () => {
- const {root, remote, invoke} = harness();
- expect(invoke('enqueue', 200).status).toBe(0);
- expect(invoke('enqueue', 201).status).toBe(0);
- const blocked = invoke('wait', 201, {
- ASTRYX_BASELINE_LOCK_TIMEOUT_MS: '0',
- });
- expect(blocked.status).not.toBe(0);
- expect(blocked.stderr).toMatch(
- /timed out behind baseline publication run 200/,
- );
- expect(invoke('wait', 200).status).toBe(0);
- expect(invoke('release', 200).status).toBe(0);
- expect(invoke('wait', 201).status).toBe(0);
- expect(invoke('release', 201).status).toBe(0);
-
- const final = path.join(root, 'final');
- execFileSync('git', ['clone', '-q', '--branch', 'gh-pages', remote, final]);
- const queue = path.join(final, 'visual-gate', 'publication-queue');
- expect(fs.existsSync(queue) ? fs.readdirSync(queue) : []).toEqual([]);
- });
-
- it('keeps mutual exclusion when a lower-id run enqueues after the holder', () => {
- const {invoke} = harness();
- expect(invoke('enqueue', 201).status).toBe(0);
- expect(invoke('wait', 201).status).toBe(0);
- expect(invoke('enqueue', 200).status).toBe(0);
- const lateOlder = invoke('wait', 200, {
- ASTRYX_BASELINE_LOCK_TIMEOUT_MS: '0',
- });
- expect(lateOlder.status).not.toBe(0);
- expect(lateOlder.stderr).toMatch(
- /timed out behind baseline publication run 201/,
- );
- expect(invoke('release', 201).status).toBe(0);
- expect(invoke('wait', 200).status).toBe(0);
- expect(invoke('release', 200).status).toBe(0);
- });
-
- it('fails closed instead of deleting a corrupt active holder', () => {
- const {root, remote, invoke} = harness();
- expect(invoke('enqueue', 301).status).toBe(0);
- expect(invoke('wait', 301).status).toBe(0);
-
- const writer = path.join(root, 'holder-writer');
- execFileSync('git', [
- 'clone',
- '-q',
- '--branch',
- 'gh-pages',
- remote,
- writer,
- ]);
- execFileSync('git', ['config', 'user.name', 'Test'], {cwd: writer});
- execFileSync('git', ['config', 'user.email', '[email protected]'], {
- cwd: writer,
- });
- fs.writeFileSync(
- path.join(writer, 'visual-gate', 'publication-queue', 'holder.json'),
- `${JSON.stringify({
- version: 1,
- repository: REPO,
- runId: '301',
- })}\n`,
- );
- execFileSync('git', ['add', '.'], {cwd: writer});
- execFileSync('git', ['commit', '-qm', 'corrupt holder'], {cwd: writer});
- execFileSync('git', ['push', '-q', 'origin', 'gh-pages'], {cwd: writer});
-
- expect(invoke('enqueue', 300).status).toBe(0);
- const result = invoke('wait', 300, {
- ASTRYX_BASELINE_LOCK_TIMEOUT_MS: '0',
- });
- expect(result.status).not.toBe(0);
- expect(result.stderr).toMatch(/publication holder has invalid identity/);
- });
-
- it('self-heals a missing-run ticket instead of bricking later publication', () => {
- const {gh, invoke} = harness();
- expect(invoke('enqueue', 200).status).toBe(0);
- expect(invoke('enqueue', 201).status).toBe(0);
- fs.writeFileSync(
- gh,
- "#!/bin/sh\necho 'gh: Not Found (HTTP 404)' >&2\nexit 1\n",
- );
- fs.chmodSync(gh, 0o755);
- expect(invoke('wait', 201).status).toBe(0);
- expect(invoke('release', 201).status).toBe(0);
- });
-
- it('removes a stray JSON file instead of treating it as a lock', () => {
- const {root, remote, invoke} = harness();
- const writer = path.join(root, 'stray-writer');
- execFileSync('git', [
- 'clone',
- '-q',
- '--branch',
- 'gh-pages',
- remote,
- writer,
- ]);
- execFileSync('git', ['config', 'user.name', 'Test'], {cwd: writer});
- execFileSync('git', ['config', 'user.email', '[email protected]'], {
- cwd: writer,
- });
- const queue = path.join(writer, 'visual-gate', 'publication-queue');
- fs.mkdirSync(queue, {recursive: true});
- fs.writeFileSync(path.join(queue, 'stray.json'), '{}\n');
- execFileSync('git', ['add', '.'], {cwd: writer});
- execFileSync('git', ['commit', '-qm', 'stray'], {cwd: writer});
- execFileSync('git', ['push', '-q', 'origin', 'gh-pages'], {cwd: writer});
-
- expect(invoke('enqueue', 200).status).toBe(0);
- expect(invoke('wait', 200).status).toBe(0);
- expect(invoke('release', 200).status).toBe(0);
- });
-
- it('ignores stray names and fails closed for a missing or cross-repository ticket', () => {
- expect(() => publicationBlockers([], REPO, 200)).toThrow(
- /queue ticket for run 200 is missing/,
- );
- expect(
- orderedTickets([{name: '../200', value: {untrusted: true}}], REPO),
- ).toEqual([]);
- expect(() =>
- orderedTickets(
- [
- {
- name: '200',
- value: {version: 1, repository: 'fork/astryx', runId: 200},
- },
- ],
- REPO,
- ),
- ).toThrow(/invalid identity/);
- });
-});
diff --git a/.github/scripts/visual-gate/lib/baseline.mjs b/.github/scripts/visual-gate/lib/baseline.mjs
index 9400f63004..0e2885279f 100644
--- a/.github/scripts/visual-gate/lib/baseline.mjs
+++ b/.github/scripts/visual-gate/lib/baseline.mjs
@@ -108,6 +108,40 @@ export function readBaseline(baselineDir) {
};
}
+const BASELINE_SHOT_FIELDS = [
+ 'sha256',
+ 'storyId',
+ 'theme',
+ 'mode',
+ // These two preserve ownership when a story or theme leaves the current build.
+ 'packageName',
+ 'themePackageName',
+];
+
+/** Keep the baseline index reviewable; all other shot facts are derived per run. */
+export function compactBaselineManifest(manifest) {
+ const shots = Object.fromEntries(
+ Object.entries(manifest.shots ?? {}).map(([key, shot]) => [
+ key,
+ Object.fromEntries(
+ BASELINE_SHOT_FIELDS.flatMap(field =>
+ shot[field] === undefined ? [] : [[field, shot[field]]],
+ ),
+ ),
+ ]),
+ );
+ return {
+ version: manifest.version ?? 1,
+ shots,
+ decisions: manifest.decisions ?? [],
+ ...(manifest.platform ? {platform: manifest.platform} : {}),
+ ...(manifest.browser ? {browser: manifest.browser} : {}),
+ ...(manifest.viewport ? {viewport: manifest.viewport} : {}),
+ ...(manifest.capturedAt ? {capturedAt: manifest.capturedAt} : {}),
+ ...(manifest.context ? {context: manifest.context} : {}),
+ };
+}
+
/**
* @param {string} baselineDir
* @param {object} manifest
@@ -116,7 +150,7 @@ export function writeBaseline(baselineDir, manifest) {
fs.mkdirSync(path.join(baselineDir, 'shots'), {recursive: true});
fs.writeFileSync(
path.join(baselineDir, 'manifest.json'),
- `${JSON.stringify(manifest, null, 2)}\n`,
+ `${JSON.stringify(compactBaselineManifest(manifest))}\n`,
);
}
diff --git a/.github/scripts/visual-gate/lib/baseline.test.mjs b/.github/scripts/visual-gate/lib/baseline.test.mjs
index 3a124aec88..85d712ef24 100644
--- a/.github/scripts/visual-gate/lib/baseline.test.mjs
+++ b/.github/scripts/visual-gate/lib/baseline.test.mjs
@@ -10,10 +10,49 @@ import {afterEach, beforeEach, describe, expect, it} from 'vitest';
import {
accept,
assertPromotableVerdict,
+ compactBaselineManifest,
incomparable,
readBaseline,
} from './baseline.mjs';
+describe('compact baseline manifest', () => {
+ it('keeps comparison and ownership fields without generated story metadata', () => {
+ const compact = compactBaselineManifest({
+ version: 1,
+ platform: 'linux-arm64',
+ browser: 'chromium-149',
+ viewport: {width: 1024, height: 768},
+ shots: {
+ a: {
+ sha256: 'aa',
+ storyId: 'core-button--primary',
+ theme: 'neutral',
+ mode: 'light',
+ packageName: '@astryxdesign/core',
+ themePackageName: '@astryxdesign/theme-neutral',
+ title: 'Core/Button',
+ name: 'Primary',
+ reasons: ['surface'],
+ packageNames: ['@astryxdesign/core'],
+ stableVisual: true,
+ stableThemeVisual: true,
+ membershipSource: 'current-story',
+ width: 1024,
+ height: 768,
+ },
+ },
+ });
+ expect(compact.shots.a).toEqual({
+ sha256: 'aa',
+ storyId: 'core-button--primary',
+ theme: 'neutral',
+ mode: 'light',
+ packageName: '@astryxdesign/core',
+ themePackageName: '@astryxdesign/theme-neutral',
+ });
+ expect(JSON.stringify(compact)).not.toContain('Core/Button');
+ });
+});
let root;
let baselineDir;
let captureDir;
diff --git a/.github/scripts/visual-gate/workflow-concurrency.test.mjs b/.github/scripts/visual-gate/workflow-concurrency.test.mjs
index 43cdb0ed2a..a65c9bff12 100644
--- a/.github/scripts/visual-gate/workflow-concurrency.test.mjs
+++ b/.github/scripts/visual-gate/workflow-concurrency.test.mjs
@@ -88,7 +88,7 @@ describe('PR report and deployment workflow contracts', () => {
'reconcileEarlyPreviewComment',
);
expect(jobs.resolve.if).toContain("github.event_name == 'workflow_run'");
- expect(jobs.comment.needs).toEqual(['resolve', 'deploy-preview']);
+ expect(jobs.comment.needs).toBe('resolve');
expect(jobs.comment.permissions.deployments).toBe('read');
});
@@ -155,7 +155,7 @@ describe('PR report and deployment workflow contracts', () => {
);
});
- it('stages both static apps in Vercel preview and production while retaining separate Pages publication', () => {
+ it('stages both static apps in Vercel preview and production', () => {
const config = JSON.parse(
fs.readFileSync(path.join(ROOT, 'apps/docsite/vercel.json'), 'utf8'),
);
@@ -175,8 +175,6 @@ describe('PR report and deployment workflow contracts', () => {
expect(builder).toContain("'@astryxdesign/storybook'");
expect(builder).toContain("'@astryxdesign/sandbox'");
expect(builder).toContain("SANDBOX_BASE_PATH: '/sandbox'");
- expect(builder).toContain('fs.rmSync(storybookDestination');
- expect(builder).toContain('fs.rmSync(sandboxDestination');
const routing = fs.readFileSync(
path.join(ROOT, 'apps/docsite/next.config.mjs'),
'utf8',
@@ -184,25 +182,9 @@ describe('PR report and deployment workflow contracts', () => {
expect(routing).toContain("source: '/sandbox/:path+'");
expect(routing).toContain("destination: '/sandbox/:path+/index.html'");
const comment = workflow('pr-comment.yml');
- expect(comment).toContain('uses: ./.github/workflows/deploy-preview.yml');
- expect(comment).toContain('preview-deployment-');
expect(comment).toContain('deployments: read');
- expect(workflow('deploy-preview.yml')).not.toContain(
- '--storybook storybook-dist',
- );
- expect(workflow('redeploy-preview.yml')).not.toContain(
- '--storybook storybook-dist',
- );
- expect(workflow('deploy-preview.yml')).toContain('--sandbox sandbox-dist');
- expect(workflow('redeploy-preview.yml')).toContain(
- '--sandbox sandbox-dist',
- );
- const publisher = fs.readFileSync(
- path.join(ROOT, '.github/scripts/lib/gh-pages-publisher.mjs'),
- 'utf8',
- );
- expect(publisher).toContain("command === 'pr-preview'");
- expect(publisher).toContain('Storybook previews are hosted on Vercel');
+ expect(comment).not.toContain('deploy-preview.yml');
+ expect(comment).not.toContain('gh-pages-publisher.mjs');
const reconciler = fs.readFileSync(
path.join(ROOT, '.github/scripts/lib/pr-preview.mjs'),
'utf8',
@@ -210,56 +192,59 @@ describe('PR report and deployment workflow contracts', () => {
expect(reconciler).toContain('resolveVercelPreview');
expect(reconciler).toContain('`${previewOrigin}/storybook/`');
expect(reconciler).toContain('`${previewOrigin}/sandbox/`');
- expect(reconciler).not.toContain('pagesURL(identity, sandboxPath)');
});
- it('defers full-tree cleanup and retains required visual evidence and stable-site writers', () => {
- const cleanup = yaml.parse(workflow('cleanup-previews.yml'));
- expect(cleanup.on.schedule).toEqual([{cron: '0 6 * * *'}]);
- expect(cleanup.on.workflow_dispatch).toBeDefined();
- expect(cleanup.on.workflow_run).toBeUndefined();
- const stable = workflow('deploy.yml');
- const pages = workflow('pages-deploy.yml');
- expect(stable).toContain(
- 'gh-pages-publisher.mjs stable-site --source staged',
- );
- expect(pages).toContain("- 'Deploy'");
- expect(pages).toContain("- 'PR Comment'");
- expect(pages).toContain("- 'Re-deploy Preview'");
- expect(pages).toContain(
- "github.event.workflow_run.event == 'workflow_dispatch'",
- );
- expect(pages).toContain('actions/deploy-pages@v5');
- expect(workflow('pr-comment.yml')).toContain(
- 'gh-pages-publisher.mjs immutable-path',
- );
- expect(workflow('ci.yml')).toContain(
- 'gh-pages-publisher.mjs visual-baseline-manual',
+ it('publishes only the static compatibility landing to GitHub Pages', () => {
+ const pages = yaml.parse(workflow('pages-deploy.yml'));
+ expect(pages.on.workflow_run).toBeUndefined();
+ expect(pages.on.push.branches).toEqual(['main']);
+ expect(pages.concurrency).toEqual({
+ group: 'github-pages-landing',
+ 'cancel-in-progress': true,
+ });
+ expect(Object.keys(pages.jobs)).toEqual(['deploy']);
+ expect(pages.jobs.deploy.permissions).toEqual({
+ contents: 'read',
+ pages: 'write',
+ 'id-token': 'write',
+ });
+ const page = fs.readFileSync(
+ path.join(ROOT, '.github/pages/index.html'),
+ 'utf8',
);
+ expect(page).toContain('https://astryx.atmeta.com/');
+ expect(page).toContain('https://astryx.atmeta.com/storybook/');
+ expect(page).toContain('https://astryx.atmeta.com/sandbox/');
+ expect(page).toContain('aria-label="Astryx destinations"');
+ expect(page).toContain(':focus-visible');
});
- it('retains the remaining Pages publishers behind the shared publisher', () => {
- const files = [
+ it('keeps CI evidence while removing every branch-backed Pages publisher', () => {
+ for (const file of [
'.github/workflows/deploy-preview.yml',
'.github/workflows/redeploy-preview.yml',
'.github/workflows/cleanup-previews.yml',
'.github/workflows/compact-gh-pages.yml',
- '.github/workflows/vibe-screenshots.yml',
+ '.github/scripts/gh-pages-publisher.mjs',
+ '.github/scripts/lib/gh-pages-publisher.mjs',
+ '.github/scripts/lib/gh-pages-publisher.test.mjs',
'internal/vibe-tests/src/deploy-report.ts',
- ];
- const combined = files
- .map(file => fs.readFileSync(path.join(ROOT, file), 'utf8'))
- .join('\n');
- expect(combined).toContain('gh-pages-publisher.mjs');
- expect(combined).not.toContain('git push origin gh-pages');
- expect(combined).not.toContain('ref: gh-pages');
- for (const [file, job] of [
- ['cleanup-previews.yml', 'cleanup'],
- ['compact-gh-pages.yml', 'compact'],
- ['vibe-screenshots.yml', 'deploy-screenshots'],
]) {
- const permissions = yaml.parse(workflow(file)).jobs[job].permissions;
- expect(permissions).toMatchObject({actions: 'read', contents: 'write'});
+ expect(fs.existsSync(path.join(ROOT, file))).toBe(false);
}
+ const ci = workflow('ci.yml');
+ expect(ci).toContain('--baseline .github/visual-baseline');
+ expect(ci).toContain('name: visual-pr-report');
+ expect(ci).toContain('retention-days: 30');
+ expect(ci).not.toContain('gh-pages');
+ expect(workflow('vibe-screenshots.yml')).toContain(
+ 'name: vibe-test-screenshots',
+ );
+ expect(workflow('vibe-screenshots.yml')).not.toContain('gh-pages');
+ const main = workflow('deploy.yml');
+ expect(main).toContain('name: Main');
+ expect(main).toContain('pnpm vitest run --project ui');
+ expect(main).not.toContain('deploy-storybook');
+ expect(main).not.toContain('gh-pages');
});
});
diff --git a/.github/scripts/visual-maintenance-source.mjs b/.github/scripts/visual-maintenance-source.mjs
index 6afd810e62..0c57bcaf80 100644
--- a/.github/scripts/visual-maintenance-source.mjs
+++ b/.github/scripts/visual-maintenance-source.mjs
@@ -1,10 +1,10 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
/**
- * @file Resolve a CI-owned baseline maintenance capture before publication.
- * @input GitHub workflow/run/job/artifact identity and the downloaded manifest
- * @output An exact source artifact, or a refusal; never a pixel acceptance
- * @position Trusted source boundary for ci.yml's publication-only maintenance job
+ * @file Validate a canonical visual baseline candidate before artifact upload.
+ * @input The maintenance capture manifest, verdict, and exact workflow identity.
+ * @output Acceptance of complete exact-main evidence, or a refusal.
+ * @position Trusted capture boundary before a normal PR may update the baseline.
*/
import {validateReleasePlan} from './visual-gate/lib/compare.mjs';
@@ -20,113 +20,7 @@ function positiveInteger(value, label) {
return result;
}
-/** Resolve only the named attempt's completed canonical capture on main. */
-export async function resolveVisualMaintenanceSource({
- github,
- owner,
- repo,
- runId,
- runAttempt,
-}) {
- const id = positiveInteger(runId, 'run id');
- const attempt = positiveInteger(runAttempt, 'run attempt');
- const repository = `${owner}/${repo}`;
- const [{data: workflow}, {data: run}] = await Promise.all([
- github.rest.actions.getWorkflow({owner, repo, workflow_id: 'ci.yml'}),
- github.rest.actions.getWorkflowRunAttempt({
- owner,
- repo,
- run_id: id,
- attempt_number: attempt,
- }),
- ]);
- if (
- workflow.path !== '.github/workflows/ci.yml' ||
- run.workflow_id !== workflow.id ||
- run.path !== workflow.path ||
- run.id !== id ||
- run.run_attempt !== attempt ||
- run.repository?.full_name !== repository ||
- run.head_repository?.full_name !== repository ||
- !Number.isSafeInteger(run.repository?.id) ||
- run.head_repository?.id !== run.repository.id ||
- run.event !== 'workflow_dispatch' ||
- run.head_branch !== 'main' ||
- !/^[0-9a-f]{40}$/.test(run.head_sha ?? '') ||
- run.status !== 'completed' ||
- !['success', 'failure'].includes(run.conclusion)
- ) {
- refuse('expected an exact completed main CI maintenance attempt');
- }
-
- const {data: comparison} = await github.rest.repos.compareCommitsWithBasehead(
- {
- owner,
- repo,
- basehead: `${run.head_sha}...main`,
- },
- );
- if (!['identical', 'ahead'].includes(comparison.status)) {
- refuse('capture commit is not reachable from main');
- }
-
- const jobs = await github.paginate(
- github.rest.actions.listJobsForWorkflowRunAttempt,
- {owner, repo, run_id: id, attempt_number: attempt, per_page: 100},
- );
- const captures = jobs.filter(job => job.name === 'Stable visual regression');
- if (
- captures.length !== 1 ||
- captures[0].status !== 'completed' ||
- !['success', 'failure'].includes(captures[0].conclusion) ||
- !captures[0].steps?.some(
- step =>
- step.name === 'Validate canonical baseline capture' &&
- step.conclusion === 'success',
- )
- ) {
- refuse(
- 'the named attempt did not complete a canonical maintenance capture',
- );
- }
-
- const artifacts = await github.paginate(
- github.rest.actions.listWorkflowRunArtifacts,
- {owner, repo, run_id: id, per_page: 100},
- );
- const name = `visual-baseline-capture-${id}-${attempt}`;
- const matches = artifacts.filter(artifact => artifact.name === name);
- if (matches.length !== 1)
- refuse('expected one exact maintenance capture artifact');
- const artifact = matches[0];
- const source = artifact.workflow_run;
- if (
- !Number.isSafeInteger(artifact.id) ||
- artifact.id <= 0 ||
- artifact.expired !== false ||
- source?.id !== id ||
- source.repository_id !== run.repository.id ||
- source.head_repository_id !== run.repository.id ||
- source.head_branch !== 'main' ||
- source.head_sha !== run.head_sha
- ) {
- refuse(
- 'capture artifact identity does not match the trusted source attempt',
- );
- }
- return {
- artifactId: artifact.id,
- runId: id,
- runAttempt: attempt,
- sha: run.head_sha,
- };
-}
-
-/**
- * A complete capture may have a failed comparison when the browser changes.
- * Preserve that explicit maintenance recovery without blessing a partial capture
- * or weakening gate.mjs accept's existing failed-verdict pruning restriction.
- */
+/** A full maintenance capture may differ, but it may never be partial or stale. */
export function validateVisualMaintenanceCapture({
manifest,
verdict,
@@ -143,7 +37,7 @@ export function validateVisualMaintenanceCapture({
String(context.runAttempt) !==
String(positiveInteger(runAttempt, 'run attempt'))
) {
- refuse('capture manifest does not match the resolved source identity');
+ refuse('capture manifest does not match the source identity');
}
const plan = validateReleasePlan(context.releasePlan, manifest);
if (!plan.keys.length) refuse('canonical capture is empty');
diff --git a/.github/scripts/visual-maintenance-source.test.mjs b/.github/scripts/visual-maintenance-source.test.mjs
index 51f8e9383e..bac14dee79 100644
--- a/.github/scripts/visual-maintenance-source.test.mjs
+++ b/.github/scripts/visual-maintenance-source.test.mjs
@@ -1,95 +1,21 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
/**
- * @file CI maintenance source-boundary contracts.
- * @input Independent GitHub response and canonical capture fixtures
- * @output Refusals for foreign, stale, incomplete, or wrongly routed evidence
- * @position Node tests for the publication-only baseline maintenance boundary
+ * @file Canonical baseline-capture identity contracts.
+ * @input A full visual manifest and verdict produced by the maintenance capture.
+ * @output Refusal for partial, stale, or wrongly routed candidate evidence.
+ * @position Validation before a candidate artifact can become a reviewed PR.
*/
import {createHash} from 'node:crypto';
-import {describe, expect, it, vi} from 'vitest';
+import {describe, expect, it} from 'vitest';
-import {
- resolveVisualMaintenanceSource,
- validateVisualMaintenanceCapture,
-} from './visual-maintenance-source.mjs';
+import {validateVisualMaintenanceCapture} from './visual-maintenance-source.mjs';
const SHA = 'a'.repeat(40);
const KEY = 'core-button--default__neutral-light';
-function sourceFixture() {
- const workflow = {id: 17, path: '.github/workflows/ci.yml'};
- const run = {
- id: 101,
- run_attempt: 2,
- workflow_id: 17,
- path: '.github/workflows/ci.yml',
- repository: {id: 9, full_name: 'facebook/astryx'},
- head_repository: {id: 9, full_name: 'facebook/astryx'},
- head_branch: 'main',
- head_sha: SHA,
- event: 'workflow_dispatch',
- status: 'completed',
- conclusion: 'success',
- };
- const comparison = {status: 'ahead'};
- const jobs = [
- {
- name: 'Stable visual regression',
- status: 'completed',
- conclusion: 'success',
- steps: [
- {name: 'Validate canonical baseline capture', conclusion: 'success'},
- ],
- },
- ];
- const artifacts = [
- {
- id: 901,
- name: 'visual-baseline-capture-101-2',
- expired: false,
- workflow_run: {
- id: 101,
- repository_id: 9,
- head_repository_id: 9,
- head_branch: 'main',
- head_sha: SHA,
- },
- },
- ];
- const actions = {
- getWorkflow: vi.fn(async () => ({data: workflow})),
- getWorkflowRunAttempt: vi.fn(async () => ({data: run})),
- listJobsForWorkflowRunAttempt: vi.fn(),
- listWorkflowRunArtifacts: vi.fn(),
- };
- const github = {
- rest: {
- actions,
- repos: {
- compareCommitsWithBasehead: vi.fn(async () => ({data: comparison})),
- },
- },
- paginate: vi.fn(async method => {
- if (method === actions.listJobsForWorkflowRunAttempt) return jobs;
- if (method === actions.listWorkflowRunArtifacts) return artifacts;
- throw new Error('Unexpected pagination endpoint');
- }),
- };
- return {workflow, run, comparison, jobs, artifacts, github};
-}
-
-const resolve = fixture =>
- resolveVisualMaintenanceSource({
- github: fixture.github,
- owner: 'facebook',
- repo: 'astryx',
- runId: '101',
- runAttempt: '2',
- });
-
function captureFixture() {
const keys = [KEY];
const context = {
@@ -117,278 +43,49 @@ function captureFixture() {
};
}
-describe('CI-owned baseline maintenance source', () => {
- it('resolves the reviewed attempt and exact artifact, not the latest named run', async () => {
- const fx = sourceFixture();
- expect(await resolve(fx)).toEqual({
- artifactId: 901,
- runId: 101,
- runAttempt: 2,
- sha: SHA,
- });
- expect(fx.github.rest.actions.getWorkflow).toHaveBeenCalledWith({
- owner: 'facebook',
- repo: 'astryx',
- workflow_id: 'ci.yml',
- });
- expect(fx.github.rest.actions.getWorkflowRunAttempt).toHaveBeenCalledWith({
- owner: 'facebook',
- repo: 'astryx',
- run_id: 101,
- attempt_number: 2,
- });
- expect(fx.github.paginate).toHaveBeenCalledWith(
- fx.github.rest.actions.listJobsForWorkflowRunAttempt,
- {
- owner: 'facebook',
- repo: 'astryx',
- run_id: 101,
- attempt_number: 2,
- per_page: 100,
- },
- );
- });
-
- it('allows an explicit complete capture whose comparison failed during browser refresh', async () => {
- const fx = sourceFixture();
- fx.run.conclusion = 'failure';
- fx.jobs[0].conclusion = 'failure';
- expect(await resolve(fx)).toMatchObject({artifactId: 901});
- const capture = captureFixture();
- capture.verdict.status = 'failed';
- capture.verdict.failures = [{key: 'baseline', error: 'browser differs'}];
- expect(() => validateVisualMaintenanceCapture(capture)).not.toThrow();
- });
-
- it.each([
- [
- 'foreign workflow',
- fx => {
- fx.run.workflow_id = 18;
- },
- ],
- [
- 'renamed workflow path',
- fx => {
- fx.workflow.path = '.github/workflows/other.yml';
- },
- ],
- [
- 'wrong run',
- fx => {
- fx.run.id = 102;
- },
- ],
- [
- 'wrong attempt',
- fx => {
- fx.run.run_attempt = 1;
- },
- ],
- [
- 'foreign repository',
- fx => {
- fx.run.repository.full_name = 'other/astryx';
- },
- ],
- [
- 'fork head',
- fx => {
- fx.run.head_repository.full_name = 'fork/astryx';
- },
- ],
- [
- 'mismatched repository id',
- fx => {
- fx.run.head_repository.id = 10;
- },
- ],
- [
- 'PR source',
- fx => {
- fx.run.event = 'pull_request';
- },
- ],
- [
- 'non-main dispatch',
- fx => {
- fx.run.head_branch = 'feature';
- },
- ],
- [
- 'unfinished source',
- fx => {
- fx.run.status = 'in_progress';
- },
- ],
- [
- 'canceled source',
- fx => {
- fx.run.conclusion = 'cancelled';
- },
- ],
- [
- 'unreachable commit',
- fx => {
- fx.comparison.status = 'diverged';
- },
- ],
- [
- 'wrong visual job',
- fx => {
- fx.jobs[0].name = 'Other capture';
- },
- ],
- [
- 'promote-only source',
- fx => {
- fx.jobs[0].steps = [];
- },
- ],
- [
- 'failed capture validation',
- fx => {
- fx.jobs[0].steps[0].conclusion = 'failure';
- },
- ],
- [
- 'artifact from previous attempt',
- fx => {
- fx.artifacts[0].name = 'visual-baseline-capture-101-1';
- },
- ],
- [
- 'expired artifact',
- fx => {
- fx.artifacts[0].expired = true;
- },
- ],
- [
- 'artifact from foreign run',
- fx => {
- fx.artifacts[0].workflow_run.id = 102;
- },
- ],
- [
- 'artifact from foreign repo',
- fx => {
- fx.artifacts[0].workflow_run.repository_id = 10;
- },
- ],
- [
- 'artifact from foreign head',
- fx => {
- fx.artifacts[0].workflow_run.head_sha = 'b'.repeat(40);
- },
- ],
- [
- 'missing artifact',
- fx => {
- fx.artifacts.length = 0;
- },
- ],
- [
- 'ambiguous artifact',
- fx => {
- fx.artifacts.push(structuredClone(fx.artifacts[0]));
- },
- ],
- ])('refuses %s before downloading bytes', async (_label, mutate) => {
- const fx = sourceFixture();
- mutate(fx);
- await expect(resolve(fx)).rejects.toThrow(/refused/);
- });
-
- it.each(['', '0', '-1', '1.2', '1/2', '9007199254740992'])(
- 'rejects invalid source id %j',
- async runId => {
- const fx = sourceFixture();
- await expect(
- resolveVisualMaintenanceSource({
- github: fx.github,
- owner: 'facebook',
- repo: 'astryx',
- runId,
- runAttempt: 2,
- }),
- ).rejects.toThrow(/run id is invalid/);
- expect(fx.github.rest.actions.getWorkflow).not.toHaveBeenCalled();
- },
- );
-});
-
-describe('downloaded canonical capture identity', () => {
+describe('canonical baseline candidate identity', () => {
it('accepts the full canonical source without changing the baseline or verdict', () => {
- const fx = captureFixture();
- const before = structuredClone(fx);
- validateVisualMaintenanceCapture(fx);
- expect(fx).toEqual(before);
+ const fixture = captureFixture();
+ const before = structuredClone(fixture);
+ validateVisualMaintenanceCapture(fixture);
+ expect(fixture).toEqual(before);
});
it.each([
[
'wrong captured commit',
- fx => {
- fx.manifest.context.sha = 'b'.repeat(40);
- },
+ fixture => (fixture.manifest.context.sha = 'b'.repeat(40)),
],
[
'wrong captured ref',
- fx => {
- fx.manifest.context.ref = 'refs/heads/feature';
- },
- ],
- [
- 'wrong captured run',
- fx => {
- fx.manifest.context.runId = '102';
- },
+ fixture => (fixture.manifest.context.ref = 'refs/heads/feature'),
],
+ ['wrong captured run', fixture => (fixture.manifest.context.runId = '102')],
[
'wrong captured attempt',
- fx => {
- fx.manifest.context.runAttempt = '1';
- },
- ],
- [
- 'missing captured shot',
- fx => {
- fx.manifest.shots = {};
- },
+ fixture => (fixture.manifest.context.runAttempt = '1'),
],
+ ['missing captured shot', fixture => (fixture.manifest.shots = {})],
[
'scoped PR capture',
- fx => {
- delete fx.manifest.context.releasePlan;
- },
+ fixture => delete fixture.manifest.context.releasePlan,
],
[
'mismatched plan digest',
- fx => {
- fx.manifest.context.releasePlan.digest = 'invalid';
- },
+ fixture => (fixture.manifest.context.releasePlan.digest = 'invalid'),
],
[
'mismatched verdict identity',
- fx => {
- fx.verdict.context.sha = 'b'.repeat(40);
- },
+ fixture => (fixture.verdict.context.sha = 'b'.repeat(40)),
],
[
'mismatched verdict plan',
- fx => {
- fx.verdict.context.releasePlan.keys = [];
- },
- ],
- [
- 'skipped capture',
- fx => {
- fx.verdict.status = 'skipped';
- },
+ fixture => (fixture.verdict.context.releasePlan.keys = []),
],
+ ['skipped capture', fixture => (fixture.verdict.status = 'skipped')],
])('refuses %s', (_label, mutate) => {
- const fx = captureFixture();
- mutate(fx);
- expect(() => validateVisualMaintenanceCapture(fx)).toThrow();
+ const fixture = captureFixture();
+ mutate(fixture);
+ expect(() => validateVisualMaintenanceCapture(fixture)).toThrow();
});
});
diff --git a/.github/scripts/visual-maintenance-workflow.test.mjs b/.github/scripts/visual-maintenance-workflow.test.mjs
index 390aadbdc4..09f1bacf85 100644
--- a/.github/scripts/visual-maintenance-workflow.test.mjs
+++ b/.github/scripts/visual-maintenance-workflow.test.mjs
@@ -3,7 +3,7 @@
/**
* @file Baseline maintenance workflow ownership contracts.
* @input ci.yml and independent PR/dispatch states
- * @output Routing, trust-boundary, and publication ordering regression checks
+ * @output Routing, trust-boundary, and artifact retention regression checks
* @position Node contracts for the shared visual owner, not another CI lane
*/
@@ -19,11 +19,8 @@ const workflow = yaml.parse(
fs.readFileSync(path.join(root, '.github/workflows/ci.yml'), 'utf8'),
);
const visual = workflow.jobs['pr-visual'];
-const publication = workflow.jobs['baseline-publication'];
const step = (job, name) =>
job.steps.find(candidate => candidate.name === name);
-const index = (job, name) =>
- job.steps.findIndex(candidate => candidate.name === name);
// Only trusted workflow expressions are evaluated. The fixtures below provide
// outcomes independently, including skipped dependencies on maintenance dispatch.
@@ -80,40 +77,31 @@ function dependencies(job, result = 'success') {
}
describe('CI baseline maintenance routing', () => {
- it('has explicit capture/promote dispatch without a new workflow or test owner', () => {
+ it('has explicit capture/release dispatch without a new workflow or test owner', () => {
expect(workflow.on.workflow_dispatch.inputs.operation.options).toEqual([
'capture',
- 'promote',
'release-check',
]);
expect(visual.name).toBe('Stable visual regression');
expect(visual['runs-on']).toBe('2-core-ubuntu-arm');
- expect(publication['runs-on']).toBe('ubuntu-slim');
+ expect(workflow.jobs).not.toHaveProperty('baseline-publication');
expect(workflow.on).not.toHaveProperty('schedule');
});
- it.each(['capture', 'promote'])(
- 'does not run non-maintenance CI jobs for %s',
- operation => {
- for (const [name, job] of Object.entries(workflow.jobs)) {
- if (
- ['maintenance-request', 'pr-visual', 'baseline-publication'].includes(
- name,
- )
- )
- continue;
- expect(runs(job, {operation, needs: dependencies(job)}), name).toBe(
- false,
- );
- }
- },
- );
+ it('does not run non-maintenance CI jobs for capture', () => {
+ for (const [name, job] of Object.entries(workflow.jobs)) {
+ if (['maintenance-request', 'pr-visual'].includes(name)) continue;
+ expect(
+ runs(job, {operation: 'capture', needs: dependencies(job)}),
+ name,
+ ).toBe(false);
+ }
+ });
it('runs capture despite skipped PR dependencies, only after the main guard succeeds', () => {
const needs = dependencies(visual, 'skipped');
needs['maintenance-request'].result = 'success';
expect(runs(visual, {needs})).toBe(true);
- expect(runs(visual, {needs, operation: 'promote'})).toBe(false);
needs['maintenance-request'].result = 'failure';
expect(runs(visual, {needs})).toBe(false);
});
@@ -130,60 +118,19 @@ describe('CI baseline maintenance routing', () => {
expect(runs(visual, {event: 'merge_group', needs})).toBe(false);
});
- it('publishes only an explicit promote dispatch after the main guard', () => {
- expect(
- runs(publication, {
- operation: 'promote',
- needs: dependencies(publication),
- }),
- ).toBe(true);
- expect(
- runs(publication, {
- operation: 'capture',
- needs: dependencies(publication),
- }),
- ).toBe(false);
- expect(
- runs(publication, {
- operation: 'promote',
- needs: dependencies(publication, 'failure'),
- }),
- ).toBe(false);
- expect(
- runs(publication, {
- event: 'pull_request',
- operation: 'promote',
- needs: dependencies(publication),
- }),
- ).toBe(false);
- });
-
it.each([
- ['refs/heads/main', 'capture', 0],
- ['refs/heads/main', 'promote', 0],
- ['refs/heads/feature', 'capture', 1],
- ['refs/tags/main', 'promote', 1],
- ['refs/heads/main', 'other', 1],
- ])(
- 'guards maintenance ref %s and operation %s before checkout',
- (ref, operation, expected) => {
- const guard = workflow.jobs['maintenance-request'];
- expect(guard.steps).toHaveLength(1);
- const result = spawnSync('bash', ['-c', guard.steps[0].run], {
- env: {
- ...process.env,
- GITHUB_REF: ref,
- OPERATION: operation,
- RUN_ID: '101',
- RUN_ATTEMPT: '2',
- KEYS: 'all',
- REASON: 'Reviewed browser refresh',
- },
- encoding: 'utf8',
- });
- expect(result.status, result.stderr).toBe(expected);
- },
- );
+ ['refs/heads/main', 0],
+ ['refs/heads/feature', 1],
+ ['refs/tags/main', 1],
+ ])('guards maintenance ref %s before checkout', (ref, expected) => {
+ const guard = workflow.jobs['maintenance-request'];
+ expect(guard.steps).toHaveLength(1);
+ const result = spawnSync('bash', ['-c', guard.steps[0].run], {
+ env: {...process.env, GITHUB_REF: ref},
+ encoding: 'utf8',
+ });
+ expect(result.status, result.stderr).toBe(expected);
+ });
it('isolates dispatch concurrency from PRs and does not cancel queued maintenance', () => {
expect(workflow.concurrency.group).toContain('|| github.run_id');
@@ -193,7 +140,7 @@ describe('CI baseline maintenance routing', () => {
});
});
-describe('canonical capture and publication separation', () => {
+describe('canonical capture and checked-in baseline separation', () => {
it('builds full maintenance Storybook only inside the existing visual owner', () => {
const build = step(visual, 'Build canonical maintenance Storybook');
expect(build.if).toBe(
@@ -236,69 +183,11 @@ describe('canonical capture and publication separation', () => {
expect(artifact.with.path).toContain('.visual-run/verdict.json');
});
- it('uses exact validated artifact identity before any downloaded bytes or publication', () => {
- const resolve = step(publication, 'Resolve the reviewed canonical capture');
- const download = step(publication, 'Download the reviewed capture');
- expect(resolve.with.script).toContain('resolveVisualMaintenanceSource');
- expect(download.with['artifact-ids']).toBe(
- '${{ steps.source.outputs.artifact_id }}',
- );
- expect(download.with['run-id']).toBe('${{ steps.source.outputs.run_id }}');
- expect(download.with['merge-multiple']).toBe(true);
- const verify = step(publication, 'Verify downloaded capture identity');
- expect(verify.run).toContain('validateVisualMaintenanceCapture');
- expect(verify.env.CAPTURE_SHA).toBe('${{ steps.source.outputs.sha }}');
- expect(index(publication, resolve.name)).toBeLessThan(
- index(publication, download.name),
- );
- expect(index(publication, download.name)).toBeLessThan(
- index(publication, verify.name),
- );
- expect(index(publication, verify.name)).toBeLessThan(
- index(publication, 'Promote the explicitly reviewed baseline'),
- );
- });
-
- it('retains ordered manual publication with explicit keys, reason, actor, and prune', () => {
- const names = [
- 'Queue baseline publication',
- 'Wait for the baseline publication turn',
- 'Promote the explicitly reviewed baseline',
- 'Release the baseline publication turn',
- ];
- const positions = names.map(name => index(publication, name));
- expect(positions.every(position => position >= 0)).toBe(true);
- expect(positions).toEqual([...positions].sort((a, b) => a - b));
- for (const [name, command] of [
- [names[0], 'enqueue'],
- [names[1], 'wait'],
- [names[3], 'release'],
- ]) {
- expect(step(publication, name).run).toContain(
- `gh-pages-publisher.mjs ${command} --scope visual-gate/baseline`,
- );
- }
- expect(step(publication, names[3]).if).toBe(
- "always() && steps.queue.outcome == 'success'",
- );
- const promote = step(publication, names[2]);
- expect(promote.run).toContain(
- 'gh-pages-publisher.mjs visual-baseline-manual',
- );
- for (const [flag, variable] of [
- ['keys', 'KEYS'],
- ['reason', 'REASON'],
- ['actor', 'PROMOTER'],
- ['prune', 'PRUNE'],
- ]) {
- expect(promote.run).toContain(`--${flag} "$${variable}"`);
- }
- const commands = publication.steps
- .map(item => item.run ?? item.with?.script ?? '')
- .join('\n');
- expect(commands).not.toMatch(
- /playwright|gate\.mjs (?:release|capture|check)|createCommitStatus|createWorkflowDispatch/,
- );
+ it('uses the checked-in baseline for every comparison', () => {
+ const commands = visual.steps.map(item => item.run ?? '').join('\n');
+ expect(commands).toContain('--baseline .github/visual-baseline');
+ expect(commands).not.toContain('gh-pages');
+ expect(workflow.jobs).not.toHaveProperty('baseline-publication');
});
it.each([
diff --git a/.github/visual-baseline/manifest.json b/.github/visual-baseline/manifest.json
new file mode 100644
index 0000000000..8f0a03feec
--- /dev/null
+++ b/.github/visual-baseline/manifest.json
@@ -0,0 +1 @@
+{"version":1,"shots":{"core-alertdialog--delete__neutral-dark":{"sha256":"287e57ed63829be56abb41ba14601f0d26c159efc3f26b65bde19ba65e7a28f9","storyId":"core-alertdialog--delete","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-alertdialog--delete__neutral-light":{"sha256":"0c039cbc87a643dccbaca63a56faaf8552a9ba4de3a2a0a312f0ad711b670e0c","storyId":"core-alertdialog--delete","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-appshell--playground__neutral-dark":{"sha256":"7cbd563ccf6e3561a860fcce1bcfdd84302dd61a5cdda325fd2b6d841f84cda6","storyId":"core-appshell--playground","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-appshell--playground__neutral-light":{"sha256":"e3e5154932ab66c3db18a9da1fa135c9a0caf729c12f9f745ec727846482cb7e","storyId":"core-appshell--playground","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-aspectratio--default__neutral-dark":{"sha256":"b3c371d7865e35f4afd57476fbc8162861f254b6ececcb370329ca67158a3e34","storyId":"core-aspectratio--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-aspectratio--default__neutral-light":{"sha256":"2e974d78707c8580a113074bb361bd1e517a3e1dc2731de0741b6ebf5608ff35","storyId":"core-aspectratio--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-avatar--default__neutral-dark":{"sha256":"526915e39fd90aa9438a304730c44d967dd73ebf3cf7d21f09ce3d4085fb9540","storyId":"core-avatar--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-avatar--default__neutral-light":{"sha256":"15713d2e4e033323bc54aeae222fe992ce2604ec767a44bd76e9f5b1aacc19cd","storyId":"core-avatar--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-avatargroup--default__neutral-dark":{"sha256":"6203e9608f8c171643509d6cdcb3a51f143a572ae2021a39585be4680bc8f39d","storyId":"core-avatargroup--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-avatargroup--default__neutral-light":{"sha256":"2cd060275661cfa5147325a3639839892ec3e7ee3c99d5c00eb1ad547af26540","storyId":"core-avatargroup--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-badge--default__neutral-dark":{"sha256":"610d27c93919cc9f9aafebfa305941c714d244f8eae9bfc81bd487801f320afa","storyId":"core-badge--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-badge--default__neutral-light":{"sha256":"da8164447c62bd743eaf7adde5279eb03d69884bd657cfd50cf84501b219ed54","storyId":"core-badge--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-banner--info__neutral-dark":{"sha256":"306b72bba1580c14069baed7f57b37dbc13522f574ae54fe105c31ba2fe488f7","storyId":"core-banner--info","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-banner--info__neutral-light":{"sha256":"160b90452c99198c656ff4a19a9bf9bf94626d94e636cd5ba5568f0cf361fd39","storyId":"core-banner--info","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-blockquote--default__neutral-dark":{"sha256":"e15a1c7d878c5856a39bbe2fa2f58eecb6b48aa4a9089a72a6ebfa459e5532a0","storyId":"core-blockquote--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-blockquote--default__neutral-light":{"sha256":"75b2927b8489066b6a4ede9ecf468a8135c66e8d73d0fe54ed717878721e3f12","storyId":"core-blockquote--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-breadcrumbs--default__neutral-dark":{"sha256":"9fa0fb43331f4fc83abe7f1f769bb3bd84283169d323244785214d5970768e97","storyId":"core-breadcrumbs--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-breadcrumbs--default__neutral-light":{"sha256":"71a5bc073e4456d2e82b138c4e356f63bcae78f0ba079568b218ef7f67b2ded5","storyId":"core-breadcrumbs--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-button--primary__neutral-dark":{"sha256":"dc2e426c89d59707d49a8213174b47b34f3efa216431af3d1dad20aed196b007","storyId":"core-button--primary","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-button--primary__neutral-light":{"sha256":"bea58e5abfbb3d29a87d964a9598093c5aa46e63fbf5ce9ad7363f6400273f50","storyId":"core-button--primary","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-buttongroup--horizontal__neutral-dark":{"sha256":"1a28dee379ac0fb8f69f78fdd0264675dcae46396aee93027d61a79615988910","storyId":"core-buttongroup--horizontal","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-buttongroup--horizontal__neutral-light":{"sha256":"05045342e703e3d13230f09c725d90dd9538f31c4ec70eb70d476c5bb87d2c4f","storyId":"core-buttongroup--horizontal","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-calendar--default__neutral-dark":{"sha256":"0ab3142b80afe07e9772f524136dc1bb0f613817082bf43e82c5aacfab99d5da","storyId":"core-calendar--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-calendar--default__neutral-light":{"sha256":"bb1bcadcf2216bd9e21fe42f39c9aab276ddb4846dd9e5d7d48a57cf7bf1f7bd","storyId":"core-calendar--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-card--default__neutral-dark":{"sha256":"70c409f2a53f4b72dc8324b4504dae0395c940c555e4918f58b3efa203703286","storyId":"core-card--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-card--default__neutral-light":{"sha256":"7b4c64bb47b2b8fde8e6d2f06da15b1675ca0c2dc363a196b248efdf71c1df70","storyId":"core-card--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-carousel--default__neutral-dark":{"sha256":"adc639cdc048c9f839a9308a6d2e9b5d539f3de1b682f0f67b55af51a287b146","storyId":"core-carousel--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-carousel--default__neutral-light":{"sha256":"6d93d48b2e77990cdab69358f536f15a968f94c78f592d9e80954a399825384c","storyId":"core-carousel--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-center--default__neutral-dark":{"sha256":"0e8e1fd438dc558bb7ddeabf0ad44bbf6674601d548b53a250c41cadd6bbd17e","storyId":"core-center--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-center--default__neutral-light":{"sha256":"ed52e099524d1b92b5cd1ef6aedc8321775b2907b954edf2048243db32039a61","storyId":"core-center--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chat--default__neutral-dark":{"sha256":"8dc2c2e25b283234cf16e60f7e6797e314181810fcc3914961ca57d1debdc47a","storyId":"core-chat--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chat--default__neutral-light":{"sha256":"84b6a94c4e4ea3783f7e2876cf04c0e5623f08489ec585e66756b705793e0190","storyId":"core-chat--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatautoscroll--scroll-behavior-comparison__neutral-dark":{"sha256":"24c6ae54cf8ce16629bb58be86dc09867fa736a9229c29a1e7bb1673c276527e","storyId":"core-chatautoscroll--scroll-behavior-comparison","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatautoscroll--scroll-behavior-comparison__neutral-light":{"sha256":"c4ae31b444104940fb9e2ddb1ac319a39f5d3212e02157a67488fc702ec44d97","storyId":"core-chatautoscroll--scroll-behavior-comparison","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-checkboxinput--default__neutral-dark":{"sha256":"f9d83ea569a0e5f9066e18c4981267b4bbef0e6686f669c32c9010a7acc63189","storyId":"core-checkboxinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-checkboxinput--default__neutral-light":{"sha256":"607de6d431cee0cb0ca7e39a7436e1971b5d504c27eb8a598759cb4a4eb2358a","storyId":"core-checkboxinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-checkboxlist--default__neutral-dark":{"sha256":"069d4d95d4f251f7eccd56285c9ab942630f0f4ed9cd1ead4dc0110359f64589","storyId":"core-checkboxlist--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-checkboxlist--default__neutral-light":{"sha256":"62ab51748bed6189b0b9d6e83fd97ea9276593a07b9e21752f2f742f84c79963","storyId":"core-checkboxlist--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-citation--label__neutral-dark":{"sha256":"af303e9995b0f89b30dee300ae193abac885ebe5d6d3ddf4cdad8d742bcebbe8","storyId":"core-citation--label","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-citation--label__neutral-light":{"sha256":"af04a5f1e57360bd8094f4defac688b6b97933497a33f987778d6af51442e6d7","storyId":"core-citation--label","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-clickablecard--navigation__neutral-dark":{"sha256":"fd3f08ee54ba8a04cf8915616e425f1a05534719690d541aa22501901e8743b4","storyId":"core-clickablecard--navigation","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-clickablecard--navigation__neutral-light":{"sha256":"22ac75afc4d75257b483c02d0dfa097e6e356130c364534d8b122236ce2620ab","storyId":"core-clickablecard--navigation","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-code--default__neutral-dark":{"sha256":"bc4d0a15a1bdafd86006275bd9615d78dff564a1ea033053030b20a9d737398d","storyId":"core-code--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-code--default__neutral-light":{"sha256":"4220d35d02c55b417ca1d4c79f1305163e2a57f473df0749c00ab42b078201e2","storyId":"core-code--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-collapsible--single-mode__neutral-dark":{"sha256":"07b19f3bf6d5a53e1299da356acbb3ad27f0d5af8eb1048c8c68a89e250eff1f","storyId":"core-collapsible--single-mode","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-collapsible--single-mode__neutral-light":{"sha256":"a1a3921589dd1c8d5874c44dda5cafdd861c8a2ce38305f1fdcb780a260b3e7b","storyId":"core-collapsible--single-mode","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-commandpalette--default__neutral-dark":{"sha256":"9fb02be59bd390e6849e3eb9cc34a69f4d4a709decda739b187cd155fac29170","storyId":"core-commandpalette--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-commandpalette--default__neutral-light":{"sha256":"bdbdb5f4f6cc8d3c0178289ac7b56c1fa2e6d9eecc327562f54a0b54a43fd136","storyId":"core-commandpalette--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-complexselector--fruit-ripeness-grid__neutral-dark":{"sha256":"4a66c758d214dddd2d299a1d1617e2f5b0612515554401789eb28a8b2c28453e","storyId":"core-complexselector--fruit-ripeness-grid","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-complexselector--fruit-ripeness-grid__neutral-light":{"sha256":"b05328771081b613c2818dad7685575b2bb848a8470bdf2e28ab5f401de0dc91","storyId":"core-complexselector--fruit-ripeness-grid","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-contextmenu--default__neutral-dark":{"sha256":"4d5e3f6e571e9cc63a7b14a7dde816bf197d2f7a44e8116fd445875f9c867817","storyId":"core-contextmenu--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-contextmenu--default__neutral-light":{"sha256":"cc1b5d4404ec734eaa157f3ccff5e7721bc20ac5bb4bb1771577b0f1bd109b6e","storyId":"core-contextmenu--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-control-size-comparison--all-sizes__neutral-dark":{"sha256":"9d67e3e25a6b6530e8aa5ff503a260d2dd7ac9471acd7ab390c8acff198f8ad5","storyId":"core-control-size-comparison--all-sizes","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-control-size-comparison--all-sizes__neutral-light":{"sha256":"d9eed2ac10ecdec042ce6c52a916fb39ec743fcea8107a6a76d59ba6603f4ba2","storyId":"core-control-size-comparison--all-sizes","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-dateinput--default__neutral-dark":{"sha256":"bcf08835fa1f531b87582fed37cf8cb87b809534e898be28ae3111e34c096bd2","storyId":"core-dateinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-dateinput--default__neutral-light":{"sha256":"21b760ba00b5e9d2e6805ab740f1143c6884eb81dc9e3c8d66cc9938e2334226","storyId":"core-dateinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-daterangeinput--default__neutral-dark":{"sha256":"7cc7432fd4e3331b29246baa53922e83931cd369dede3a6b3daa02b37ce64074","storyId":"core-daterangeinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-daterangeinput--default__neutral-light":{"sha256":"fd398c172b95e2ec7e49d923b860172964c8e7da02761c81eb7d33b4decdc7a0","storyId":"core-daterangeinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-datetimeinput--default__neutral-dark":{"sha256":"01c549272af71fa5eafa16d093f450f17f42bd1b742411bafb6743d0d61e6120","storyId":"core-datetimeinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-datetimeinput--default__neutral-light":{"sha256":"df1bdfb0c77b905ddad978d4111812b52e3d8b5f60b5ba8f5c1b60be153dcf40","storyId":"core-datetimeinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-dialog--default__neutral-dark":{"sha256":"71b9b4dd8093e70747ac8e4c1aaeb02bc32c860616030bc07de4dac013dcb21d","storyId":"core-dialog--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-dialog--default__neutral-light":{"sha256":"bd99defe88e41adf5c8d1d30f7100e0e29cb43eb415e91131fa5681165926f94","storyId":"core-dialog--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-divider--default__neutral-dark":{"sha256":"942754262404b9526e8cd09f0d34663381fc864807d2d42899dfa8ba3a324d6d","storyId":"core-divider--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-divider--default__neutral-light":{"sha256":"bf849fb25331c291109570541348211a89d8333ad314fcc58812a2ae3b3cd389","storyId":"core-divider--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-dropdownmenu--default__neutral-dark":{"sha256":"9149199928ece3f65dbf7dc7acacef0e3e6fbcc00ddb6b492e4b0fc3a07e0200","storyId":"core-dropdownmenu--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-dropdownmenu--default__neutral-light":{"sha256":"627a51ffe2e9d5a7a9c60eb421d0c71341fbd46207c829a5813685684c0c5af9","storyId":"core-dropdownmenu--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-emptystate--default__neutral-dark":{"sha256":"0d6401ea62d550ec4f724bd0566863be27014aa08b1e162eaedc00af9885cc8e","storyId":"core-emptystate--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-emptystate--default__neutral-light":{"sha256":"ba537c6eaf546833e917d020a3cc1d6cdac5bb0b2b1c91b146c0a931901e5eec","storyId":"core-emptystate--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-field--default__neutral-dark":{"sha256":"23541b8464335ecf0beeed22103307c1cac405c776bbaf55cc4e560a512a5888","storyId":"core-field--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-field--default__neutral-light":{"sha256":"9142d09c7db092969dc47da078112789fc4c00c4d15960548c78a259219a3c23","storyId":"core-field--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-fileinput--default__neutral-dark":{"sha256":"1eeaf7c2c88a06695e047edcd4daa6eda018f8f6fd647b860c8349786d720f9b","storyId":"core-fileinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-fileinput--default__neutral-light":{"sha256":"5896d01a3cc1deca664115407d3368bc3522f813f579eb3bc30b9e6e1dea8388","storyId":"core-fileinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-formlayout--vertical__neutral-dark":{"sha256":"bb4dc5d3077d8f365d113aa96c1a2c3e8a3cb56d1a09590302460d699e703d72","storyId":"core-formlayout--vertical","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-formlayout--vertical__neutral-light":{"sha256":"5b9ff4d6ca1e255871737fc4d122f85dea92b93e03b6747a734cd1e7ed94b712","storyId":"core-formlayout--vertical","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-grid--default__neutral-dark":{"sha256":"e67029e49c10fb316709cfe43e20fa0d0ac960fe0380e67551fa9c04a10e73f4","storyId":"core-grid--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-grid--default__neutral-light":{"sha256":"c6bd1bb8bbfab7e61bc17bd1314da1713c517d8559f36e40bcb24900c47ff5fe","storyId":"core-grid--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-gridmasonry--masonry-gallery__neutral-dark":{"sha256":"8f582e1ec7b02462a59a66439a85352c7efa373f31479c1de46c64d7d0b99c77","storyId":"core-gridmasonry--masonry-gallery","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-gridmasonry--masonry-gallery__neutral-light":{"sha256":"cb0323cc13adeeb6abcf500fad4d6bb7d24af4c7a1f9d8fd400af4134d38a2ee","storyId":"core-gridmasonry--masonry-gallery","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-heading--level-1__neutral-dark":{"sha256":"3f3e579646c3a3860696330b83e432489bc7e7334c609422c974cf20a3f11362","storyId":"core-heading--level-1","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-heading--level-1__neutral-light":{"sha256":"00b64340959a8b9bd783900394c9014cc0a0e9deb0030ebe2cbaffd50d362314","storyId":"core-heading--level-1","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hovercard--default__neutral-dark":{"sha256":"468c46141f86dd4b1b9c85abe7d206cc87e35e19af3754a297beac805125c9f5","storyId":"core-hovercard--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hovercard--default__neutral-light":{"sha256":"a053f1703913fcd31deb19a1b3891706b2d38fccc5560af011e014b15a38b632","storyId":"core-hovercard--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-icon--default__neutral-dark":{"sha256":"b939bb68d63a23e7b87dfb328c1bdc39586c3579788a841284cf8140bff3f8a4","storyId":"core-icon--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-icon--default__neutral-light":{"sha256":"4f3a32fca651576dd52f59d6bcd1abafab83ca91c3b04c921428b33c8d417921","storyId":"core-icon--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-iconbutton--default__neutral-dark":{"sha256":"4c63cd006e3034772ee760c42cad389aa60c02323482d5199777a65961166e71","storyId":"core-iconbutton--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-iconbutton--default__neutral-light":{"sha256":"a6660bab6239c6da40e2abec731b056a449bd7caa107f7e04a654c375a2364e9","storyId":"core-iconbutton--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-indicator--all-states__neutral-dark":{"sha256":"13d78a7d67e0fcfb4f40d3087e33693529fb3b28b3c024a40387243876e3c36c","storyId":"core-indicator--all-states","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-indicator--all-states__neutral-light":{"sha256":"d9b29cb2af2145c60faf4e3aab2cf064c05f51a041c2b03f6719a3849ecbfedd","storyId":"core-indicator--all-states","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-inputgroup--with-prefix__neutral-dark":{"sha256":"2d898c2f0e81e4ce4d4875a074f7a52a66ea9f0641a60671a601a66bffa1bf6e","storyId":"core-inputgroup--with-prefix","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-inputgroup--with-prefix__neutral-light":{"sha256":"2d8c2db5a936b351176ce5c8707a2564479f90a4d62bb1525f73b13dd69155a5","storyId":"core-inputgroup--with-prefix","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-item--default__neutral-dark":{"sha256":"6a6fdbd91fe1c81b8538bc733f4a5bfe9b521e79b1382f1a2fb7fcb060e1235f","storyId":"core-item--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-item--default__neutral-light":{"sha256":"ec95f3c1fe30d2468ab14e18a785a3e62822da6fb56b2bee5f566f200be72026","storyId":"core-item--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-kbd--default__neutral-dark":{"sha256":"cdacd8921080f70c3537742927f9340744ad586671f2885e92d33f0179ae0fef","storyId":"core-kbd--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-kbd--default__neutral-light":{"sha256":"7e8c75e5b1b1ae88e5b794dca3a974a610eff17ef68ef9100634142b261885fa","storyId":"core-kbd--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-layer--context-mode__neutral-dark":{"sha256":"925b47d9179f31b28ae60966b5748fa3eae46560c6dcc4a9e4c69a3a8539d77d","storyId":"core-layer--context-mode","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-layer--context-mode__neutral-light":{"sha256":"04f60cfca1db073190de216308c1c5dad5f812cbca9a8cb4f7c7282d8d305265","storyId":"core-layer--context-mode","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-lightbox--default__neutral-dark":{"sha256":"a877f1268f1f454e7a1d4f209aee12281b1ca36a4b33769eaab941d69d3a605d","storyId":"core-lightbox--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-lightbox--default__neutral-light":{"sha256":"d67f72e6c623ffbb985a7c45eea6378e0d8286f0bd0c2636091a49c332641f02","storyId":"core-lightbox--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-link--default__neutral-dark":{"sha256":"a29a1faa35d2eba791a06356610a6d7b6e206101c3d1fc7ffe2c0624bd074288","storyId":"core-link--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-link--default__neutral-light":{"sha256":"f9f0414a43e7dd277a79547a26883a15db01d04387286362f467a1c9a8e7f38a","storyId":"core-link--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-list--basic__neutral-dark":{"sha256":"a2ed2a62261ea3ef8a0c8046d25057a2d3cdeeed267174257138d90f3f31f146","storyId":"core-list--basic","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-list--basic__neutral-light":{"sha256":"727ff659de46db5991f1f1778c974093fcb50f14be6cb2131ff4b9b36b221127","storyId":"core-list--basic","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-markdown--default__neutral-dark":{"sha256":"09a74981ad7300f1f0e6fd741f3c64ee67abf6ce5e4d688f847b183452508ee2","storyId":"core-markdown--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-markdown--default__neutral-light":{"sha256":"20e346c896ce7a08d0d1f9a1b2f001387883cb610f3c30995bcbb8b6bc7a609b","storyId":"core-markdown--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-metadatalist--basic__neutral-dark":{"sha256":"d91fb88882fb74edd5478c07116abacde7fe697dc953734a46711f7f8d715a23","storyId":"core-metadatalist--basic","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-metadatalist--basic__neutral-light":{"sha256":"ef5511f828a86324a9921ccf052c1b2a32e45fafbc7786c917c733b818accd87","storyId":"core-metadatalist--basic","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-mobilenav--default__neutral-dark":{"sha256":"0dc0d2efb78646ec8af527d0d89d2af490c5c23604b64b922a783b6694aa91a4","storyId":"core-mobilenav--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-mobilenav--default__neutral-light":{"sha256":"fad3dd619a74c6e737f7611fa2e888a3574469b091f344de8070b31fcbf45a84","storyId":"core-mobilenav--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-moremenu--default__neutral-dark":{"sha256":"a8573a9bb008eae1bc3006db795c8ca8c6a53a5ce17839869841df2fc2d9f605","storyId":"core-moremenu--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-moremenu--default__neutral-light":{"sha256":"64d504e2c875ec7cc45910a42d3f3e0d5c0fc78bfdc951425c98fdf43e5d733c","storyId":"core-moremenu--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-multiselector--default__neutral-dark":{"sha256":"1ccdbae259e3dcf4caa4c7ec7a26696110d1b609692f220d64d990344bc6a869","storyId":"core-multiselector--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-multiselector--default__neutral-light":{"sha256":"0c73fe1fca5c545ea7b662b12e6ae8b3c0fedc5447db5cfb12c185c82e8310d5","storyId":"core-multiselector--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-navicon--default__neutral-dark":{"sha256":"245e6051404d5fe442946d61f59886459b8b5eed59b36357782c69e403729669","storyId":"core-navicon--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-navicon--default__neutral-light":{"sha256":"677bf7b151992c38bfb98ac1db76ddb165bcc789e7bcacc791ff620b3fc440ce","storyId":"core-navicon--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-navmenu--default__neutral-dark":{"sha256":"4baa093109559211be9ec9a144ca5cbc95f97b77d7ac6987c1c3e34f78a88018","storyId":"core-navmenu--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-navmenu--default__neutral-light":{"sha256":"60e50321c869e00fc6e75fcf7578befd21075bb711e2238cb3696780a168d54a","storyId":"core-navmenu--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-numberinput--default__neutral-dark":{"sha256":"89d706f3d8850aa04834a21632207980b834e4defbf20540828b45dc4ce443bb","storyId":"core-numberinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-numberinput--default__neutral-light":{"sha256":"edb5ef46c32730359302b0a04ccb87ae9883efbf431906e467144595fe58a7ce","storyId":"core-numberinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-outline--basic__neutral-dark":{"sha256":"45a88caceb15a969c82e04fa69fd0ae9e83ac3b55808c05abfaef047b95b9576","storyId":"core-outline--basic","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-outline--basic__neutral-light":{"sha256":"079b887a5cbb1dbc4922573cadef22f7cd3dd59e1178407de2375f99e9884f5e","storyId":"core-outline--basic","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-overflowlist--default__neutral-dark":{"sha256":"34bfbc0c63e1d4efdccff19b99f1c3243e7901f37ba19b1d20c19e57e3f1b0ab","storyId":"core-overflowlist--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-overflowlist--default__neutral-light":{"sha256":"04ab6a46a2832a5d7e6b8df876b567c751880f891e6fef12ac4721755cde8f82","storyId":"core-overflowlist--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-overlay--hover-on-image__neutral-dark":{"sha256":"649c3449a4ce419e700249ccf761bad06e3038551d5ec9525a3052f6138c81a1","storyId":"core-overlay--hover-on-image","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-overlay--hover-on-image__neutral-light":{"sha256":"19913e8e8b67b082945c8349b22ca95040ec4481209cf482c7c241d1549bb45b","storyId":"core-overlay--hover-on-image","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-pagination--default__neutral-dark":{"sha256":"d43ce3cead545391fb08266b004376279f6ebf5764fcd0fdbe304ea6c372aa32","storyId":"core-pagination--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-pagination--default__neutral-light":{"sha256":"072f59436d55577aa93d0006555939057347b7d2ccc545e247c11b71f112ffad","storyId":"core-pagination--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-popover--default__neutral-dark":{"sha256":"0b5334642e082ec0cb0a646ff28722b41b8b139c54e5767855eb4e83196f859b","storyId":"core-popover--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-popover--default__neutral-light":{"sha256":"aa05c46e6cff9c25b1e3166855d050782fd4e0d8d5bb6346e4b25f2d0f12f612","storyId":"core-popover--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-powersearch--default__neutral-dark":{"sha256":"1577f9b88601d105a6281f3d996a71162e4dd3f2629f31011f1259f6b18a309e","storyId":"core-powersearch--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-powersearch--default__neutral-light":{"sha256":"8cdfda9069d5b36812517ac6bbbcbd69b1610d54b7ea7d59e46152e94fcaf13f","storyId":"core-powersearch--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-powersearchwithtable--default__neutral-dark":{"sha256":"59340ab3ed279707168e613668064e1fded1b96379b47a0eac9f5262c99df207","storyId":"core-powersearchwithtable--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-powersearchwithtable--default__neutral-light":{"sha256":"ca37bfdaf40b17ccad3f0211bb5ac0b4fa2c5bda0428292b9764f21ebed313a1","storyId":"core-powersearchwithtable--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-progressbar--default__neutral-dark":{"sha256":"6f525efe95fdb7e924607fca3f5116debdf73113bc8b9281bab73ec129c9b509","storyId":"core-progressbar--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-progressbar--default__neutral-light":{"sha256":"748e6d77af53433b9be66653da118ce7e6fd913e6285b21f076d9c9ee6073af4","storyId":"core-progressbar--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-radiolist--default__neutral-dark":{"sha256":"fff6fd8cbb74d0ad5dfda454419d5410bedab65d55f3bc12fa2a0b96c4ac9f0b","storyId":"core-radiolist--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-radiolist--default__neutral-light":{"sha256":"7418eaf05e9f3b1c3ffd383d8c7185fb025c573575cf0e268a48efa8dd3e900e","storyId":"core-radiolist--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-section--default__neutral-dark":{"sha256":"de4de50523c6f9e397a31e58c4f6cac83d9a2271a966bcf01b66b8df3dc26777","storyId":"core-section--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-section--default__neutral-light":{"sha256":"9941eb225f5c013182143127aa5e850acb932d071cca6ad944c5c09e102a5d1b","storyId":"core-section--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-segmentedcontrol--default__neutral-dark":{"sha256":"9671ed1ccbb638573a4ffd92b5864505f3f88d9610d1fe50f155909c9cc5db58","storyId":"core-segmentedcontrol--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-segmentedcontrol--default__neutral-light":{"sha256":"1aa917c8174b2ae994f283e3e39407a8d13f6980c326d002fef96a470e91450a","storyId":"core-segmentedcontrol--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selectablecard--single-select__neutral-dark":{"sha256":"84454a4ee7057d506217ab156da1719a9abe1087f0aec13da127491fa66d0551","storyId":"core-selectablecard--single-select","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selectablecard--single-select__neutral-light":{"sha256":"c2ac66b61173b407da777005efb48825d49146cc41e29a9ce293baa031f6734e","storyId":"core-selectablecard--single-select","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--default__neutral-dark":{"sha256":"f945489abb3e81877aeb1c8dddeaa5b2f185f72fca2534b3a9ecaae8141f7746","storyId":"core-selector--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--default__neutral-light":{"sha256":"5bb38d8526b45a9ea88c9c319a6036a380886ec647585cacaf7869177def19d7","storyId":"core-selector--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-sidenav--default__neutral-dark":{"sha256":"e13fcce0d13d16a8a4ca640c8484a97dae48cc9bcbd711c1a57843e2afb4b7ce","storyId":"core-sidenav--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-sidenav--default__neutral-light":{"sha256":"b453da9dfb9a036cefe1bd8b9c3ef63420966251082ee86608352d36fcee2e88","storyId":"core-sidenav--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-skeleton--default__neutral-dark":{"sha256":"f67b311d97c6d3b54611cd8360080a0b6e5b379782761de5d5d1bc4b792ace61","storyId":"core-skeleton--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-skeleton--default__neutral-light":{"sha256":"f555ccc425f85beae82d2e810ab5dfaf2af2999226042a67323eb94e2f2c8b5e","storyId":"core-skeleton--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-slider--default__neutral-dark":{"sha256":"18148531084195dd846c2f56843750a1bbbc98ef1242302cde45e58c8e770c65","storyId":"core-slider--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-slider--default__neutral-light":{"sha256":"291b36ae9df82bd6cc888bd25d3fbeb3fd2035ec98f4cde9846731319b9c2917","storyId":"core-slider--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-spinner--default__neutral-dark":{"sha256":"8b71309f77022895634e984eaf10aa49c5886023960973021a2369f0cf939190","storyId":"core-spinner--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-spinner--default__neutral-light":{"sha256":"a69b108d39bfc12d27ca82bc7ec3a759da4312299c30ded493559344145c40be","storyId":"core-spinner--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-stack--default__neutral-dark":{"sha256":"3a38440e3a612144f3527885585309c842aeabdbc8961f33ae93c69d12660617","storyId":"core-stack--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-stack--default__neutral-light":{"sha256":"e5bd30faa34fc52dd680ce6ece6e4d22f1cd855cb6455067b0b2826ee358e83d","storyId":"core-stack--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-statusdot--default__neutral-dark":{"sha256":"39935ace4d8391b5b1c430ebc6555460322a75ddf6ef70ad8d2654284b319642","storyId":"core-statusdot--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-statusdot--default__neutral-light":{"sha256":"9360840971787bfe446aa974cfe03670cb342cd494a255e6e0455a877b17ce4f","storyId":"core-statusdot--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-stepper--default__neutral-dark":{"sha256":"630fafb40cd78e66c141693076273e2fd470bca937f1543658dbf79c32babb24","storyId":"core-stepper--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-stepper--default__neutral-light":{"sha256":"731a8d10ded8f6614c23882667d9f6ca347e668fbedaa089ecad5d19f6400b04","storyId":"core-stepper--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-switch--default__neutral-dark":{"sha256":"a80d49db2273b418eb75456727c7e4e614b09861d9f7e6b79d8b5ca2636fab94","storyId":"core-switch--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-switch--default__neutral-light":{"sha256":"5a3dbefe8bf53a86cc8546c8ad86d22ff964d5eced512fcdd5a681849c3b5ac1","storyId":"core-switch--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-table--default__neutral-dark":{"sha256":"1c43587a9acde7df7767177a54b89254ebb43202e91b4d58397e861503599356","storyId":"core-table--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-table--default__neutral-light":{"sha256":"45b49d9edb21768287c504d792af99756608eb3163d6af21ade99616a998dc48","storyId":"core-table--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablecolumnresize--default__neutral-dark":{"sha256":"e71f8d5bb4cc213758b9b4ccbab0f38c221d28c28c7725d29c49869e2ef47ae1","storyId":"core-tablecolumnresize--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablecolumnresize--default__neutral-light":{"sha256":"83825b041701ea70e103652fb5952a18a28fd4b8d5b2974867aaedf12451de0e","storyId":"core-tablecolumnresize--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablecolumnsettings--basic-column-toggle__neutral-dark":{"sha256":"5996c4f9b5670cfd1d05ff75859814749565f64a75b430074033633472acbf3b","storyId":"core-tablecolumnsettings--basic-column-toggle","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablecolumnsettings--basic-column-toggle__neutral-light":{"sha256":"83d295eef5281d4d251f877aaa85a8b687b0366faecf9b46770355e9b4321fdf","storyId":"core-tablecolumnsettings--basic-column-toggle","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablefiltering--text-filter__neutral-dark":{"sha256":"8bf1422c970faf06d08fbfde416ba736ebea146f676b8160d69ef4124f58baa0","storyId":"core-tablefiltering--text-filter","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablefiltering--text-filter__neutral-light":{"sha256":"63b623a9a1c9d0d96387e858ca852417379275fe280976023749fab7a75a5a57","storyId":"core-tablefiltering--text-filter","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablegroupedrows--default__neutral-dark":{"sha256":"a1304d4dafda1876b9f34435a273add82c030f55e9a630a553798b790ca80560","storyId":"core-tablegroupedrows--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablegroupedrows--default__neutral-light":{"sha256":"d3e961bd820f5ab8a08afe06aa8f0d443f40c10693c7314d39adbe932b784305","storyId":"core-tablegroupedrows--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablepagination--default__neutral-dark":{"sha256":"9d214dee8d9f12fa24a4bd23dcc2673d0eeabd1339a8f65ffc8b1e770869d351","storyId":"core-tablepagination--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablepagination--default__neutral-light":{"sha256":"89debfd56cb121063c7cc9d504c740a3ff64fe1b93faa69014c62465ab64e25a","storyId":"core-tablepagination--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablerowexpansion--detail-panel__neutral-dark":{"sha256":"eb79d17c8d3c0fb89a3b0d8be7335a25c80349752babf8af704d596734116390","storyId":"core-tablerowexpansion--detail-panel","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablerowexpansion--detail-panel__neutral-light":{"sha256":"f3824bba213dc007516f5668cb17f20c82b3b6a35adb3ed90046c5522cbd66da","storyId":"core-tablerowexpansion--detail-panel","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablerowindex--default__neutral-dark":{"sha256":"b801a7435213d982da73af123b78ab7e1264bc3aeca23e9de00c0e0c72c7d0ef","storyId":"core-tablerowindex--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablerowindex--default__neutral-light":{"sha256":"642c121bc9f7a3433825b98fc57e56cd1d749c47f0c42487b76bbae2d36abfa4","storyId":"core-tablerowindex--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablerowstatus--default__neutral-dark":{"sha256":"c783c89266fba9b333d9fb5659830f5d2a78f1844479108fdfed641363992b47","storyId":"core-tablerowstatus--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablerowstatus--default__neutral-light":{"sha256":"6d01f9b92de080e92becc6ad5547f602accc67906851e90717358ee6a648da38","storyId":"core-tablerowstatus--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tableselection--default__neutral-dark":{"sha256":"4f47859ea0c423fbe418f43f36b5baafedf3496bc5cf090f878ec0ac57258a57","storyId":"core-tableselection--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tableselection--default__neutral-light":{"sha256":"1cbd701e4a714b7c4d11188b46634f101ad5c51646d25236062f35da46682149","storyId":"core-tableselection--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablesortable--single-sort__neutral-dark":{"sha256":"742d1545783f754e8fd7005d7f3f728790266960c7df1daa6f16b390fa793a0c","storyId":"core-tablesortable--single-sort","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablesortable--single-sort__neutral-light":{"sha256":"7eeb84e53c95497375b9e6bfbd0e611a11a31fb1944181c951a7566e65b47698","storyId":"core-tablesortable--single-sort","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablestickycolumns--pin-start__neutral-dark":{"sha256":"ea474f8b32c94e6888ff7d3bc484d83031347587466dd6bd89f8f6379741a95f","storyId":"core-tablestickycolumns--pin-start","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablestickycolumns--pin-start__neutral-light":{"sha256":"758d2ba40c49198b4307c791be6c8354da575885cb0dc8a1fb7b3ffff3efca45","storyId":"core-tablestickycolumns--pin-start","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tabletree--default__neutral-dark":{"sha256":"6ea593aa72b46e084af64ce49a6ed1bd25adc2741290e4db93a0651a9975f360","storyId":"core-tabletree--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tabletree--default__neutral-light":{"sha256":"194b9812a3f2f32fb3610c3f675f9c4f74c2e910c79a71c5a44fe703952af09c","storyId":"core-tabletree--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablist--default__neutral-dark":{"sha256":"5f13565e54a4e1b7b9598d2e3851560b744cf7233ec29bf4c887dabda38678d9","storyId":"core-tablist--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tablist--default__neutral-light":{"sha256":"82edffe3ba21ec1efbc08194b6851fb1713fa4e2e4023a0b1fa1cc282287974f","storyId":"core-tablist--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-textarea--default__neutral-dark":{"sha256":"9015f39edf24632fd6ee2d2d6ee02f56e4bb5b9222ed8c06a0bf93a4b5af8d92","storyId":"core-textarea--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-textarea--default__neutral-light":{"sha256":"dbdd04d5d9f39926325d1a3672875ac966bfebe578e763f4d3b9fdb0468db2b0","storyId":"core-textarea--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-textinput--default__neutral-dark":{"sha256":"ea8bce15139f061c10e3e11a9e6e8b26dcd3212193c23cc68a9659885c2443bc","storyId":"core-textinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-textinput--default__neutral-light":{"sha256":"e477109724333184633acd527b29b99b4756fc5e87a08fb437d169182ae8be09","storyId":"core-textinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-thumbnail--default__neutral-dark":{"sha256":"e8ab3a22d119aecc8d3d42d8a9a4ed5a5fcb5d17d7c4d2f08318abe833b3e535","storyId":"core-thumbnail--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-thumbnail--default__neutral-light":{"sha256":"4944a06a3f1778a73128d7bb16680d65167600914a16c2209d0658e5943d8b5c","storyId":"core-thumbnail--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-timeinput--default__neutral-dark":{"sha256":"29e01c7a9d992de4fb50053abf05e4e1089053951f0a9398b5344eaf5a43e2bc","storyId":"core-timeinput--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-timeinput--default__neutral-light":{"sha256":"d762f68f615dd6e3e91bc116354350d972318b422b5972294ec2508343d94ecc","storyId":"core-timeinput--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-timestamp--default__neutral-dark":{"sha256":"ff134939a94c497ba375276d55e136532301d26924a05c09e340acb6a691a7da","storyId":"core-timestamp--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-timestamp--default__neutral-light":{"sha256":"0e06f0fe26fc181cd2735fab73be65d019d53c111c20dc687c8ca33aa0c41fdb","storyId":"core-timestamp--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-toast--default__neutral-dark":{"sha256":"e23a6fdbdfc3dec5111b183ddfea750522bbb8ae7f189ae5763d4d4c5768a6e7","storyId":"core-toast--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-toast--default__neutral-light":{"sha256":"1ffb0f1a2a5a55a2b9dd0bc5a28010d54f5a565b091e0e256ed916715a9cc6bd","storyId":"core-toast--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-togglebutton--standalone__neutral-dark":{"sha256":"325077bd47182769f7f1dd189e6c2c32b4e274557524b0b43893778d413d941f","storyId":"core-togglebutton--standalone","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-togglebutton--standalone__neutral-light":{"sha256":"9584915ba7247c4f454465d38284521d430e722095c6ddfdf54bcb5be44f79fa","storyId":"core-togglebutton--standalone","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-token--default__neutral-dark":{"sha256":"687d9d8d6c3fbf620ae64a7f63b19a619a542349dea1d2f326b5628dbf5d246e","storyId":"core-token--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-token--default__neutral-light":{"sha256":"ff5bff828e9f05b02b79a16c2433831ba14511ee434c182f83a6c8855bc1944d","storyId":"core-token--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tokenizer--default__neutral-dark":{"sha256":"3c50c4a8ec09f105db4efa631ce8ee92a697247f019b26fff230716f26b528c5","storyId":"core-tokenizer--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tokenizer--default__neutral-light":{"sha256":"9b6c1a36fbb59884e0c6b99e4eae654a8a7e719f7bf446dd8456b5c3ca3082be","storyId":"core-tokenizer--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-toolbar--default__neutral-dark":{"sha256":"27be1c41ea9ad9bcd068529dd09756d8499b0a047163dd08d8cad19ffcf14566","storyId":"core-toolbar--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-toolbar--default__neutral-light":{"sha256":"3b6ad31003657511e9ac50c9afe177b1627b81f1b3a5b2aaf1aec08042718e00","storyId":"core-toolbar--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tooltip--default__neutral-dark":{"sha256":"468c46141f86dd4b1b9c85abe7d206cc87e35e19af3754a297beac805125c9f5","storyId":"core-tooltip--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-tooltip--default__neutral-light":{"sha256":"a053f1703913fcd31deb19a1b3891706b2d38fccc5560af011e014b15a38b632","storyId":"core-tooltip--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-topnav--default__neutral-dark":{"sha256":"f7eb729a1a34e36a045b58ab9a941f0c7991e690b5b9c5a5e89f04d39623c145","storyId":"core-topnav--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-topnav--default__neutral-light":{"sha256":"92a224698b858bca3c6b36fad33467f548b925eabcc51a29b69449dbacb16dc4","storyId":"core-topnav--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-treelist--basic__neutral-dark":{"sha256":"91025fd1d3e85c5d34efa7c16444f01dd5d3b32380d2f492181b344d4e47555a","storyId":"core-treelist--basic","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-treelist--basic__neutral-light":{"sha256":"9c4ef126ac0c8f87a20dd28782a335c568d996f5d3da40bad697e604a2342a17","storyId":"core-treelist--basic","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-typeahead--default__neutral-dark":{"sha256":"f413af2a6e713b4b59a066470cd5a8ffdc7c3e2984ebd1b68388fc61b938c0fd","storyId":"core-typeahead--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-typeahead--default__neutral-light":{"sha256":"9bf072d0216cf12a4e1be66593a1df529402d371bd48b056e360088e746ee632","storyId":"core-typeahead--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-visuallyhidden--default__neutral-dark":{"sha256":"5c5cf3d482893c3ef18c0326508c14af319373cebfed66248d737a0731c5f2b8","storyId":"core-visuallyhidden--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-visuallyhidden--default__neutral-light":{"sha256":"0066bf852b6b12143c69dbaff905d5c8dc624c93450f215d88d6ebc3d0d22dd8","storyId":"core-visuallyhidden--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-useclipboard--copy-icon-button__neutral-dark":{"sha256":"b177b7295e749c5d2548c9b4f1b3d729d80f8086b9b6932c2c677a66b4054773","storyId":"core-hooks-useclipboard--copy-icon-button","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-useclipboard--copy-icon-button__neutral-light":{"sha256":"f59a9637bb57313f7203435b37efa57ca7b363afcd53243c6f6b6820ddb646bd","storyId":"core-hooks-useclipboard--copy-icon-button","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-usecontainerreveal--reveal__neutral-dark":{"sha256":"e7c36ec1654b10dae2259823127399ccebd9f2caf94d2b239c0eaa6dfc1b813a","storyId":"core-hooks-usecontainerreveal--reveal","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-usecontainerreveal--reveal__neutral-light":{"sha256":"d3838e4a88c79ed969f2781694cead18865eef94fe5ac868580766f12350ecb6","storyId":"core-hooks-usecontainerreveal--reveal","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-usekeyboardhint--default__neutral-dark":{"sha256":"4206a793f98e6788c4b912355f6e11386780aeb4f6301d10f9eb036ec685c0ba","storyId":"core-hooks-usekeyboardhint--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-usekeyboardhint--default__neutral-light":{"sha256":"4538fe23ebc80dccf57c7a1795602af015b6abac86695ec957c155e621f92550","storyId":"core-hooks-usekeyboardhint--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-uselinkify--ur-ls__neutral-dark":{"sha256":"3679f68bbf3250b61e319781dcc616e3a81d7997182624ce97d1ec951c91fe2b","storyId":"core-hooks-uselinkify--ur-ls","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-uselinkify--ur-ls__neutral-light":{"sha256":"df84f6a5b418bd0b29c1cc476fa05d5075a83aa3e0b45eee0b1743b42c42e3e6","storyId":"core-hooks-uselinkify--ur-ls","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-useresizable--horizontal__neutral-dark":{"sha256":"35e6101005260505caa0e51fa69f5a82d19560265c77397907a69d008799b6d5","storyId":"core-hooks-useresizable--horizontal","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-useresizable--horizontal__neutral-light":{"sha256":"3326e8eb761a5d30f87d84fe5be2711367517509d75b8812dc791a9166f97fd2","storyId":"core-hooks-useresizable--horizontal","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-usestreamingtext--natural__neutral-dark":{"sha256":"0265089930049f53e96953f8cd6e7ecf49062476cf8862d5839d8d7a3b8a6973","storyId":"core-hooks-usestreamingtext--natural","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-hooks-usestreamingtext--natural__neutral-light":{"sha256":"b9397c3933b236abdb828e6a8e0f2a984891fa90afc7d75ef2e7b31bd3975354","storyId":"core-hooks-usestreamingtext--natural","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-icon-size-theming--size-scale__neutral-dark":{"sha256":"6d3aca9065aba2e7eb9e13caeed0b7cebe250c9c0d442718c915430e91a7dfd5","storyId":"core-icon-size-theming--size-scale","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-icon-size-theming--size-scale__neutral-light":{"sha256":"ba8e80106181406ca35d7bb0bd6eca52c328be8833ab640cd8984b64053d8155","storyId":"core-icon-size-theming--size-scale","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-layer-dismissal--modal-in-modal__neutral-dark":{"sha256":"e31c8493adf61d2af98029867577b287e97225d4814c2829968734be81ee81ad","storyId":"core-layer-dismissal--modal-in-modal","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-layer-dismissal--modal-in-modal__neutral-light":{"sha256":"5c53ca30e2a0167e428950047cf1c6d84cdd4bc772260f133064847c9389903a","storyId":"core-layer-dismissal--modal-in-modal","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-codetheme--one-dark-pro__neutral-dark":{"sha256":"cb4a2ed66f2e734248d2bd4dcb0ae9f39a6de139ff46cf0d82c39591cfd4f451","storyId":"core-themes-codetheme--one-dark-pro","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-codetheme--one-dark-pro__neutral-light":{"sha256":"7e879df5f2892e90f785cdf5afc33ed805165a3e1cd83b6bb5d26fd951cf467d","storyId":"core-themes-codetheme--one-dark-pro","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-mediatheme--on-dark__neutral-dark":{"sha256":"cc2b9ebeb8293cb0918c2dccbd81fbf865ccb3f3be82ab52940f73687254bf10","storyId":"core-themes-mediatheme--on-dark","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-mediatheme--on-dark__neutral-light":{"sha256":"12bd3ebd0a225740b04142223dc94c3f4798b0caf17102812ab62ad272f00bbb","storyId":"core-themes-mediatheme--on-dark","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-mediatheme-auto--flat-surface-theme__neutral-dark":{"sha256":"6f904f74f7da4b03cc5e0f65b4b14f522c352d257a00a4a4ccab990436a90647","storyId":"core-themes-mediatheme-auto--flat-surface-theme","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-mediatheme-auto--flat-surface-theme__neutral-light":{"sha256":"22a25746cb8d9360e49feda8d6ea10e240d74d12985eaae95400feccac7c84c2","storyId":"core-themes-mediatheme-auto--flat-surface-theme","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-theme--bar-chart__neutral-dark":{"sha256":"a85a15421f616830136a6856571e715332c2a94ea116fd53ad8acda04dd64972","storyId":"core-themes-theme--bar-chart","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-themes-theme--bar-chart__neutral-light":{"sha256":"59544a62ef4561f8320977e6ef1d084c6735d83352fcdfbf014cc0bf26d227c5","storyId":"core-themes-theme--bar-chart","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-alertdialog--delete__probe-dark":{"sha256":"ea2dc6ae879c2df65eb0b2a9396643cecf63baedd62b6af9e3cbe348430e5057","storyId":"core-alertdialog--delete","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-alertdialog--delete__probe-light":{"sha256":"ee1b3c470d372810150804a253523a8cb5053b3ba5321d6d5d67145de8bc0298","storyId":"core-alertdialog--delete","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-appshell--full-featured__probe-dark":{"sha256":"52a8785ec9b93c44476e6865f6c59946817c5b1f1bb88be42abb9d3e0c645c87","storyId":"core-appshell--full-featured","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-appshell--full-featured__probe-light":{"sha256":"94ea000d8cc49df265ff9123dba56f480b1baf332465eb60e963ab128a179f52","storyId":"core-appshell--full-featured","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-appshell--with-mobile-nav__probe-dark":{"sha256":"3362ac20e93d3f398fa1fa6bc5534931268eb67723cc80128e0202de19f196c4","storyId":"core-appshell--with-mobile-nav","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-appshell--with-mobile-nav__probe-light":{"sha256":"c5cde8a6dfe946ffe62e4706ef9979ae21ae2fbf4014ea69d28b6bff9450b8fa","storyId":"core-appshell--with-mobile-nav","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-aspectratio--with-placeholder-skeleton__probe-dark":{"sha256":"1cb13adec740ce4a615b931f93e145c46949ed76cb0f81227cfbd8712b117cc8","storyId":"core-aspectratio--with-placeholder-skeleton","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-aspectratio--with-placeholder-skeleton__probe-light":{"sha256":"50ee3135e3c750723f6e3141d1ab15db8ad1d4d53d026a13b8e1ca9a4cf8143e","storyId":"core-aspectratio--with-placeholder-skeleton","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-avatar--with-status__probe-dark":{"sha256":"40c38a3c8f8505e968bc490ca22fc2ace43a247c34c499046648d25de45945e6","storyId":"core-avatar--with-status","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-avatar--with-status__probe-light":{"sha256":"5563ee9b7e196f4023d017d03a5ff93a0020490ef2965038ecaccbb470cad2c5","storyId":"core-avatar--with-status","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-avatargroup--with-overflow__probe-dark":{"sha256":"c1f0d75af071bf78a1e5e087521234ac0b6ec17214aa594d9063ad421df3fc3d","storyId":"core-avatargroup--with-overflow","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-avatargroup--with-overflow__probe-light":{"sha256":"ea8620374b21bee26c7b56f01bae1519641526c6e93e1c626b0672131fc91c37","storyId":"core-avatargroup--with-overflow","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-avatargroup--with-status-dots__probe-dark":{"sha256":"50708a06200c635e662c0d60570a9b65ac86b969b4f9a75e2f969c205237702d","storyId":"core-avatargroup--with-status-dots","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-avatargroup--with-status-dots__probe-light":{"sha256":"3ecea89b068554fb8219801354494c6fa7719ba2bc18fc0d4c0deb853095204e","storyId":"core-avatargroup--with-status-dots","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-banner--collapsible-content-expanded__probe-dark":{"sha256":"31c5e1379858d16e29e48ca104308d5e1d48dd3b0521eca95ef8098a6b0facb2","storyId":"core-banner--collapsible-content-expanded","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-banner--collapsible-content-expanded__probe-light":{"sha256":"a652624a9425a9cba8e03f063639fc574c1020e2d3fdece325e9e12399650abe","storyId":"core-banner--collapsible-content-expanded","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-breadcrumbs--custom-separator__neutral-dark":{"sha256":"11005e2101ecbdf92c6f03ce391906c4edd8165de69f78caa5673abae61369bb","storyId":"core-breadcrumbs--custom-separator","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-breadcrumbs--custom-separator__neutral-light":{"sha256":"c8d58ca1cd52c8498d896077a2567a01b6bcfe275ae4eef3dfb2e19633969ffa","storyId":"core-breadcrumbs--custom-separator","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-breadcrumbs--menu-crumb__probe-dark":{"sha256":"1b5c9f87b1f675de2baba57cfab3f367ec8a1edb013d8f988a6ff0ae02dd59d8","storyId":"core-breadcrumbs--menu-crumb","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-breadcrumbs--menu-crumb__probe-light":{"sha256":"46625314b20c7221f183c9911a50ea4b1e793504e22836e79fb791a9ae26a0b9","storyId":"core-breadcrumbs--menu-crumb","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-buttongroup--horizontal__probe-dark":{"sha256":"cf2c2fe49a7d73bfbea28737b814e96bf657a97fc77675917a58c6c9d25fccc1","storyId":"core-buttongroup--horizontal","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-buttongroup--horizontal__probe-light":{"sha256":"3c2e78b789a600e53775a80ba4bbde89e9cbc2d9714aa1b796178ac9437077f2","storyId":"core-buttongroup--horizontal","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-card--theme-added-variant__probe-dark":{"sha256":"905e23dc1af23b92a3d508a4741dd642a49a61456ca09f10936771202e079ba8","storyId":"core-card--theme-added-variant","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-card--theme-added-variant__probe-light":{"sha256":"c2d9d902f1c5c2f5eaa84dd24e6226cb8733c9e994ae5e02fa07f893a6a6ddce","storyId":"core-card--theme-added-variant","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-carousel--default__probe-dark":{"sha256":"f14ab19b7dcffe4abadd24db163a0078c258de9aac26803d58d726c25ca400e7","storyId":"core-carousel--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-carousel--default__probe-light":{"sha256":"2b8e28862a05e58e6d46c37a898f54fff8ad68e21d6c3c66e4870d3c93756614","storyId":"core-carousel--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-center--default__probe-dark":{"sha256":"aa892b8f454924ed9579d0741913692a3a2a9bfb21cb756e1456a82e6924fe5a","storyId":"core-center--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-center--default__probe-light":{"sha256":"88ce81f20cb9c57c9d65966702239a8edc1816e442c6d568e611ea168fa68e8a","storyId":"core-center--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatcomposer--with-attachments__probe-dark":{"sha256":"b6887bb91d7c56e5d87aa3d2da036321a54f0a5b9b52786efda3f1560ea89c97","storyId":"core-chatcomposer--with-attachments","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatcomposer--with-attachments__probe-light":{"sha256":"b7d4796f56617192b3cc069140cd01071ce66d1d34f09b1f35116d1651088f79","storyId":"core-chatcomposer--with-attachments","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatlayout--full-ai-chat__probe-dark":{"sha256":"d1e09e842545b1e0bf77a7599bb700bde774d9cdd892492e74d3eb5b43a4982c","storyId":"core-chatlayout--full-ai-chat","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatlayout--full-ai-chat__probe-light":{"sha256":"b1121faec0780ef7064543f26e53db445540918558e65f73a220eed4420d6d0b","storyId":"core-chatlayout--full-ai-chat","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatlayout--with-empty-state__probe-dark":{"sha256":"e0efd15e524d059f07c4ab45695ccaadb4c2ff432e400de44a10dbf7a2e6d773","storyId":"core-chatlayout--with-empty-state","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatlayout--with-empty-state__probe-light":{"sha256":"97a0e0c7b702d683dc91efd8af8a5f96758c00f9ed791a6e9405cd7e0297cd90","storyId":"core-chatlayout--with-empty-state","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-collapsible--dividers__probe-dark":{"sha256":"b5cf1c593d5e1d874b228e72e98055d1d65e1006520b4d7a49249139a36599fb","storyId":"core-collapsible--dividers","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-collapsible--dividers__probe-light":{"sha256":"8ce4c2d36fcda64ddd24c93083a95f4c1e73c3c7f9012bc0d145564c22c116be","storyId":"core-collapsible--dividers","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-commandpalette--default__probe-dark":{"sha256":"3ad16b6ee5ae2925c7fe0a22c7eca8d39b1a25f847a41eeb32ce1ad1e9a45882","storyId":"core-commandpalette--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-commandpalette--default__probe-light":{"sha256":"a252743d772effba9b34f684ce4093b3eb6e73eb2fceeb8399c9412b6abeaa3d","storyId":"core-commandpalette--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-commandpalette--themed-group-heading__probe-dark":{"sha256":"ef9ec901c32018a7b1e1e377320a2af4ab860a75ea849947588116fba0ace68b","storyId":"core-commandpalette--themed-group-heading","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-commandpalette--themed-group-heading__probe-light":{"sha256":"837f336f807df6d06c23c68154c77ede6ab64d9fec6ec10dca4a35168f455772","storyId":"core-commandpalette--themed-group-heading","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-complexselector--tree-list-with-search__probe-dark":{"sha256":"6453504e02836474b0225f267defe9068baf12d9fddd5f98e98ccbc37a6e777d","storyId":"core-complexselector--tree-list-with-search","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-complexselector--tree-list-with-search__probe-light":{"sha256":"07cdffe75fec959a35669f44b0fc7b7d9ba8dfaf83f5da05fa18d0e8e91a3dae","storyId":"core-complexselector--tree-list-with-search","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-contextmenu--with-sections__probe-dark":{"sha256":"3ec259d7245bb781eb488b1d7583e71bb93ebdf2a93e2eeca9a40c8207316afa","storyId":"core-contextmenu--with-sections","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-contextmenu--with-sections__probe-light":{"sha256":"97bb60284b061760c113c085127478d0a0faeb5dd15cea4ea93e604f09963f01","storyId":"core-contextmenu--with-sections","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-contextmenu--with-selectable-items__probe-dark":{"sha256":"e07527c160dafc164a32d6037a1ec63f34504b5b83aa37a728eb9f882d5e4b6a","storyId":"core-contextmenu--with-selectable-items","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-contextmenu--with-selectable-items__probe-light":{"sha256":"cfce31eb73eae5e868a215a8d179d083881fcab90eb0c949cc1493c5f824ec8e","storyId":"core-contextmenu--with-selectable-items","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-control-size-comparison--all-sizes__probe-dark":{"sha256":"0ea71b0fc7b0fbebbf1173e4eee539b257c954ce10de256211b48543d9347702","storyId":"core-control-size-comparison--all-sizes","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-control-size-comparison--all-sizes__probe-light":{"sha256":"4e8996bf566606b4ea538161d9390fa3a0a1acd375d6c1d2da4ce7600676d89f","storyId":"core-control-size-comparison--all-sizes","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-dateinput--clearable__probe-dark":{"sha256":"8033405f4367e83d44626e55ea53f56c1429116eb534471ad65cd7e8e000d486","storyId":"core-dateinput--clearable","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-dateinput--clearable__probe-light":{"sha256":"e0d879a65deb0db9ef8569b3c93b791dcff92ea80d52f3e657349c3d46119edf","storyId":"core-dateinput--clearable","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-datetimeinput--with-error-status__probe-dark":{"sha256":"0753c2be00c3e3dae553dddd040a719d29b192f7b370301cba92f6bb61bcd43f","storyId":"core-datetimeinput--with-error-status","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-datetimeinput--with-error-status__probe-light":{"sha256":"26744c31530fa06132afa19f7f1e17d84e1db67486e49d38d2197a4628e5566b","storyId":"core-datetimeinput--with-error-status","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-dropdownmenu--submenu__probe-dark":{"sha256":"7b241676b3725ffc4226b12dac9ed2b2685be059efe6fc6aa5f0d794d9c5127f","storyId":"core-dropdownmenu--submenu","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-dropdownmenu--submenu__probe-light":{"sha256":"87894d096725a6d9dc88e92cee761120a60023353193103aa8de519420620051","storyId":"core-dropdownmenu--submenu","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-fileinput--default__probe-dark":{"sha256":"d543b4b3b8728939d178a4be9833d405a799283ef5e766617798c5216c03661f","storyId":"core-fileinput--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-fileinput--default__probe-light":{"sha256":"38f6a9c448c6679a70391769ace84bc262d2e77ecdc25e5d32f146288267d122","storyId":"core-fileinput--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-grid--with-grid-span__probe-dark":{"sha256":"a3b53de4cab90ac2d3f8175dd6dbe3908d58a1e56a2ec09e9560748a4cda7732","storyId":"core-grid--with-grid-span","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-grid--with-grid-span__probe-light":{"sha256":"86f288f30aedc003dd62491ce07037edebb17fc0b279b1d9525b5d19f962e06c","storyId":"core-grid--with-grid-span","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-icon-size-theming--built-in-component-icons__probe-dark":{"sha256":"fa43ed066b02d98bb798ad87619b68da74d027821b3a22e4c299bb05b466245b","storyId":"core-icon-size-theming--built-in-component-icons","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-icon-size-theming--built-in-component-icons__probe-light":{"sha256":"1985f7012fa085607f5a0d3245c96cc1c98881e1c61e806ad6fe5d67ab87a17e","storyId":"core-icon-size-theming--built-in-component-icons","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-inputgroup--with-typeahead__probe-dark":{"sha256":"11eaa9b2ad54ec834fcf830b321550ba6d835ac0233d669c0f0d1e2ceb9eff3b","storyId":"core-inputgroup--with-typeahead","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-inputgroup--with-typeahead__probe-light":{"sha256":"0ac0dd2b888e62bd73e159014c5ad00f07cdf764d03c30c2ec5e312aaa077af5","storyId":"core-inputgroup--with-typeahead","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-layer-dismissal--pinned-hover-card-in-modal__probe-dark":{"sha256":"75d7c018b88bbf48b4d70f27a0309cc76e4dbc2b0f10ea5a5b0761312d43c50b","storyId":"core-layer-dismissal--pinned-hover-card-in-modal","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-layer-dismissal--pinned-hover-card-in-modal__probe-light":{"sha256":"f727877fbff3f158bfc74fff065ea703faf6659fbe7ef8538b290893e810a014","storyId":"core-layer-dismissal--pinned-hover-card-in-modal","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-layer-dismissal--required-modal-with-lightbox__probe-dark":{"sha256":"1da7ca7ea36b1dbf633e8f510d35b1339ca9ba4f040f4cc5498c59294452db90","storyId":"core-layer-dismissal--required-modal-with-lightbox","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-layer-dismissal--required-modal-with-lightbox__probe-light":{"sha256":"d1d317a960858b822be13f9381034b43e587ab4e5f4ad5131d91ea06c75be7ce","storyId":"core-layer-dismissal--required-modal-with-lightbox","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-markdown--default__probe-dark":{"sha256":"5112dd1f2bc4c8b5482a0110d9ba7637db6914a32ca9fa94308f2c24f72db309","storyId":"core-markdown--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-markdown--default__probe-light":{"sha256":"a68f03186e29c02d32a1ee0f05141a66cd46ebc781659fae564df90ad6e4e8df","storyId":"core-markdown--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-markdown--with-images__probe-dark":{"sha256":"f7591d58b5ad7356c0803e76029278a5142bb54c6395aa37bcf39e66826346e9","storyId":"core-markdown--with-images","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-markdown--with-images__probe-light":{"sha256":"ac37a01adf93944f4deefe5b0100b60d122a7b0c184b3656b0e85123cc140a51","storyId":"core-markdown--with-images","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-metadatalist--basic__probe-dark":{"sha256":"8aed9b4db4e6d525f57883d9741b65660670cbbe0ab499e9849abf1f41592b49","storyId":"core-metadatalist--basic","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-metadatalist--basic__probe-light":{"sha256":"53d9e002de2cb968cb8cdea73a3b200023eba42f4db1a6da0530afa12a5909f9","storyId":"core-metadatalist--basic","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-moremenu--bottom-sheet-presentation__probe-dark":{"sha256":"2b1d543ee3ac40fc30bfe07c87c390e1a23234d99c10d8b75bcc847e196918b6","storyId":"core-moremenu--bottom-sheet-presentation","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-moremenu--bottom-sheet-presentation__probe-light":{"sha256":"9175ad3afa61d9f1992507d201e1de7abaf40a698fa57380634284d2e5906384","storyId":"core-moremenu--bottom-sheet-presentation","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-multiselector--clearable__probe-dark":{"sha256":"024f86e803fd42d027fc8fe925224659b850100e0b0589b5de0f55dac477fa35","storyId":"core-multiselector--clearable","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-multiselector--clearable__probe-light":{"sha256":"ac572760f955adf9c3ec7af67ed2b3a367f33bc683ccd3b94a4b779bf6c659cf","storyId":"core-multiselector--clearable","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-multiselector--empty-states__probe-dark":{"sha256":"7d3458478c3c630eb7fc80647d224b4e9e10a46fcd5f6d261ece4f725c333e81","storyId":"core-multiselector--empty-states","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-multiselector--empty-states__probe-light":{"sha256":"0c1646e6823447b1f64bbf6124f2fab5407120449f6543fb65b6baca8012e301","storyId":"core-multiselector--empty-states","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-multiselector--sections__probe-dark":{"sha256":"61ac2b29a01c10dd76dfce2e6b010a58e00ece6998e846923b75de117b1a4d60","storyId":"core-multiselector--sections","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-multiselector--sections__probe-light":{"sha256":"c030211df81b4993840478642813530a429925886a754915720b6e6ee1d91a25","storyId":"core-multiselector--sections","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-navmenu--default__probe-dark":{"sha256":"bd8edacda98d45e7dcf4471122637be850c2e7dd9db0733baef24664a82c652e","storyId":"core-navmenu--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-navmenu--default__probe-light":{"sha256":"ac78c799eaa1d8db12b4e5fce4f0a4e8f8082e5093cb3390bc26d9f9d9c6d5bf","storyId":"core-navmenu--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-outline--basic__probe-dark":{"sha256":"f094db182182f6dd2953e7034d76c09e8105fc8529e2bb305c42428a3f6fba71","storyId":"core-outline--basic","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-outline--basic__probe-light":{"sha256":"6b13faf6bbc6908f6ab1ffe1cbffc223b6dfa0b64a81609f38ef10ef99a50e4c","storyId":"core-outline--basic","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-overflowlist--default__probe-dark":{"sha256":"4e48908acb6d01fbefa0d67b73eaa6b1fd52e7d4c36510a9a400583e04f53607","storyId":"core-overflowlist--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-overflowlist--default__probe-light":{"sha256":"ebe8067f822e651b9db8dcf49d3a49ae88fef2f8359116f4607ca3594be0e6c2","storyId":"core-overflowlist--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-overlay--gallery-grid__probe-dark":{"sha256":"c8849d35f1da6d2301d0aa1b8b61ad8a8136d6e41e760c10d08729179f9e1c8b","storyId":"core-overlay--gallery-grid","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-overlay--gallery-grid__probe-light":{"sha256":"62983fc929578b047191b09b9b627d4eb35ee4a45c4add79fd8cebf48693506f","storyId":"core-overlay--gallery-grid","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-pagination--all-variants__probe-dark":{"sha256":"248a6e917731516d65f63e46da67b845991322fd95d30c967404b87b59a62d33","storyId":"core-pagination--all-variants","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-pagination--all-variants__probe-light":{"sha256":"d154db3dc9c9c6650f1119dcdd69b1d5e3f72be0bf6eda55a9778ea539e0d141","storyId":"core-pagination--all-variants","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-powersearch--issue-tracker__probe-dark":{"sha256":"8f9ff8d8884de4f857e1b2acd69b4086713c162906d0f9a0813dae0988c16a54","storyId":"core-powersearch--issue-tracker","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-powersearch--issue-tracker__probe-light":{"sha256":"d16aafae7ffb3a92313714cde3e285e7290a7e25aaf8b2f05027b66baa231019","storyId":"core-powersearch--issue-tracker","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-progressbar--with-target-mark__probe-dark":{"sha256":"b6b525cfd4bba3a8b2642b77f9a780898af16c599a275fbb8e2bb2576d486d23","storyId":"core-progressbar--with-target-mark","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-progressbar--with-target-mark__probe-light":{"sha256":"0aeafb7c2626a2d41cfba021d23602237e5796c00cd6fa09b07e839e3ae8d214","storyId":"core-progressbar--with-target-mark","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-segmentedcontrol--default__probe-dark":{"sha256":"e66f89dfaf46bfe7ff9938d4b0226662f4d96db2d30caba0d4742e422138f6ca","storyId":"core-segmentedcontrol--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-segmentedcontrol--default__probe-light":{"sha256":"3d0d6984f6284bbc8aad7c6169c72492fd38b5b2b5e9c4c3da62ce0ed0933692","storyId":"core-segmentedcontrol--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--clearable__probe-dark":{"sha256":"069d1862d20a5edbcbac02794520934552620060286022d55e64c90be81be7a8","storyId":"core-selector--clearable","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--clearable__probe-light":{"sha256":"dca88cea08b41ad94cdbc6f089070e4778ab04444bebf982ea2cda8aa4ff0024","storyId":"core-selector--clearable","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--empty-states__probe-dark":{"sha256":"8caa99685949fca1444493aff69d8edeb984d00ee7e7dfd3603c254c5553cd49","storyId":"core-selector--empty-states","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--empty-states__probe-light":{"sha256":"4a45784925edea34258cccffda81d68fb6d61df35383cd26dc957f18fe1f24a7","storyId":"core-selector--empty-states","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--searchable-with-sections__probe-dark":{"sha256":"2e540aba8e976b0bfe3fcdd920df0011ac39375981468b7730b707639a80b087","storyId":"core-selector--searchable-with-sections","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--searchable-with-sections__probe-light":{"sha256":"7ee559ae66262abe4e1d1a36193b1390fdf11c095b4c548484a975c94ffc4866","storyId":"core-selector--searchable-with-sections","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-slider--default__probe-dark":{"sha256":"1c1d7206e9d8154524722346af78fe56af926c2c6bae8b95873d48b16dd2cfdd","storyId":"core-slider--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-slider--default__probe-light":{"sha256":"20e89c6b1fc94706eaf15eec0548e9dab3c71756450aa9765014d8dd75cd250d","storyId":"core-slider--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-tablecolumnsettings--basic-column-toggle__probe-dark":{"sha256":"3aa1166e2adc2c519f103a0a8a705fcf06b32a67b45db9ed7815692110c61a51","storyId":"core-tablecolumnsettings--basic-column-toggle","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-tablecolumnsettings--basic-column-toggle__probe-light":{"sha256":"4b1079e1d4b7dd345f6846b1412b08a011a212538c2eb77f3807292910dff994","storyId":"core-tablecolumnsettings--basic-column-toggle","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-tablist--overflow__probe-dark":{"sha256":"0c1d74cf5cec09159bb72ae5fee9a0555f5437da8734e5becfa1b545d095a43d","storyId":"core-tablist--overflow","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-tablist--overflow__probe-light":{"sha256":"a71d3402438be5923b458725ac703156fb3a4fa36ee3299de4e28e35b37f47ac","storyId":"core-tablist--overflow","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-textarea--vertical-form-alignment__probe-dark":{"sha256":"660048d2d7cc03fa014c8e1fb0d2efcd1cc2ac06e250bbeb097d77af3752099c","storyId":"core-textarea--vertical-form-alignment","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-textarea--vertical-form-alignment__probe-light":{"sha256":"8183df8d667eed2f98b89e31d39edfba7508be679a8e1d7c16dc392499164206","storyId":"core-textarea--vertical-form-alignment","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-themes-mediatheme-auto--toast-variants__probe-dark":{"sha256":"e64d82d99aaf4fbe37731a00d5f09470f713d09e1cdc973c2aa956402a5bb5bc","storyId":"core-themes-mediatheme-auto--toast-variants","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-themes-mediatheme-auto--toast-variants__probe-light":{"sha256":"85320b452279c046f1fd8a1229b7aaabb4035343b68285fb8349540babc04003","storyId":"core-themes-mediatheme-auto--toast-variants","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-togglebutton--group-single__probe-dark":{"sha256":"c62416595c0a4234688c19893fbbe2dcfac6d8e4d83f42431d795f54e8341044","storyId":"core-togglebutton--group-single","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-togglebutton--group-single__probe-light":{"sha256":"86522c265dee3970e6eb58ac59ced13fd6135949fed56fb2574f187ac63d44c7","storyId":"core-togglebutton--group-single","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-topnavmenu--default__probe-dark":{"sha256":"3bae5550a5bcabbcbcbfb436a294de5a4db060c6a76f2b422d6061980442243d","storyId":"core-topnavmenu--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-topnavmenu--default__probe-light":{"sha256":"4270621ca88f392d6d19ace96fd5a47c3cb157263d636fe66f5c4dc9080cadf9","storyId":"core-topnavmenu--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-topnavmenu--mega-menu__probe-dark":{"sha256":"357fc3d084391fcde7a65fb1a3d92ab11f13bc3dfdd6ad6fe13047842a24d1d6","storyId":"core-topnavmenu--mega-menu","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-topnavmenu--mega-menu__probe-light":{"sha256":"06cd2a29397176cd53167bb5db76b79f8dded35f289e32d2c18d540d020a50f1","storyId":"core-topnavmenu--mega-menu","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-resizable--horizontal-split__neutral-light":{"sha256":"d33809a05cff045e23a2bba50598c42d872d9706c9126f0179e96e05fa1a6137","storyId":"core-resizable--horizontal-split","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-resizable--horizontal-split__neutral-dark":{"sha256":"7c60eb25b29cbe15472ca075865398c59a381f26307324cd074c9ef183c1b248","storyId":"core-resizable--horizontal-split","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-scrollablearea--playground__neutral-light":{"sha256":"8a74821f73f8c616085c93d9f55ed9f150856c69615c711071e90b031709f6e1","storyId":"core-scrollablearea--playground","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-scrollablearea--playground__neutral-dark":{"sha256":"be69316f2b0bc2923807b41ef49290c7573f5cef95833dcb8409379707e4128d","storyId":"core-scrollablearea--playground","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-scrollablearea--playground__probe-light":{"sha256":"19e0a2f75d9ca37054b333f8c2cadfc1b9cf191535c41a1500f4d7f5366c3d02","storyId":"core-scrollablearea--playground","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-scrollablearea--playground__probe-dark":{"sha256":"a695fefc35a335f465f1afbb084fb9c360c136b46634b8bd2a4f50e1d7b8e7fd","storyId":"core-scrollablearea--playground","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-timer--default__neutral-dark":{"sha256":"3892c4a0102faa839785f9ded17fed60d0cc41b2151e4773c9773e9e4e7eae0b","storyId":"core-timer--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-timer--default__neutral-light":{"sha256":"5c5409fbaf4a8cc6264a1ae2652a348888e378a7515546f25ae74c84465c2da1","storyId":"core-timer--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-timer--default__probe-dark":{"sha256":"b20369fb931b34479347533e7834e12dbaff8603692d04da753bf73eff4a92c4","storyId":"core-timer--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-timer--default__probe-light":{"sha256":"9d82e6fda5b178ce6b3ea89c247b7a67338b94a95d454546ffa19a9d2f136440","storyId":"core-timer--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-basetypeahead--default__neutral-dark":{"sha256":"7feec46289d35c0f18231abb0eb57eec80d454c38574a04fff0de8092c29d8ed","storyId":"core-basetypeahead--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-basetypeahead--default__neutral-light":{"sha256":"7356c7f3822b34770331ec9d1b4e1a7ae15e2a06283ceac24c415bb15ec3a47e","storyId":"core-basetypeahead--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-basetypeahead--loading__probe-dark":{"sha256":"2d21c7b7f53d1702888dd986e819ab13cd9eb5b17a01e46fa1a37db8177340d0","storyId":"core-basetypeahead--loading","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-basetypeahead--loading__probe-light":{"sha256":"f9cdf28b28a96b8876c2a1bcf339063713af34310e3a5622e3ef697b1dafd58d","storyId":"core-basetypeahead--loading","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-bottomsheet--text-only__neutral-dark":{"sha256":"186e8ffc7da27f279de73e96a9b359ffa9c7bba715712069ee1bd132d86f2409","storyId":"core-bottomsheet--text-only","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-bottomsheet--text-only__neutral-light":{"sha256":"d6094782984e43237410ef002ae0402a3057e89566629e92c631d387d748aaa8","storyId":"core-bottomsheet--text-only","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatcomposerdrawer--custom-collapsed-summary__neutral-dark":{"sha256":"2b1a51a10a4fec2b8129f140ed632066b402a0cd716aa2c2098822dec59ff9e5","storyId":"core-chatcomposerdrawer--custom-collapsed-summary","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatcomposerdrawer--custom-collapsed-summary__neutral-light":{"sha256":"8316ae98b7b3babe5c16fcf1e9137f161e5753eda584267ecc02dcc6789a6efe","storyId":"core-chatcomposerdrawer--custom-collapsed-summary","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatdictationbutton--clipping__neutral-dark":{"sha256":"ae0bed95b21e82cfe6990f1e8648b62a2222adfad91d64fd70b5ab33ac717bc6","storyId":"core-chatdictationbutton--clipping","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatdictationbutton--clipping__neutral-light":{"sha256":"ed4d17485430ad835399fdadbb6f7563bf6f0af965b9957c7eff81fc227470f9","storyId":"core-chatdictationbutton--clipping","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatdictationbutton--idle__probe-dark":{"sha256":"65da45afbb99c38805ead74b6b234cf3496f5ba6b625c2dd11e629ae0a231e61","storyId":"core-chatdictationbutton--idle","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatdictationbutton--idle__probe-light":{"sha256":"1942015242d9eb84a7815ef496dbff4e9a507dc1bf91f3edad0f4a21e4500b36","storyId":"core-chatdictationbutton--idle","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-chatdictationbutton--unsupported-visible__neutral-dark":{"sha256":"9685b2fa610553a7f75c11202158cb691d5e42ae6e794f0c5e0aad25764375f6","storyId":"core-chatdictationbutton--unsupported-visible","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-chatdictationbutton--unsupported-visible__neutral-light":{"sha256":"b0dec64395679bbd54a28c365addcb797a0fbbf876782c94c789fd1931258285","storyId":"core-chatdictationbutton--unsupported-visible","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-codeblock--default__neutral-dark":{"sha256":"37008ff440fe5a964cab70f5e0e63fb90ee44ccc00205a5c1a842db23d8cfef6","storyId":"core-codeblock--default","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-codeblock--default__neutral-light":{"sha256":"b11e9aca6923af821d361c1b155616a9f3d46dd687637198c7307a1dcd110f24","storyId":"core-codeblock--default","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-daterangeinput--all-variations__probe-dark":{"sha256":"178dfa656461a637b48131d7be1c8d789e8817c740a11b225a9777670a17b58d","storyId":"core-daterangeinput--all-variations","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-daterangeinput--all-variations__probe-light":{"sha256":"8a2363fead3385cfb17999b5593d838815fb8a7fe53fcfd79c4dd2c142d6ba44","storyId":"core-daterangeinput--all-variations","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-dialog--mobile-presentation-fullscreen-dialog__probe-dark":{"sha256":"6fa048da0ae7e3eabb6726b20c7ba8eb92cbe7f9e790fa474d186915d70dee72","storyId":"core-dialog--mobile-presentation-fullscreen-dialog","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-dialog--mobile-presentation-fullscreen-dialog__probe-light":{"sha256":"51c2d7a85e7bf7e8a351116cbf0da57f15897ebcc111ca155fe419770e0d8303","storyId":"core-dialog--mobile-presentation-fullscreen-dialog","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-fieldstatus--variants__neutral-dark":{"sha256":"0f8ee6ae0af526aa5a3fa997b2a775a74b786d968b3d33b0ca16694994971511","storyId":"core-fieldstatus--variants","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-fieldstatus--variants__neutral-light":{"sha256":"71920ca8bc9583e7d7cc659a56e89b8b6421f8c16673c873681ce769c821e12f","storyId":"core-fieldstatus--variants","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-layout--content-width-scrollbar-placement__neutral-dark":{"sha256":"3f8b8736f712d65ad25c41f8cf5b9112a483e73c7043416b383c941c051e735f","storyId":"core-layout--content-width-scrollbar-placement","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-layout--content-width-scrollbar-placement__neutral-light":{"sha256":"a573bd79e8ebba2f1c0d442cfeb9d3d3e05ca41e6903919e1639c40c32f4b595","storyId":"core-layout--content-width-scrollbar-placement","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-link-navigation--destinations__neutral-dark":{"sha256":"a49ec03d4d17259dadd9e0954ac85a52122908d7c609ec94cf1eefe45088b59d","storyId":"core-link-navigation--destinations","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-link-navigation--destinations__neutral-light":{"sha256":"b9e6bc23e14ab8d1d6a4d56b957f1397ed3e66888237fe9a3747d7b0640d7a9f","storyId":"core-link-navigation--destinations","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-link-navigation--destinations__probe-dark":{"sha256":"361fded34c4ff82970675871c13863e3dd09ed085bf7a7156ac53644ee82d4b7","storyId":"core-link-navigation--destinations","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-link-navigation--destinations__probe-light":{"sha256":"e9a4cfbe17f565c892682fd520e179aa3ecad0e47f5fc9277ac5939d101f3ed4","storyId":"core-link-navigation--destinations","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-dark":{"sha256":"1bc0a0836240eed8c5f8c2d1f304a7ff46603d5c73af1eaae0f15cdb30ef833f","storyId":"core-selector--indicator-space-bottom-sheet-narrow-end-rtl","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-light":{"sha256":"02605100cb8345e5e89c09a3fb977ae2b0ba1574f349ec59ba36ba69d2bcce81","storyId":"core-selector--indicator-space-bottom-sheet-narrow-end-rtl","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-bottom-sheet-wide-start__neutral-dark":{"sha256":"56680fd614ecaa3aac773e7a81e901122a393ee272c8ebc463fa9ad46e7bbe6b","storyId":"core-selector--indicator-space-bottom-sheet-wide-start","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-bottom-sheet-wide-start__neutral-light":{"sha256":"6b7907afc961546ad72b230a6e08fa65f4d1b1deb6870737259c107a3c022fb6","storyId":"core-selector--indicator-space-bottom-sheet-wide-start","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-popover-narrow-start__neutral-dark":{"sha256":"d8df9c0a6b21c5a907aafa3f7f25ba133bbb8ed503a361769035e0f00bf03fa2","storyId":"core-selector--indicator-space-popover-narrow-start","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-popover-narrow-start__neutral-light":{"sha256":"1bda913bcc2a85f834f0841ecafb47125e71bf29a8aac9fbe353c5434e2c95d8","storyId":"core-selector--indicator-space-popover-narrow-start","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-popover-wide-end-rtl__neutral-dark":{"sha256":"c01eaece1f1d3ead7c5e644469dfb2566b3c4a4b16dca62f5a1ae44ceff1dc05","storyId":"core-selector--indicator-space-popover-wide-end-rtl","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-selector--indicator-space-popover-wide-end-rtl__neutral-light":{"sha256":"e635107f6e84146b8d869893dbc59b455e1eea1109b00cf9bf08d811a3049d1d","storyId":"core-selector--indicator-space-popover-wide-end-rtl","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-sidenav--resizable-in-app-shell__probe-dark":{"sha256":"acab8131f6f676a4d10fbd6d8214162dd5068155a1c36a1aef6c71ace6520c86","storyId":"core-sidenav--resizable-in-app-shell","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-sidenav--resizable-in-app-shell__probe-light":{"sha256":"af28177dc4fd67ddf39b7ba496d3c318bdb038c3989fe1f40b53bdff547301b9","storyId":"core-sidenav--resizable-in-app-shell","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-slider--disabled-with-text-value__neutral-dark":{"sha256":"4e4965526d5923ace37e2de3f739da639d3657bbba19de2e2012989327757a36","storyId":"core-slider--disabled-with-text-value","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-slider--disabled-with-text-value__neutral-light":{"sha256":"c61623cfae125d858d0a21e07506403d51dd0839ec7b9575eeb63c984904b183","storyId":"core-slider--disabled-with-text-value","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-slider--disabled-with-text-value__probe-dark":{"sha256":"e65002046b9b268cdc0d5216e70f489a7c67afc241eb227024d4e461eb635253","storyId":"core-slider--disabled-with-text-value","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-slider--disabled-with-text-value__probe-light":{"sha256":"ee4e6720bfc127dea7a90ddb08fd94f6c1b25e1b0716cbf008be48c1aeb3ca64","storyId":"core-slider--disabled-with-text-value","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-stepper--default__probe-dark":{"sha256":"3d4ba200ac049cbec1c5bf77fefabb4334a980e95a8c9418e503eb1b5d03c7f2","storyId":"core-stepper--default","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-stepper--default__probe-light":{"sha256":"0ebd53f6aae4d15e41f1041991b67dcfa26c2e45a0a264d1a57cefb4a7748689","storyId":"core-stepper--default","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-stepper--step-advance__probe-dark":{"sha256":"b220ddcc51afaaf3b061b738e728252d4f5fac13706fc9e21e8c21a7e3a73fa2","storyId":"core-stepper--step-advance","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-stepper--step-advance__probe-light":{"sha256":"16645f8677235200ec7e15af8d7be0419496969ddd5297c0d3740d2d456f57da","storyId":"core-stepper--step-advance","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-tablist--full-bleed-geometry__probe-dark":{"sha256":"934cb4003f7dd17df14e33ab55f804fb051b439de706677d71623ef19d82198f","storyId":"core-tablist--full-bleed-geometry","theme":"probe","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-tablist--full-bleed-geometry__probe-light":{"sha256":"d90f85cb2d0842c4e4453b1732d01ccabf268860cd25e4bfc4c12006d9038a9a","storyId":"core-tablist--full-bleed-geometry","theme":"probe","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-probe"},"core-text--body__neutral-dark":{"sha256":"6eebebd9c7e1a935fa927b91504bbda0ea9464ea2f581a15fcce387c2e92cae1","storyId":"core-text--body","theme":"neutral","mode":"dark","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"},"core-text--body__neutral-light":{"sha256":"6dd84f6f8675ce116b59a21dadc8cf00cab7f56db1f968f4f55d394cbeac1292","storyId":"core-text--body","theme":"neutral","mode":"light","packageName":"@astryxdesign/core","themePackageName":"@astryxdesign/theme-neutral"}},"decisions":[],"platform":"linux-arm64","browser":"chromium-149.0.7827.0","viewport":{"width":1024,"height":768},"capturedAt":"2026-09-26T00:53:28.283Z","context":{"sha":"82fb22c3c14b4095dd20902c812f2c0908e9e53a","runId":"36205206599","runAttempt":"1","headSha":null,"baseSha":null,"ref":"refs/heads/main"}}
diff --git a/.github/visual-baseline/shots/core-alertdialog--delete__neutral-dark.png b/.github/visual-baseline/shots/core-alertdialog--delete__neutral-dark.png
new file mode 100644
index 0000000000..6e123b5b8a
Binary files /dev/null and b/.github/visual-baseline/shots/core-alertdialog--delete__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-alertdialog--delete__neutral-light.png b/.github/visual-baseline/shots/core-alertdialog--delete__neutral-light.png
new file mode 100644
index 0000000000..f38e5b85c3
Binary files /dev/null and b/.github/visual-baseline/shots/core-alertdialog--delete__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-alertdialog--delete__probe-dark.png b/.github/visual-baseline/shots/core-alertdialog--delete__probe-dark.png
new file mode 100644
index 0000000000..8cb04678fc
Binary files /dev/null and b/.github/visual-baseline/shots/core-alertdialog--delete__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-alertdialog--delete__probe-light.png b/.github/visual-baseline/shots/core-alertdialog--delete__probe-light.png
new file mode 100644
index 0000000000..0b6df44e69
Binary files /dev/null and b/.github/visual-baseline/shots/core-alertdialog--delete__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-appshell--full-featured__probe-dark.png b/.github/visual-baseline/shots/core-appshell--full-featured__probe-dark.png
new file mode 100644
index 0000000000..9e751d5bb8
Binary files /dev/null and b/.github/visual-baseline/shots/core-appshell--full-featured__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-appshell--full-featured__probe-light.png b/.github/visual-baseline/shots/core-appshell--full-featured__probe-light.png
new file mode 100644
index 0000000000..6bfd10626c
Binary files /dev/null and b/.github/visual-baseline/shots/core-appshell--full-featured__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-appshell--playground__neutral-dark.png b/.github/visual-baseline/shots/core-appshell--playground__neutral-dark.png
new file mode 100644
index 0000000000..aba8f1020e
Binary files /dev/null and b/.github/visual-baseline/shots/core-appshell--playground__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-appshell--playground__neutral-light.png b/.github/visual-baseline/shots/core-appshell--playground__neutral-light.png
new file mode 100644
index 0000000000..de2a2c7cc4
Binary files /dev/null and b/.github/visual-baseline/shots/core-appshell--playground__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-appshell--with-mobile-nav__probe-dark.png b/.github/visual-baseline/shots/core-appshell--with-mobile-nav__probe-dark.png
new file mode 100644
index 0000000000..0ba8354f79
Binary files /dev/null and b/.github/visual-baseline/shots/core-appshell--with-mobile-nav__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-appshell--with-mobile-nav__probe-light.png b/.github/visual-baseline/shots/core-appshell--with-mobile-nav__probe-light.png
new file mode 100644
index 0000000000..d91c5c1727
Binary files /dev/null and b/.github/visual-baseline/shots/core-appshell--with-mobile-nav__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-aspectratio--default__neutral-dark.png b/.github/visual-baseline/shots/core-aspectratio--default__neutral-dark.png
new file mode 100644
index 0000000000..78fbae6fb0
Binary files /dev/null and b/.github/visual-baseline/shots/core-aspectratio--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-aspectratio--default__neutral-light.png b/.github/visual-baseline/shots/core-aspectratio--default__neutral-light.png
new file mode 100644
index 0000000000..b0f0031af4
Binary files /dev/null and b/.github/visual-baseline/shots/core-aspectratio--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-aspectratio--with-placeholder-skeleton__probe-dark.png b/.github/visual-baseline/shots/core-aspectratio--with-placeholder-skeleton__probe-dark.png
new file mode 100644
index 0000000000..7801b259b8
Binary files /dev/null and b/.github/visual-baseline/shots/core-aspectratio--with-placeholder-skeleton__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-aspectratio--with-placeholder-skeleton__probe-light.png b/.github/visual-baseline/shots/core-aspectratio--with-placeholder-skeleton__probe-light.png
new file mode 100644
index 0000000000..9bb281c56e
Binary files /dev/null and b/.github/visual-baseline/shots/core-aspectratio--with-placeholder-skeleton__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-avatar--default__neutral-dark.png b/.github/visual-baseline/shots/core-avatar--default__neutral-dark.png
new file mode 100644
index 0000000000..323b62c474
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatar--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-avatar--default__neutral-light.png b/.github/visual-baseline/shots/core-avatar--default__neutral-light.png
new file mode 100644
index 0000000000..9d94e04c9a
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatar--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-avatar--with-status__probe-dark.png b/.github/visual-baseline/shots/core-avatar--with-status__probe-dark.png
new file mode 100644
index 0000000000..3c7f187225
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatar--with-status__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-avatar--with-status__probe-light.png b/.github/visual-baseline/shots/core-avatar--with-status__probe-light.png
new file mode 100644
index 0000000000..99c71663da
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatar--with-status__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-avatargroup--default__neutral-dark.png b/.github/visual-baseline/shots/core-avatargroup--default__neutral-dark.png
new file mode 100644
index 0000000000..64aa9d8a22
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatargroup--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-avatargroup--default__neutral-light.png b/.github/visual-baseline/shots/core-avatargroup--default__neutral-light.png
new file mode 100644
index 0000000000..0ebf3052db
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatargroup--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-avatargroup--with-overflow__probe-dark.png b/.github/visual-baseline/shots/core-avatargroup--with-overflow__probe-dark.png
new file mode 100644
index 0000000000..a24d3c9489
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatargroup--with-overflow__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-avatargroup--with-overflow__probe-light.png b/.github/visual-baseline/shots/core-avatargroup--with-overflow__probe-light.png
new file mode 100644
index 0000000000..c103fe56c0
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatargroup--with-overflow__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-avatargroup--with-status-dots__probe-dark.png b/.github/visual-baseline/shots/core-avatargroup--with-status-dots__probe-dark.png
new file mode 100644
index 0000000000..961cb2f5f9
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatargroup--with-status-dots__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-avatargroup--with-status-dots__probe-light.png b/.github/visual-baseline/shots/core-avatargroup--with-status-dots__probe-light.png
new file mode 100644
index 0000000000..02d2d10e81
Binary files /dev/null and b/.github/visual-baseline/shots/core-avatargroup--with-status-dots__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-badge--default__neutral-dark.png b/.github/visual-baseline/shots/core-badge--default__neutral-dark.png
new file mode 100644
index 0000000000..eb97c0084c
Binary files /dev/null and b/.github/visual-baseline/shots/core-badge--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-badge--default__neutral-light.png b/.github/visual-baseline/shots/core-badge--default__neutral-light.png
new file mode 100644
index 0000000000..15ecef787b
Binary files /dev/null and b/.github/visual-baseline/shots/core-badge--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-banner--collapsible-content-expanded__probe-dark.png b/.github/visual-baseline/shots/core-banner--collapsible-content-expanded__probe-dark.png
new file mode 100644
index 0000000000..b68ed0ccdb
Binary files /dev/null and b/.github/visual-baseline/shots/core-banner--collapsible-content-expanded__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-banner--collapsible-content-expanded__probe-light.png b/.github/visual-baseline/shots/core-banner--collapsible-content-expanded__probe-light.png
new file mode 100644
index 0000000000..bedf5bc790
Binary files /dev/null and b/.github/visual-baseline/shots/core-banner--collapsible-content-expanded__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-banner--info__neutral-dark.png b/.github/visual-baseline/shots/core-banner--info__neutral-dark.png
new file mode 100644
index 0000000000..4683926e5d
Binary files /dev/null and b/.github/visual-baseline/shots/core-banner--info__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-banner--info__neutral-light.png b/.github/visual-baseline/shots/core-banner--info__neutral-light.png
new file mode 100644
index 0000000000..e4e96a60e4
Binary files /dev/null and b/.github/visual-baseline/shots/core-banner--info__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-basetypeahead--default__neutral-dark.png b/.github/visual-baseline/shots/core-basetypeahead--default__neutral-dark.png
new file mode 100644
index 0000000000..c529b4a7be
Binary files /dev/null and b/.github/visual-baseline/shots/core-basetypeahead--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-basetypeahead--default__neutral-light.png b/.github/visual-baseline/shots/core-basetypeahead--default__neutral-light.png
new file mode 100644
index 0000000000..1e0fecc6ea
Binary files /dev/null and b/.github/visual-baseline/shots/core-basetypeahead--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-basetypeahead--loading__probe-dark.png b/.github/visual-baseline/shots/core-basetypeahead--loading__probe-dark.png
new file mode 100644
index 0000000000..c047f205ac
Binary files /dev/null and b/.github/visual-baseline/shots/core-basetypeahead--loading__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-basetypeahead--loading__probe-light.png b/.github/visual-baseline/shots/core-basetypeahead--loading__probe-light.png
new file mode 100644
index 0000000000..1d29cea02f
Binary files /dev/null and b/.github/visual-baseline/shots/core-basetypeahead--loading__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-blockquote--default__neutral-dark.png b/.github/visual-baseline/shots/core-blockquote--default__neutral-dark.png
new file mode 100644
index 0000000000..b06e168b5e
Binary files /dev/null and b/.github/visual-baseline/shots/core-blockquote--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-blockquote--default__neutral-light.png b/.github/visual-baseline/shots/core-blockquote--default__neutral-light.png
new file mode 100644
index 0000000000..f3b120795d
Binary files /dev/null and b/.github/visual-baseline/shots/core-blockquote--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-bottomsheet--text-only__neutral-dark.png b/.github/visual-baseline/shots/core-bottomsheet--text-only__neutral-dark.png
new file mode 100644
index 0000000000..fc6f480ed1
Binary files /dev/null and b/.github/visual-baseline/shots/core-bottomsheet--text-only__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-bottomsheet--text-only__neutral-light.png b/.github/visual-baseline/shots/core-bottomsheet--text-only__neutral-light.png
new file mode 100644
index 0000000000..0245997af9
Binary files /dev/null and b/.github/visual-baseline/shots/core-bottomsheet--text-only__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-breadcrumbs--custom-separator__neutral-dark.png b/.github/visual-baseline/shots/core-breadcrumbs--custom-separator__neutral-dark.png
new file mode 100644
index 0000000000..4691bbba44
Binary files /dev/null and b/.github/visual-baseline/shots/core-breadcrumbs--custom-separator__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-breadcrumbs--custom-separator__neutral-light.png b/.github/visual-baseline/shots/core-breadcrumbs--custom-separator__neutral-light.png
new file mode 100644
index 0000000000..a3b5ee8fc8
Binary files /dev/null and b/.github/visual-baseline/shots/core-breadcrumbs--custom-separator__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-breadcrumbs--default__neutral-dark.png b/.github/visual-baseline/shots/core-breadcrumbs--default__neutral-dark.png
new file mode 100644
index 0000000000..a47500173a
Binary files /dev/null and b/.github/visual-baseline/shots/core-breadcrumbs--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-breadcrumbs--default__neutral-light.png b/.github/visual-baseline/shots/core-breadcrumbs--default__neutral-light.png
new file mode 100644
index 0000000000..32ff4c0018
Binary files /dev/null and b/.github/visual-baseline/shots/core-breadcrumbs--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-breadcrumbs--menu-crumb__probe-dark.png b/.github/visual-baseline/shots/core-breadcrumbs--menu-crumb__probe-dark.png
new file mode 100644
index 0000000000..08f84728b4
Binary files /dev/null and b/.github/visual-baseline/shots/core-breadcrumbs--menu-crumb__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-breadcrumbs--menu-crumb__probe-light.png b/.github/visual-baseline/shots/core-breadcrumbs--menu-crumb__probe-light.png
new file mode 100644
index 0000000000..0d0da1e593
Binary files /dev/null and b/.github/visual-baseline/shots/core-breadcrumbs--menu-crumb__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-button--primary__neutral-dark.png b/.github/visual-baseline/shots/core-button--primary__neutral-dark.png
new file mode 100644
index 0000000000..8a33ea3e19
Binary files /dev/null and b/.github/visual-baseline/shots/core-button--primary__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-button--primary__neutral-light.png b/.github/visual-baseline/shots/core-button--primary__neutral-light.png
new file mode 100644
index 0000000000..fd7b624552
Binary files /dev/null and b/.github/visual-baseline/shots/core-button--primary__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-buttongroup--horizontal__neutral-dark.png b/.github/visual-baseline/shots/core-buttongroup--horizontal__neutral-dark.png
new file mode 100644
index 0000000000..1662bb1907
Binary files /dev/null and b/.github/visual-baseline/shots/core-buttongroup--horizontal__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-buttongroup--horizontal__neutral-light.png b/.github/visual-baseline/shots/core-buttongroup--horizontal__neutral-light.png
new file mode 100644
index 0000000000..a5009d6db7
Binary files /dev/null and b/.github/visual-baseline/shots/core-buttongroup--horizontal__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-buttongroup--horizontal__probe-dark.png b/.github/visual-baseline/shots/core-buttongroup--horizontal__probe-dark.png
new file mode 100644
index 0000000000..e57c847283
Binary files /dev/null and b/.github/visual-baseline/shots/core-buttongroup--horizontal__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-buttongroup--horizontal__probe-light.png b/.github/visual-baseline/shots/core-buttongroup--horizontal__probe-light.png
new file mode 100644
index 0000000000..bd47256ca0
Binary files /dev/null and b/.github/visual-baseline/shots/core-buttongroup--horizontal__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-calendar--default__neutral-dark.png b/.github/visual-baseline/shots/core-calendar--default__neutral-dark.png
new file mode 100644
index 0000000000..6587b49be6
Binary files /dev/null and b/.github/visual-baseline/shots/core-calendar--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-calendar--default__neutral-light.png b/.github/visual-baseline/shots/core-calendar--default__neutral-light.png
new file mode 100644
index 0000000000..605351b386
Binary files /dev/null and b/.github/visual-baseline/shots/core-calendar--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-card--default__neutral-dark.png b/.github/visual-baseline/shots/core-card--default__neutral-dark.png
new file mode 100644
index 0000000000..29f6030e80
Binary files /dev/null and b/.github/visual-baseline/shots/core-card--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-card--default__neutral-light.png b/.github/visual-baseline/shots/core-card--default__neutral-light.png
new file mode 100644
index 0000000000..a82f8b33dd
Binary files /dev/null and b/.github/visual-baseline/shots/core-card--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-card--theme-added-variant__probe-dark.png b/.github/visual-baseline/shots/core-card--theme-added-variant__probe-dark.png
new file mode 100644
index 0000000000..cc2a490baa
Binary files /dev/null and b/.github/visual-baseline/shots/core-card--theme-added-variant__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-card--theme-added-variant__probe-light.png b/.github/visual-baseline/shots/core-card--theme-added-variant__probe-light.png
new file mode 100644
index 0000000000..48f098322a
Binary files /dev/null and b/.github/visual-baseline/shots/core-card--theme-added-variant__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-carousel--default__neutral-dark.png b/.github/visual-baseline/shots/core-carousel--default__neutral-dark.png
new file mode 100644
index 0000000000..67802af0df
Binary files /dev/null and b/.github/visual-baseline/shots/core-carousel--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-carousel--default__neutral-light.png b/.github/visual-baseline/shots/core-carousel--default__neutral-light.png
new file mode 100644
index 0000000000..7b03359d27
Binary files /dev/null and b/.github/visual-baseline/shots/core-carousel--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-carousel--default__probe-dark.png b/.github/visual-baseline/shots/core-carousel--default__probe-dark.png
new file mode 100644
index 0000000000..f507902de3
Binary files /dev/null and b/.github/visual-baseline/shots/core-carousel--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-carousel--default__probe-light.png b/.github/visual-baseline/shots/core-carousel--default__probe-light.png
new file mode 100644
index 0000000000..392f056599
Binary files /dev/null and b/.github/visual-baseline/shots/core-carousel--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-center--default__neutral-dark.png b/.github/visual-baseline/shots/core-center--default__neutral-dark.png
new file mode 100644
index 0000000000..5688897d9a
Binary files /dev/null and b/.github/visual-baseline/shots/core-center--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-center--default__neutral-light.png b/.github/visual-baseline/shots/core-center--default__neutral-light.png
new file mode 100644
index 0000000000..2c196da5bb
Binary files /dev/null and b/.github/visual-baseline/shots/core-center--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-center--default__probe-dark.png b/.github/visual-baseline/shots/core-center--default__probe-dark.png
new file mode 100644
index 0000000000..2d6499602e
Binary files /dev/null and b/.github/visual-baseline/shots/core-center--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-center--default__probe-light.png b/.github/visual-baseline/shots/core-center--default__probe-light.png
new file mode 100644
index 0000000000..7f08a685b6
Binary files /dev/null and b/.github/visual-baseline/shots/core-center--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-chat--default__neutral-dark.png b/.github/visual-baseline/shots/core-chat--default__neutral-dark.png
new file mode 100644
index 0000000000..cf87fb9ac3
Binary files /dev/null and b/.github/visual-baseline/shots/core-chat--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chat--default__neutral-light.png b/.github/visual-baseline/shots/core-chat--default__neutral-light.png
new file mode 100644
index 0000000000..c196d35535
Binary files /dev/null and b/.github/visual-baseline/shots/core-chat--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatautoscroll--scroll-behavior-comparison__neutral-dark.png b/.github/visual-baseline/shots/core-chatautoscroll--scroll-behavior-comparison__neutral-dark.png
new file mode 100644
index 0000000000..fef47c6838
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatautoscroll--scroll-behavior-comparison__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatautoscroll--scroll-behavior-comparison__neutral-light.png b/.github/visual-baseline/shots/core-chatautoscroll--scroll-behavior-comparison__neutral-light.png
new file mode 100644
index 0000000000..71cdab736c
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatautoscroll--scroll-behavior-comparison__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatcomposer--with-attachments__probe-dark.png b/.github/visual-baseline/shots/core-chatcomposer--with-attachments__probe-dark.png
new file mode 100644
index 0000000000..d022800410
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatcomposer--with-attachments__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatcomposer--with-attachments__probe-light.png b/.github/visual-baseline/shots/core-chatcomposer--with-attachments__probe-light.png
new file mode 100644
index 0000000000..3ef83bede6
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatcomposer--with-attachments__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatcomposerdrawer--custom-collapsed-summary__neutral-dark.png b/.github/visual-baseline/shots/core-chatcomposerdrawer--custom-collapsed-summary__neutral-dark.png
new file mode 100644
index 0000000000..4a262be966
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatcomposerdrawer--custom-collapsed-summary__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatcomposerdrawer--custom-collapsed-summary__neutral-light.png b/.github/visual-baseline/shots/core-chatcomposerdrawer--custom-collapsed-summary__neutral-light.png
new file mode 100644
index 0000000000..f58e12243e
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatcomposerdrawer--custom-collapsed-summary__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatdictationbutton--clipping__neutral-dark.png b/.github/visual-baseline/shots/core-chatdictationbutton--clipping__neutral-dark.png
new file mode 100644
index 0000000000..85932408b0
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatdictationbutton--clipping__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatdictationbutton--clipping__neutral-light.png b/.github/visual-baseline/shots/core-chatdictationbutton--clipping__neutral-light.png
new file mode 100644
index 0000000000..9729b22ab6
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatdictationbutton--clipping__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatdictationbutton--idle__probe-dark.png b/.github/visual-baseline/shots/core-chatdictationbutton--idle__probe-dark.png
new file mode 100644
index 0000000000..25f310565b
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatdictationbutton--idle__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatdictationbutton--idle__probe-light.png b/.github/visual-baseline/shots/core-chatdictationbutton--idle__probe-light.png
new file mode 100644
index 0000000000..7368da19a3
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatdictationbutton--idle__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatdictationbutton--unsupported-visible__neutral-dark.png b/.github/visual-baseline/shots/core-chatdictationbutton--unsupported-visible__neutral-dark.png
new file mode 100644
index 0000000000..917b627e9a
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatdictationbutton--unsupported-visible__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatdictationbutton--unsupported-visible__neutral-light.png b/.github/visual-baseline/shots/core-chatdictationbutton--unsupported-visible__neutral-light.png
new file mode 100644
index 0000000000..8d60be4846
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatdictationbutton--unsupported-visible__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatlayout--full-ai-chat__probe-dark.png b/.github/visual-baseline/shots/core-chatlayout--full-ai-chat__probe-dark.png
new file mode 100644
index 0000000000..3a2a0d3aa5
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatlayout--full-ai-chat__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatlayout--full-ai-chat__probe-light.png b/.github/visual-baseline/shots/core-chatlayout--full-ai-chat__probe-light.png
new file mode 100644
index 0000000000..cb631943c2
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatlayout--full-ai-chat__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-chatlayout--with-empty-state__probe-dark.png b/.github/visual-baseline/shots/core-chatlayout--with-empty-state__probe-dark.png
new file mode 100644
index 0000000000..3170f638cb
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatlayout--with-empty-state__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-chatlayout--with-empty-state__probe-light.png b/.github/visual-baseline/shots/core-chatlayout--with-empty-state__probe-light.png
new file mode 100644
index 0000000000..f878437e7e
Binary files /dev/null and b/.github/visual-baseline/shots/core-chatlayout--with-empty-state__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-checkboxinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-checkboxinput--default__neutral-dark.png
new file mode 100644
index 0000000000..c60af9a07a
Binary files /dev/null and b/.github/visual-baseline/shots/core-checkboxinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-checkboxinput--default__neutral-light.png b/.github/visual-baseline/shots/core-checkboxinput--default__neutral-light.png
new file mode 100644
index 0000000000..f8bbc307f2
Binary files /dev/null and b/.github/visual-baseline/shots/core-checkboxinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-checkboxlist--default__neutral-dark.png b/.github/visual-baseline/shots/core-checkboxlist--default__neutral-dark.png
new file mode 100644
index 0000000000..9484db8447
Binary files /dev/null and b/.github/visual-baseline/shots/core-checkboxlist--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-checkboxlist--default__neutral-light.png b/.github/visual-baseline/shots/core-checkboxlist--default__neutral-light.png
new file mode 100644
index 0000000000..48c4373b9f
Binary files /dev/null and b/.github/visual-baseline/shots/core-checkboxlist--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-citation--label__neutral-dark.png b/.github/visual-baseline/shots/core-citation--label__neutral-dark.png
new file mode 100644
index 0000000000..c94a497f09
Binary files /dev/null and b/.github/visual-baseline/shots/core-citation--label__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-citation--label__neutral-light.png b/.github/visual-baseline/shots/core-citation--label__neutral-light.png
new file mode 100644
index 0000000000..327b596a00
Binary files /dev/null and b/.github/visual-baseline/shots/core-citation--label__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-clickablecard--navigation__neutral-dark.png b/.github/visual-baseline/shots/core-clickablecard--navigation__neutral-dark.png
new file mode 100644
index 0000000000..3200d86224
Binary files /dev/null and b/.github/visual-baseline/shots/core-clickablecard--navigation__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-clickablecard--navigation__neutral-light.png b/.github/visual-baseline/shots/core-clickablecard--navigation__neutral-light.png
new file mode 100644
index 0000000000..ac742cfb7e
Binary files /dev/null and b/.github/visual-baseline/shots/core-clickablecard--navigation__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-code--default__neutral-dark.png b/.github/visual-baseline/shots/core-code--default__neutral-dark.png
new file mode 100644
index 0000000000..0cd4705da2
Binary files /dev/null and b/.github/visual-baseline/shots/core-code--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-code--default__neutral-light.png b/.github/visual-baseline/shots/core-code--default__neutral-light.png
new file mode 100644
index 0000000000..49dd660c8a
Binary files /dev/null and b/.github/visual-baseline/shots/core-code--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-codeblock--default__neutral-dark.png b/.github/visual-baseline/shots/core-codeblock--default__neutral-dark.png
new file mode 100644
index 0000000000..4b98506649
Binary files /dev/null and b/.github/visual-baseline/shots/core-codeblock--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-codeblock--default__neutral-light.png b/.github/visual-baseline/shots/core-codeblock--default__neutral-light.png
new file mode 100644
index 0000000000..f31c970212
Binary files /dev/null and b/.github/visual-baseline/shots/core-codeblock--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-collapsible--dividers__probe-dark.png b/.github/visual-baseline/shots/core-collapsible--dividers__probe-dark.png
new file mode 100644
index 0000000000..56d61bc279
Binary files /dev/null and b/.github/visual-baseline/shots/core-collapsible--dividers__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-collapsible--dividers__probe-light.png b/.github/visual-baseline/shots/core-collapsible--dividers__probe-light.png
new file mode 100644
index 0000000000..14ae0f7aed
Binary files /dev/null and b/.github/visual-baseline/shots/core-collapsible--dividers__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-collapsible--single-mode__neutral-dark.png b/.github/visual-baseline/shots/core-collapsible--single-mode__neutral-dark.png
new file mode 100644
index 0000000000..472daee1ee
Binary files /dev/null and b/.github/visual-baseline/shots/core-collapsible--single-mode__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-collapsible--single-mode__neutral-light.png b/.github/visual-baseline/shots/core-collapsible--single-mode__neutral-light.png
new file mode 100644
index 0000000000..d73a0a140a
Binary files /dev/null and b/.github/visual-baseline/shots/core-collapsible--single-mode__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-commandpalette--default__neutral-dark.png b/.github/visual-baseline/shots/core-commandpalette--default__neutral-dark.png
new file mode 100644
index 0000000000..f3d099ca56
Binary files /dev/null and b/.github/visual-baseline/shots/core-commandpalette--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-commandpalette--default__neutral-light.png b/.github/visual-baseline/shots/core-commandpalette--default__neutral-light.png
new file mode 100644
index 0000000000..f69bbecea9
Binary files /dev/null and b/.github/visual-baseline/shots/core-commandpalette--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-commandpalette--default__probe-dark.png b/.github/visual-baseline/shots/core-commandpalette--default__probe-dark.png
new file mode 100644
index 0000000000..f957daa865
Binary files /dev/null and b/.github/visual-baseline/shots/core-commandpalette--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-commandpalette--default__probe-light.png b/.github/visual-baseline/shots/core-commandpalette--default__probe-light.png
new file mode 100644
index 0000000000..0ebfb3219f
Binary files /dev/null and b/.github/visual-baseline/shots/core-commandpalette--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-commandpalette--themed-group-heading__probe-dark.png b/.github/visual-baseline/shots/core-commandpalette--themed-group-heading__probe-dark.png
new file mode 100644
index 0000000000..b76d78f253
Binary files /dev/null and b/.github/visual-baseline/shots/core-commandpalette--themed-group-heading__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-commandpalette--themed-group-heading__probe-light.png b/.github/visual-baseline/shots/core-commandpalette--themed-group-heading__probe-light.png
new file mode 100644
index 0000000000..1f3c515238
Binary files /dev/null and b/.github/visual-baseline/shots/core-commandpalette--themed-group-heading__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-complexselector--fruit-ripeness-grid__neutral-dark.png b/.github/visual-baseline/shots/core-complexselector--fruit-ripeness-grid__neutral-dark.png
new file mode 100644
index 0000000000..cab807bcfb
Binary files /dev/null and b/.github/visual-baseline/shots/core-complexselector--fruit-ripeness-grid__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-complexselector--fruit-ripeness-grid__neutral-light.png b/.github/visual-baseline/shots/core-complexselector--fruit-ripeness-grid__neutral-light.png
new file mode 100644
index 0000000000..e9281ba164
Binary files /dev/null and b/.github/visual-baseline/shots/core-complexselector--fruit-ripeness-grid__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-complexselector--tree-list-with-search__probe-dark.png b/.github/visual-baseline/shots/core-complexselector--tree-list-with-search__probe-dark.png
new file mode 100644
index 0000000000..f2821a1592
Binary files /dev/null and b/.github/visual-baseline/shots/core-complexselector--tree-list-with-search__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-complexselector--tree-list-with-search__probe-light.png b/.github/visual-baseline/shots/core-complexselector--tree-list-with-search__probe-light.png
new file mode 100644
index 0000000000..7a94226854
Binary files /dev/null and b/.github/visual-baseline/shots/core-complexselector--tree-list-with-search__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-contextmenu--default__neutral-dark.png b/.github/visual-baseline/shots/core-contextmenu--default__neutral-dark.png
new file mode 100644
index 0000000000..c4ab6ff637
Binary files /dev/null and b/.github/visual-baseline/shots/core-contextmenu--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-contextmenu--default__neutral-light.png b/.github/visual-baseline/shots/core-contextmenu--default__neutral-light.png
new file mode 100644
index 0000000000..2657654ad4
Binary files /dev/null and b/.github/visual-baseline/shots/core-contextmenu--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-contextmenu--with-sections__probe-dark.png b/.github/visual-baseline/shots/core-contextmenu--with-sections__probe-dark.png
new file mode 100644
index 0000000000..591defd5cf
Binary files /dev/null and b/.github/visual-baseline/shots/core-contextmenu--with-sections__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-contextmenu--with-sections__probe-light.png b/.github/visual-baseline/shots/core-contextmenu--with-sections__probe-light.png
new file mode 100644
index 0000000000..ccde717e89
Binary files /dev/null and b/.github/visual-baseline/shots/core-contextmenu--with-sections__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-contextmenu--with-selectable-items__probe-dark.png b/.github/visual-baseline/shots/core-contextmenu--with-selectable-items__probe-dark.png
new file mode 100644
index 0000000000..e32bdd7cd2
Binary files /dev/null and b/.github/visual-baseline/shots/core-contextmenu--with-selectable-items__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-contextmenu--with-selectable-items__probe-light.png b/.github/visual-baseline/shots/core-contextmenu--with-selectable-items__probe-light.png
new file mode 100644
index 0000000000..2d9a82183e
Binary files /dev/null and b/.github/visual-baseline/shots/core-contextmenu--with-selectable-items__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__neutral-dark.png b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__neutral-dark.png
new file mode 100644
index 0000000000..b09911ef9b
Binary files /dev/null and b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__neutral-light.png b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__neutral-light.png
new file mode 100644
index 0000000000..6f7886e603
Binary files /dev/null and b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__probe-dark.png b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__probe-dark.png
new file mode 100644
index 0000000000..f58d7a19db
Binary files /dev/null and b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__probe-light.png b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__probe-light.png
new file mode 100644
index 0000000000..2f8b768616
Binary files /dev/null and b/.github/visual-baseline/shots/core-control-size-comparison--all-sizes__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-dateinput--clearable__probe-dark.png b/.github/visual-baseline/shots/core-dateinput--clearable__probe-dark.png
new file mode 100644
index 0000000000..c1d07caa32
Binary files /dev/null and b/.github/visual-baseline/shots/core-dateinput--clearable__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-dateinput--clearable__probe-light.png b/.github/visual-baseline/shots/core-dateinput--clearable__probe-light.png
new file mode 100644
index 0000000000..d195fd4d49
Binary files /dev/null and b/.github/visual-baseline/shots/core-dateinput--clearable__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-dateinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-dateinput--default__neutral-dark.png
new file mode 100644
index 0000000000..b1754c0e6a
Binary files /dev/null and b/.github/visual-baseline/shots/core-dateinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-dateinput--default__neutral-light.png b/.github/visual-baseline/shots/core-dateinput--default__neutral-light.png
new file mode 100644
index 0000000000..5d6de1166e
Binary files /dev/null and b/.github/visual-baseline/shots/core-dateinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-daterangeinput--all-variations__probe-dark.png b/.github/visual-baseline/shots/core-daterangeinput--all-variations__probe-dark.png
new file mode 100644
index 0000000000..feb1031c25
Binary files /dev/null and b/.github/visual-baseline/shots/core-daterangeinput--all-variations__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-daterangeinput--all-variations__probe-light.png b/.github/visual-baseline/shots/core-daterangeinput--all-variations__probe-light.png
new file mode 100644
index 0000000000..16664e2b2b
Binary files /dev/null and b/.github/visual-baseline/shots/core-daterangeinput--all-variations__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-daterangeinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-daterangeinput--default__neutral-dark.png
new file mode 100644
index 0000000000..5572632bbb
Binary files /dev/null and b/.github/visual-baseline/shots/core-daterangeinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-daterangeinput--default__neutral-light.png b/.github/visual-baseline/shots/core-daterangeinput--default__neutral-light.png
new file mode 100644
index 0000000000..f0fbb3cbe5
Binary files /dev/null and b/.github/visual-baseline/shots/core-daterangeinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-datetimeinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-datetimeinput--default__neutral-dark.png
new file mode 100644
index 0000000000..5b68be5429
Binary files /dev/null and b/.github/visual-baseline/shots/core-datetimeinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-datetimeinput--default__neutral-light.png b/.github/visual-baseline/shots/core-datetimeinput--default__neutral-light.png
new file mode 100644
index 0000000000..0ad663fd79
Binary files /dev/null and b/.github/visual-baseline/shots/core-datetimeinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-datetimeinput--with-error-status__probe-dark.png b/.github/visual-baseline/shots/core-datetimeinput--with-error-status__probe-dark.png
new file mode 100644
index 0000000000..daf2c18779
Binary files /dev/null and b/.github/visual-baseline/shots/core-datetimeinput--with-error-status__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-datetimeinput--with-error-status__probe-light.png b/.github/visual-baseline/shots/core-datetimeinput--with-error-status__probe-light.png
new file mode 100644
index 0000000000..59c467c66b
Binary files /dev/null and b/.github/visual-baseline/shots/core-datetimeinput--with-error-status__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-dialog--default__neutral-dark.png b/.github/visual-baseline/shots/core-dialog--default__neutral-dark.png
new file mode 100644
index 0000000000..502857790e
Binary files /dev/null and b/.github/visual-baseline/shots/core-dialog--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-dialog--default__neutral-light.png b/.github/visual-baseline/shots/core-dialog--default__neutral-light.png
new file mode 100644
index 0000000000..c820c8ea0d
Binary files /dev/null and b/.github/visual-baseline/shots/core-dialog--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-dialog--mobile-presentation-fullscreen-dialog__probe-dark.png b/.github/visual-baseline/shots/core-dialog--mobile-presentation-fullscreen-dialog__probe-dark.png
new file mode 100644
index 0000000000..19d2b4fa57
Binary files /dev/null and b/.github/visual-baseline/shots/core-dialog--mobile-presentation-fullscreen-dialog__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-dialog--mobile-presentation-fullscreen-dialog__probe-light.png b/.github/visual-baseline/shots/core-dialog--mobile-presentation-fullscreen-dialog__probe-light.png
new file mode 100644
index 0000000000..0e564d6b2f
Binary files /dev/null and b/.github/visual-baseline/shots/core-dialog--mobile-presentation-fullscreen-dialog__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-divider--default__neutral-dark.png b/.github/visual-baseline/shots/core-divider--default__neutral-dark.png
new file mode 100644
index 0000000000..e8d3fa6b80
Binary files /dev/null and b/.github/visual-baseline/shots/core-divider--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-divider--default__neutral-light.png b/.github/visual-baseline/shots/core-divider--default__neutral-light.png
new file mode 100644
index 0000000000..c1d93adc05
Binary files /dev/null and b/.github/visual-baseline/shots/core-divider--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-dropdownmenu--default__neutral-dark.png b/.github/visual-baseline/shots/core-dropdownmenu--default__neutral-dark.png
new file mode 100644
index 0000000000..ab59d9dd6c
Binary files /dev/null and b/.github/visual-baseline/shots/core-dropdownmenu--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-dropdownmenu--default__neutral-light.png b/.github/visual-baseline/shots/core-dropdownmenu--default__neutral-light.png
new file mode 100644
index 0000000000..e357ae8cfd
Binary files /dev/null and b/.github/visual-baseline/shots/core-dropdownmenu--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-dropdownmenu--submenu__probe-dark.png b/.github/visual-baseline/shots/core-dropdownmenu--submenu__probe-dark.png
new file mode 100644
index 0000000000..54e3755f26
Binary files /dev/null and b/.github/visual-baseline/shots/core-dropdownmenu--submenu__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-dropdownmenu--submenu__probe-light.png b/.github/visual-baseline/shots/core-dropdownmenu--submenu__probe-light.png
new file mode 100644
index 0000000000..c543b81c84
Binary files /dev/null and b/.github/visual-baseline/shots/core-dropdownmenu--submenu__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-emptystate--default__neutral-dark.png b/.github/visual-baseline/shots/core-emptystate--default__neutral-dark.png
new file mode 100644
index 0000000000..02af8df744
Binary files /dev/null and b/.github/visual-baseline/shots/core-emptystate--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-emptystate--default__neutral-light.png b/.github/visual-baseline/shots/core-emptystate--default__neutral-light.png
new file mode 100644
index 0000000000..846a62e34c
Binary files /dev/null and b/.github/visual-baseline/shots/core-emptystate--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-field--default__neutral-dark.png b/.github/visual-baseline/shots/core-field--default__neutral-dark.png
new file mode 100644
index 0000000000..591bccf88c
Binary files /dev/null and b/.github/visual-baseline/shots/core-field--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-field--default__neutral-light.png b/.github/visual-baseline/shots/core-field--default__neutral-light.png
new file mode 100644
index 0000000000..6dd6a1bd6a
Binary files /dev/null and b/.github/visual-baseline/shots/core-field--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-fieldstatus--variants__neutral-dark.png b/.github/visual-baseline/shots/core-fieldstatus--variants__neutral-dark.png
new file mode 100644
index 0000000000..9b436aa482
Binary files /dev/null and b/.github/visual-baseline/shots/core-fieldstatus--variants__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-fieldstatus--variants__neutral-light.png b/.github/visual-baseline/shots/core-fieldstatus--variants__neutral-light.png
new file mode 100644
index 0000000000..4c18df438c
Binary files /dev/null and b/.github/visual-baseline/shots/core-fieldstatus--variants__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-fileinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-fileinput--default__neutral-dark.png
new file mode 100644
index 0000000000..4bdcdd843b
Binary files /dev/null and b/.github/visual-baseline/shots/core-fileinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-fileinput--default__neutral-light.png b/.github/visual-baseline/shots/core-fileinput--default__neutral-light.png
new file mode 100644
index 0000000000..0dbffd377f
Binary files /dev/null and b/.github/visual-baseline/shots/core-fileinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-fileinput--default__probe-dark.png b/.github/visual-baseline/shots/core-fileinput--default__probe-dark.png
new file mode 100644
index 0000000000..eec0ca2031
Binary files /dev/null and b/.github/visual-baseline/shots/core-fileinput--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-fileinput--default__probe-light.png b/.github/visual-baseline/shots/core-fileinput--default__probe-light.png
new file mode 100644
index 0000000000..a9f5ed8033
Binary files /dev/null and b/.github/visual-baseline/shots/core-fileinput--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-formlayout--vertical__neutral-dark.png b/.github/visual-baseline/shots/core-formlayout--vertical__neutral-dark.png
new file mode 100644
index 0000000000..0124ffd0b5
Binary files /dev/null and b/.github/visual-baseline/shots/core-formlayout--vertical__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-formlayout--vertical__neutral-light.png b/.github/visual-baseline/shots/core-formlayout--vertical__neutral-light.png
new file mode 100644
index 0000000000..e6190d6c21
Binary files /dev/null and b/.github/visual-baseline/shots/core-formlayout--vertical__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-grid--default__neutral-dark.png b/.github/visual-baseline/shots/core-grid--default__neutral-dark.png
new file mode 100644
index 0000000000..8934c6e9fe
Binary files /dev/null and b/.github/visual-baseline/shots/core-grid--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-grid--default__neutral-light.png b/.github/visual-baseline/shots/core-grid--default__neutral-light.png
new file mode 100644
index 0000000000..05f99d9144
Binary files /dev/null and b/.github/visual-baseline/shots/core-grid--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-grid--with-grid-span__probe-dark.png b/.github/visual-baseline/shots/core-grid--with-grid-span__probe-dark.png
new file mode 100644
index 0000000000..ee0eff85e5
Binary files /dev/null and b/.github/visual-baseline/shots/core-grid--with-grid-span__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-grid--with-grid-span__probe-light.png b/.github/visual-baseline/shots/core-grid--with-grid-span__probe-light.png
new file mode 100644
index 0000000000..df68b4a80e
Binary files /dev/null and b/.github/visual-baseline/shots/core-grid--with-grid-span__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-gridmasonry--masonry-gallery__neutral-dark.png b/.github/visual-baseline/shots/core-gridmasonry--masonry-gallery__neutral-dark.png
new file mode 100644
index 0000000000..eea2877414
Binary files /dev/null and b/.github/visual-baseline/shots/core-gridmasonry--masonry-gallery__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-gridmasonry--masonry-gallery__neutral-light.png b/.github/visual-baseline/shots/core-gridmasonry--masonry-gallery__neutral-light.png
new file mode 100644
index 0000000000..f31573810c
Binary files /dev/null and b/.github/visual-baseline/shots/core-gridmasonry--masonry-gallery__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-heading--level-1__neutral-dark.png b/.github/visual-baseline/shots/core-heading--level-1__neutral-dark.png
new file mode 100644
index 0000000000..c473e4082f
Binary files /dev/null and b/.github/visual-baseline/shots/core-heading--level-1__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-heading--level-1__neutral-light.png b/.github/visual-baseline/shots/core-heading--level-1__neutral-light.png
new file mode 100644
index 0000000000..ce188c5fbb
Binary files /dev/null and b/.github/visual-baseline/shots/core-heading--level-1__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-useclipboard--copy-icon-button__neutral-dark.png b/.github/visual-baseline/shots/core-hooks-useclipboard--copy-icon-button__neutral-dark.png
new file mode 100644
index 0000000000..0fa79813d3
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-useclipboard--copy-icon-button__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-useclipboard--copy-icon-button__neutral-light.png b/.github/visual-baseline/shots/core-hooks-useclipboard--copy-icon-button__neutral-light.png
new file mode 100644
index 0000000000..14558e9e39
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-useclipboard--copy-icon-button__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-usecontainerreveal--reveal__neutral-dark.png b/.github/visual-baseline/shots/core-hooks-usecontainerreveal--reveal__neutral-dark.png
new file mode 100644
index 0000000000..f3c2d39880
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-usecontainerreveal--reveal__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-usecontainerreveal--reveal__neutral-light.png b/.github/visual-baseline/shots/core-hooks-usecontainerreveal--reveal__neutral-light.png
new file mode 100644
index 0000000000..2a687e9e3e
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-usecontainerreveal--reveal__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-usekeyboardhint--default__neutral-dark.png b/.github/visual-baseline/shots/core-hooks-usekeyboardhint--default__neutral-dark.png
new file mode 100644
index 0000000000..4db71e48e3
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-usekeyboardhint--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-usekeyboardhint--default__neutral-light.png b/.github/visual-baseline/shots/core-hooks-usekeyboardhint--default__neutral-light.png
new file mode 100644
index 0000000000..8a6fe2b923
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-usekeyboardhint--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-uselinkify--ur-ls__neutral-dark.png b/.github/visual-baseline/shots/core-hooks-uselinkify--ur-ls__neutral-dark.png
new file mode 100644
index 0000000000..bc0a4d8bf2
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-uselinkify--ur-ls__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-uselinkify--ur-ls__neutral-light.png b/.github/visual-baseline/shots/core-hooks-uselinkify--ur-ls__neutral-light.png
new file mode 100644
index 0000000000..d161f76dce
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-uselinkify--ur-ls__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-useresizable--horizontal__neutral-dark.png b/.github/visual-baseline/shots/core-hooks-useresizable--horizontal__neutral-dark.png
new file mode 100644
index 0000000000..34ef8f349d
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-useresizable--horizontal__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-useresizable--horizontal__neutral-light.png b/.github/visual-baseline/shots/core-hooks-useresizable--horizontal__neutral-light.png
new file mode 100644
index 0000000000..b21e46b6e8
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-useresizable--horizontal__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-usestreamingtext--natural__neutral-dark.png b/.github/visual-baseline/shots/core-hooks-usestreamingtext--natural__neutral-dark.png
new file mode 100644
index 0000000000..9f81ed8f45
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-usestreamingtext--natural__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hooks-usestreamingtext--natural__neutral-light.png b/.github/visual-baseline/shots/core-hooks-usestreamingtext--natural__neutral-light.png
new file mode 100644
index 0000000000..49f0efe6c9
Binary files /dev/null and b/.github/visual-baseline/shots/core-hooks-usestreamingtext--natural__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-hovercard--default__neutral-dark.png b/.github/visual-baseline/shots/core-hovercard--default__neutral-dark.png
new file mode 100644
index 0000000000..9dd33a3c56
Binary files /dev/null and b/.github/visual-baseline/shots/core-hovercard--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-hovercard--default__neutral-light.png b/.github/visual-baseline/shots/core-hovercard--default__neutral-light.png
new file mode 100644
index 0000000000..c1b694c9fd
Binary files /dev/null and b/.github/visual-baseline/shots/core-hovercard--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-icon--default__neutral-dark.png b/.github/visual-baseline/shots/core-icon--default__neutral-dark.png
new file mode 100644
index 0000000000..9ab7331feb
Binary files /dev/null and b/.github/visual-baseline/shots/core-icon--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-icon--default__neutral-light.png b/.github/visual-baseline/shots/core-icon--default__neutral-light.png
new file mode 100644
index 0000000000..8fbee01a28
Binary files /dev/null and b/.github/visual-baseline/shots/core-icon--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-icon-size-theming--built-in-component-icons__probe-dark.png b/.github/visual-baseline/shots/core-icon-size-theming--built-in-component-icons__probe-dark.png
new file mode 100644
index 0000000000..7a83f54b86
Binary files /dev/null and b/.github/visual-baseline/shots/core-icon-size-theming--built-in-component-icons__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-icon-size-theming--built-in-component-icons__probe-light.png b/.github/visual-baseline/shots/core-icon-size-theming--built-in-component-icons__probe-light.png
new file mode 100644
index 0000000000..98fb18873b
Binary files /dev/null and b/.github/visual-baseline/shots/core-icon-size-theming--built-in-component-icons__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-icon-size-theming--size-scale__neutral-dark.png b/.github/visual-baseline/shots/core-icon-size-theming--size-scale__neutral-dark.png
new file mode 100644
index 0000000000..449879a335
Binary files /dev/null and b/.github/visual-baseline/shots/core-icon-size-theming--size-scale__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-icon-size-theming--size-scale__neutral-light.png b/.github/visual-baseline/shots/core-icon-size-theming--size-scale__neutral-light.png
new file mode 100644
index 0000000000..a679651e85
Binary files /dev/null and b/.github/visual-baseline/shots/core-icon-size-theming--size-scale__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-iconbutton--default__neutral-dark.png b/.github/visual-baseline/shots/core-iconbutton--default__neutral-dark.png
new file mode 100644
index 0000000000..ffaab5c4f4
Binary files /dev/null and b/.github/visual-baseline/shots/core-iconbutton--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-iconbutton--default__neutral-light.png b/.github/visual-baseline/shots/core-iconbutton--default__neutral-light.png
new file mode 100644
index 0000000000..19a13413bf
Binary files /dev/null and b/.github/visual-baseline/shots/core-iconbutton--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-indicator--all-states__neutral-dark.png b/.github/visual-baseline/shots/core-indicator--all-states__neutral-dark.png
new file mode 100644
index 0000000000..280dbc13c0
Binary files /dev/null and b/.github/visual-baseline/shots/core-indicator--all-states__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-indicator--all-states__neutral-light.png b/.github/visual-baseline/shots/core-indicator--all-states__neutral-light.png
new file mode 100644
index 0000000000..62d78fcba0
Binary files /dev/null and b/.github/visual-baseline/shots/core-indicator--all-states__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-inputgroup--with-prefix__neutral-dark.png b/.github/visual-baseline/shots/core-inputgroup--with-prefix__neutral-dark.png
new file mode 100644
index 0000000000..5a0f2509f6
Binary files /dev/null and b/.github/visual-baseline/shots/core-inputgroup--with-prefix__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-inputgroup--with-prefix__neutral-light.png b/.github/visual-baseline/shots/core-inputgroup--with-prefix__neutral-light.png
new file mode 100644
index 0000000000..d247735a89
Binary files /dev/null and b/.github/visual-baseline/shots/core-inputgroup--with-prefix__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-inputgroup--with-typeahead__probe-dark.png b/.github/visual-baseline/shots/core-inputgroup--with-typeahead__probe-dark.png
new file mode 100644
index 0000000000..4cb599ac3c
Binary files /dev/null and b/.github/visual-baseline/shots/core-inputgroup--with-typeahead__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-inputgroup--with-typeahead__probe-light.png b/.github/visual-baseline/shots/core-inputgroup--with-typeahead__probe-light.png
new file mode 100644
index 0000000000..a0677d87d7
Binary files /dev/null and b/.github/visual-baseline/shots/core-inputgroup--with-typeahead__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-item--default__neutral-dark.png b/.github/visual-baseline/shots/core-item--default__neutral-dark.png
new file mode 100644
index 0000000000..a053828b11
Binary files /dev/null and b/.github/visual-baseline/shots/core-item--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-item--default__neutral-light.png b/.github/visual-baseline/shots/core-item--default__neutral-light.png
new file mode 100644
index 0000000000..5e715f3a97
Binary files /dev/null and b/.github/visual-baseline/shots/core-item--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-kbd--default__neutral-dark.png b/.github/visual-baseline/shots/core-kbd--default__neutral-dark.png
new file mode 100644
index 0000000000..a4a18a3b29
Binary files /dev/null and b/.github/visual-baseline/shots/core-kbd--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-kbd--default__neutral-light.png b/.github/visual-baseline/shots/core-kbd--default__neutral-light.png
new file mode 100644
index 0000000000..78c4cbe920
Binary files /dev/null and b/.github/visual-baseline/shots/core-kbd--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-layer--context-mode__neutral-dark.png b/.github/visual-baseline/shots/core-layer--context-mode__neutral-dark.png
new file mode 100644
index 0000000000..4bff16edca
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer--context-mode__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-layer--context-mode__neutral-light.png b/.github/visual-baseline/shots/core-layer--context-mode__neutral-light.png
new file mode 100644
index 0000000000..6de7e15388
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer--context-mode__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-layer-dismissal--modal-in-modal__neutral-dark.png b/.github/visual-baseline/shots/core-layer-dismissal--modal-in-modal__neutral-dark.png
new file mode 100644
index 0000000000..747d443508
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer-dismissal--modal-in-modal__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-layer-dismissal--modal-in-modal__neutral-light.png b/.github/visual-baseline/shots/core-layer-dismissal--modal-in-modal__neutral-light.png
new file mode 100644
index 0000000000..553d655c17
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer-dismissal--modal-in-modal__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-layer-dismissal--pinned-hover-card-in-modal__probe-dark.png b/.github/visual-baseline/shots/core-layer-dismissal--pinned-hover-card-in-modal__probe-dark.png
new file mode 100644
index 0000000000..0a5e092f97
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer-dismissal--pinned-hover-card-in-modal__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-layer-dismissal--pinned-hover-card-in-modal__probe-light.png b/.github/visual-baseline/shots/core-layer-dismissal--pinned-hover-card-in-modal__probe-light.png
new file mode 100644
index 0000000000..7f680f26c4
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer-dismissal--pinned-hover-card-in-modal__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-layer-dismissal--required-modal-with-lightbox__probe-dark.png b/.github/visual-baseline/shots/core-layer-dismissal--required-modal-with-lightbox__probe-dark.png
new file mode 100644
index 0000000000..7674c2142f
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer-dismissal--required-modal-with-lightbox__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-layer-dismissal--required-modal-with-lightbox__probe-light.png b/.github/visual-baseline/shots/core-layer-dismissal--required-modal-with-lightbox__probe-light.png
new file mode 100644
index 0000000000..f7193d0092
Binary files /dev/null and b/.github/visual-baseline/shots/core-layer-dismissal--required-modal-with-lightbox__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-layout--content-width-scrollbar-placement__neutral-dark.png b/.github/visual-baseline/shots/core-layout--content-width-scrollbar-placement__neutral-dark.png
new file mode 100644
index 0000000000..30dd5ed1e6
Binary files /dev/null and b/.github/visual-baseline/shots/core-layout--content-width-scrollbar-placement__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-layout--content-width-scrollbar-placement__neutral-light.png b/.github/visual-baseline/shots/core-layout--content-width-scrollbar-placement__neutral-light.png
new file mode 100644
index 0000000000..129d567910
Binary files /dev/null and b/.github/visual-baseline/shots/core-layout--content-width-scrollbar-placement__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-lightbox--default__neutral-dark.png b/.github/visual-baseline/shots/core-lightbox--default__neutral-dark.png
new file mode 100644
index 0000000000..333f4bb6b4
Binary files /dev/null and b/.github/visual-baseline/shots/core-lightbox--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-lightbox--default__neutral-light.png b/.github/visual-baseline/shots/core-lightbox--default__neutral-light.png
new file mode 100644
index 0000000000..fb4ef0f2af
Binary files /dev/null and b/.github/visual-baseline/shots/core-lightbox--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-link--default__neutral-dark.png b/.github/visual-baseline/shots/core-link--default__neutral-dark.png
new file mode 100644
index 0000000000..958b943a41
Binary files /dev/null and b/.github/visual-baseline/shots/core-link--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-link--default__neutral-light.png b/.github/visual-baseline/shots/core-link--default__neutral-light.png
new file mode 100644
index 0000000000..d946e87923
Binary files /dev/null and b/.github/visual-baseline/shots/core-link--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-link-navigation--destinations__neutral-dark.png b/.github/visual-baseline/shots/core-link-navigation--destinations__neutral-dark.png
new file mode 100644
index 0000000000..16bad40218
Binary files /dev/null and b/.github/visual-baseline/shots/core-link-navigation--destinations__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-link-navigation--destinations__neutral-light.png b/.github/visual-baseline/shots/core-link-navigation--destinations__neutral-light.png
new file mode 100644
index 0000000000..ee5aac3e1d
Binary files /dev/null and b/.github/visual-baseline/shots/core-link-navigation--destinations__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-link-navigation--destinations__probe-dark.png b/.github/visual-baseline/shots/core-link-navigation--destinations__probe-dark.png
new file mode 100644
index 0000000000..c0447fdb87
Binary files /dev/null and b/.github/visual-baseline/shots/core-link-navigation--destinations__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-link-navigation--destinations__probe-light.png b/.github/visual-baseline/shots/core-link-navigation--destinations__probe-light.png
new file mode 100644
index 0000000000..36d73817b6
Binary files /dev/null and b/.github/visual-baseline/shots/core-link-navigation--destinations__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-list--basic__neutral-dark.png b/.github/visual-baseline/shots/core-list--basic__neutral-dark.png
new file mode 100644
index 0000000000..3c8a95df8e
Binary files /dev/null and b/.github/visual-baseline/shots/core-list--basic__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-list--basic__neutral-light.png b/.github/visual-baseline/shots/core-list--basic__neutral-light.png
new file mode 100644
index 0000000000..99a13b081c
Binary files /dev/null and b/.github/visual-baseline/shots/core-list--basic__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-markdown--default__neutral-dark.png b/.github/visual-baseline/shots/core-markdown--default__neutral-dark.png
new file mode 100644
index 0000000000..0fefd5ec2a
Binary files /dev/null and b/.github/visual-baseline/shots/core-markdown--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-markdown--default__neutral-light.png b/.github/visual-baseline/shots/core-markdown--default__neutral-light.png
new file mode 100644
index 0000000000..b23612e6a7
Binary files /dev/null and b/.github/visual-baseline/shots/core-markdown--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-markdown--default__probe-dark.png b/.github/visual-baseline/shots/core-markdown--default__probe-dark.png
new file mode 100644
index 0000000000..b8466e1b2e
Binary files /dev/null and b/.github/visual-baseline/shots/core-markdown--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-markdown--default__probe-light.png b/.github/visual-baseline/shots/core-markdown--default__probe-light.png
new file mode 100644
index 0000000000..4e28b85517
Binary files /dev/null and b/.github/visual-baseline/shots/core-markdown--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-markdown--with-images__probe-dark.png b/.github/visual-baseline/shots/core-markdown--with-images__probe-dark.png
new file mode 100644
index 0000000000..c4fe2ce5f6
Binary files /dev/null and b/.github/visual-baseline/shots/core-markdown--with-images__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-markdown--with-images__probe-light.png b/.github/visual-baseline/shots/core-markdown--with-images__probe-light.png
new file mode 100644
index 0000000000..3a31e942a2
Binary files /dev/null and b/.github/visual-baseline/shots/core-markdown--with-images__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-metadatalist--basic__neutral-dark.png b/.github/visual-baseline/shots/core-metadatalist--basic__neutral-dark.png
new file mode 100644
index 0000000000..b114629d29
Binary files /dev/null and b/.github/visual-baseline/shots/core-metadatalist--basic__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-metadatalist--basic__neutral-light.png b/.github/visual-baseline/shots/core-metadatalist--basic__neutral-light.png
new file mode 100644
index 0000000000..47f152c839
Binary files /dev/null and b/.github/visual-baseline/shots/core-metadatalist--basic__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-metadatalist--basic__probe-dark.png b/.github/visual-baseline/shots/core-metadatalist--basic__probe-dark.png
new file mode 100644
index 0000000000..9d00598a28
Binary files /dev/null and b/.github/visual-baseline/shots/core-metadatalist--basic__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-metadatalist--basic__probe-light.png b/.github/visual-baseline/shots/core-metadatalist--basic__probe-light.png
new file mode 100644
index 0000000000..982e99b709
Binary files /dev/null and b/.github/visual-baseline/shots/core-metadatalist--basic__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-mobilenav--default__neutral-dark.png b/.github/visual-baseline/shots/core-mobilenav--default__neutral-dark.png
new file mode 100644
index 0000000000..79a10a079a
Binary files /dev/null and b/.github/visual-baseline/shots/core-mobilenav--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-mobilenav--default__neutral-light.png b/.github/visual-baseline/shots/core-mobilenav--default__neutral-light.png
new file mode 100644
index 0000000000..8d522afa03
Binary files /dev/null and b/.github/visual-baseline/shots/core-mobilenav--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-moremenu--bottom-sheet-presentation__probe-dark.png b/.github/visual-baseline/shots/core-moremenu--bottom-sheet-presentation__probe-dark.png
new file mode 100644
index 0000000000..7b3b077fe5
Binary files /dev/null and b/.github/visual-baseline/shots/core-moremenu--bottom-sheet-presentation__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-moremenu--bottom-sheet-presentation__probe-light.png b/.github/visual-baseline/shots/core-moremenu--bottom-sheet-presentation__probe-light.png
new file mode 100644
index 0000000000..ddf01e5f0d
Binary files /dev/null and b/.github/visual-baseline/shots/core-moremenu--bottom-sheet-presentation__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-moremenu--default__neutral-dark.png b/.github/visual-baseline/shots/core-moremenu--default__neutral-dark.png
new file mode 100644
index 0000000000..b786450bb9
Binary files /dev/null and b/.github/visual-baseline/shots/core-moremenu--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-moremenu--default__neutral-light.png b/.github/visual-baseline/shots/core-moremenu--default__neutral-light.png
new file mode 100644
index 0000000000..6351c4c12f
Binary files /dev/null and b/.github/visual-baseline/shots/core-moremenu--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--clearable__probe-dark.png b/.github/visual-baseline/shots/core-multiselector--clearable__probe-dark.png
new file mode 100644
index 0000000000..cb9b9337f3
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--clearable__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--clearable__probe-light.png b/.github/visual-baseline/shots/core-multiselector--clearable__probe-light.png
new file mode 100644
index 0000000000..f6800fdc11
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--clearable__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--default__neutral-dark.png b/.github/visual-baseline/shots/core-multiselector--default__neutral-dark.png
new file mode 100644
index 0000000000..c954c77e67
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--default__neutral-light.png b/.github/visual-baseline/shots/core-multiselector--default__neutral-light.png
new file mode 100644
index 0000000000..0fb2aeac70
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--empty-states__probe-dark.png b/.github/visual-baseline/shots/core-multiselector--empty-states__probe-dark.png
new file mode 100644
index 0000000000..b4a4bfb04b
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--empty-states__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--empty-states__probe-light.png b/.github/visual-baseline/shots/core-multiselector--empty-states__probe-light.png
new file mode 100644
index 0000000000..eda9c238b5
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--empty-states__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--sections__probe-dark.png b/.github/visual-baseline/shots/core-multiselector--sections__probe-dark.png
new file mode 100644
index 0000000000..5281f38ce4
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--sections__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-multiselector--sections__probe-light.png b/.github/visual-baseline/shots/core-multiselector--sections__probe-light.png
new file mode 100644
index 0000000000..873a62b83e
Binary files /dev/null and b/.github/visual-baseline/shots/core-multiselector--sections__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-navicon--default__neutral-dark.png b/.github/visual-baseline/shots/core-navicon--default__neutral-dark.png
new file mode 100644
index 0000000000..f33e92ae67
Binary files /dev/null and b/.github/visual-baseline/shots/core-navicon--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-navicon--default__neutral-light.png b/.github/visual-baseline/shots/core-navicon--default__neutral-light.png
new file mode 100644
index 0000000000..fcc90ffdff
Binary files /dev/null and b/.github/visual-baseline/shots/core-navicon--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-navmenu--default__neutral-dark.png b/.github/visual-baseline/shots/core-navmenu--default__neutral-dark.png
new file mode 100644
index 0000000000..ad65e4e496
Binary files /dev/null and b/.github/visual-baseline/shots/core-navmenu--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-navmenu--default__neutral-light.png b/.github/visual-baseline/shots/core-navmenu--default__neutral-light.png
new file mode 100644
index 0000000000..2492101108
Binary files /dev/null and b/.github/visual-baseline/shots/core-navmenu--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-navmenu--default__probe-dark.png b/.github/visual-baseline/shots/core-navmenu--default__probe-dark.png
new file mode 100644
index 0000000000..ae76bd27bf
Binary files /dev/null and b/.github/visual-baseline/shots/core-navmenu--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-navmenu--default__probe-light.png b/.github/visual-baseline/shots/core-navmenu--default__probe-light.png
new file mode 100644
index 0000000000..50e5fcbae5
Binary files /dev/null and b/.github/visual-baseline/shots/core-navmenu--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-numberinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-numberinput--default__neutral-dark.png
new file mode 100644
index 0000000000..c4bb012aa4
Binary files /dev/null and b/.github/visual-baseline/shots/core-numberinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-numberinput--default__neutral-light.png b/.github/visual-baseline/shots/core-numberinput--default__neutral-light.png
new file mode 100644
index 0000000000..a8702a007a
Binary files /dev/null and b/.github/visual-baseline/shots/core-numberinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-outline--basic__neutral-dark.png b/.github/visual-baseline/shots/core-outline--basic__neutral-dark.png
new file mode 100644
index 0000000000..2e5c36a4d1
Binary files /dev/null and b/.github/visual-baseline/shots/core-outline--basic__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-outline--basic__neutral-light.png b/.github/visual-baseline/shots/core-outline--basic__neutral-light.png
new file mode 100644
index 0000000000..34ba74040e
Binary files /dev/null and b/.github/visual-baseline/shots/core-outline--basic__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-outline--basic__probe-dark.png b/.github/visual-baseline/shots/core-outline--basic__probe-dark.png
new file mode 100644
index 0000000000..f18bb1893a
Binary files /dev/null and b/.github/visual-baseline/shots/core-outline--basic__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-outline--basic__probe-light.png b/.github/visual-baseline/shots/core-outline--basic__probe-light.png
new file mode 100644
index 0000000000..fb30471e1e
Binary files /dev/null and b/.github/visual-baseline/shots/core-outline--basic__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-overflowlist--default__neutral-dark.png b/.github/visual-baseline/shots/core-overflowlist--default__neutral-dark.png
new file mode 100644
index 0000000000..ed8e81cead
Binary files /dev/null and b/.github/visual-baseline/shots/core-overflowlist--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-overflowlist--default__neutral-light.png b/.github/visual-baseline/shots/core-overflowlist--default__neutral-light.png
new file mode 100644
index 0000000000..89e567d4ac
Binary files /dev/null and b/.github/visual-baseline/shots/core-overflowlist--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-overflowlist--default__probe-dark.png b/.github/visual-baseline/shots/core-overflowlist--default__probe-dark.png
new file mode 100644
index 0000000000..b93addb2d5
Binary files /dev/null and b/.github/visual-baseline/shots/core-overflowlist--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-overflowlist--default__probe-light.png b/.github/visual-baseline/shots/core-overflowlist--default__probe-light.png
new file mode 100644
index 0000000000..9b1ba4671f
Binary files /dev/null and b/.github/visual-baseline/shots/core-overflowlist--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-overlay--gallery-grid__probe-dark.png b/.github/visual-baseline/shots/core-overlay--gallery-grid__probe-dark.png
new file mode 100644
index 0000000000..a0fe275d7f
Binary files /dev/null and b/.github/visual-baseline/shots/core-overlay--gallery-grid__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-overlay--gallery-grid__probe-light.png b/.github/visual-baseline/shots/core-overlay--gallery-grid__probe-light.png
new file mode 100644
index 0000000000..9867319dce
Binary files /dev/null and b/.github/visual-baseline/shots/core-overlay--gallery-grid__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-overlay--hover-on-image__neutral-dark.png b/.github/visual-baseline/shots/core-overlay--hover-on-image__neutral-dark.png
new file mode 100644
index 0000000000..8909e5ae39
Binary files /dev/null and b/.github/visual-baseline/shots/core-overlay--hover-on-image__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-overlay--hover-on-image__neutral-light.png b/.github/visual-baseline/shots/core-overlay--hover-on-image__neutral-light.png
new file mode 100644
index 0000000000..825889912a
Binary files /dev/null and b/.github/visual-baseline/shots/core-overlay--hover-on-image__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-pagination--all-variants__probe-dark.png b/.github/visual-baseline/shots/core-pagination--all-variants__probe-dark.png
new file mode 100644
index 0000000000..d4c3f2aeb2
Binary files /dev/null and b/.github/visual-baseline/shots/core-pagination--all-variants__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-pagination--all-variants__probe-light.png b/.github/visual-baseline/shots/core-pagination--all-variants__probe-light.png
new file mode 100644
index 0000000000..babaaa3e1f
Binary files /dev/null and b/.github/visual-baseline/shots/core-pagination--all-variants__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-pagination--default__neutral-dark.png b/.github/visual-baseline/shots/core-pagination--default__neutral-dark.png
new file mode 100644
index 0000000000..4e07e59511
Binary files /dev/null and b/.github/visual-baseline/shots/core-pagination--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-pagination--default__neutral-light.png b/.github/visual-baseline/shots/core-pagination--default__neutral-light.png
new file mode 100644
index 0000000000..1546fe4307
Binary files /dev/null and b/.github/visual-baseline/shots/core-pagination--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-popover--default__neutral-dark.png b/.github/visual-baseline/shots/core-popover--default__neutral-dark.png
new file mode 100644
index 0000000000..c9340e8947
Binary files /dev/null and b/.github/visual-baseline/shots/core-popover--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-popover--default__neutral-light.png b/.github/visual-baseline/shots/core-popover--default__neutral-light.png
new file mode 100644
index 0000000000..6b9dc2248b
Binary files /dev/null and b/.github/visual-baseline/shots/core-popover--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-powersearch--default__neutral-dark.png b/.github/visual-baseline/shots/core-powersearch--default__neutral-dark.png
new file mode 100644
index 0000000000..8c462d37a7
Binary files /dev/null and b/.github/visual-baseline/shots/core-powersearch--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-powersearch--default__neutral-light.png b/.github/visual-baseline/shots/core-powersearch--default__neutral-light.png
new file mode 100644
index 0000000000..e34312a105
Binary files /dev/null and b/.github/visual-baseline/shots/core-powersearch--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-powersearch--issue-tracker__probe-dark.png b/.github/visual-baseline/shots/core-powersearch--issue-tracker__probe-dark.png
new file mode 100644
index 0000000000..c2f5b85dcf
Binary files /dev/null and b/.github/visual-baseline/shots/core-powersearch--issue-tracker__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-powersearch--issue-tracker__probe-light.png b/.github/visual-baseline/shots/core-powersearch--issue-tracker__probe-light.png
new file mode 100644
index 0000000000..0b55adb487
Binary files /dev/null and b/.github/visual-baseline/shots/core-powersearch--issue-tracker__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-powersearchwithtable--default__neutral-dark.png b/.github/visual-baseline/shots/core-powersearchwithtable--default__neutral-dark.png
new file mode 100644
index 0000000000..abc9fe4c86
Binary files /dev/null and b/.github/visual-baseline/shots/core-powersearchwithtable--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-powersearchwithtable--default__neutral-light.png b/.github/visual-baseline/shots/core-powersearchwithtable--default__neutral-light.png
new file mode 100644
index 0000000000..0553587ba9
Binary files /dev/null and b/.github/visual-baseline/shots/core-powersearchwithtable--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-progressbar--default__neutral-dark.png b/.github/visual-baseline/shots/core-progressbar--default__neutral-dark.png
new file mode 100644
index 0000000000..dfd6ca714d
Binary files /dev/null and b/.github/visual-baseline/shots/core-progressbar--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-progressbar--default__neutral-light.png b/.github/visual-baseline/shots/core-progressbar--default__neutral-light.png
new file mode 100644
index 0000000000..3ea412c46f
Binary files /dev/null and b/.github/visual-baseline/shots/core-progressbar--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-progressbar--with-target-mark__probe-dark.png b/.github/visual-baseline/shots/core-progressbar--with-target-mark__probe-dark.png
new file mode 100644
index 0000000000..55dcd6d607
Binary files /dev/null and b/.github/visual-baseline/shots/core-progressbar--with-target-mark__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-progressbar--with-target-mark__probe-light.png b/.github/visual-baseline/shots/core-progressbar--with-target-mark__probe-light.png
new file mode 100644
index 0000000000..c9d9f9a6a9
Binary files /dev/null and b/.github/visual-baseline/shots/core-progressbar--with-target-mark__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-radiolist--default__neutral-dark.png b/.github/visual-baseline/shots/core-radiolist--default__neutral-dark.png
new file mode 100644
index 0000000000..dbd6ae24af
Binary files /dev/null and b/.github/visual-baseline/shots/core-radiolist--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-radiolist--default__neutral-light.png b/.github/visual-baseline/shots/core-radiolist--default__neutral-light.png
new file mode 100644
index 0000000000..ece65ac54b
Binary files /dev/null and b/.github/visual-baseline/shots/core-radiolist--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-resizable--horizontal-split__neutral-dark.png b/.github/visual-baseline/shots/core-resizable--horizontal-split__neutral-dark.png
new file mode 100644
index 0000000000..eefe781b58
Binary files /dev/null and b/.github/visual-baseline/shots/core-resizable--horizontal-split__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-resizable--horizontal-split__neutral-light.png b/.github/visual-baseline/shots/core-resizable--horizontal-split__neutral-light.png
new file mode 100644
index 0000000000..461c816c68
Binary files /dev/null and b/.github/visual-baseline/shots/core-resizable--horizontal-split__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-scrollablearea--playground__neutral-dark.png b/.github/visual-baseline/shots/core-scrollablearea--playground__neutral-dark.png
new file mode 100644
index 0000000000..e6e265624b
Binary files /dev/null and b/.github/visual-baseline/shots/core-scrollablearea--playground__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-scrollablearea--playground__neutral-light.png b/.github/visual-baseline/shots/core-scrollablearea--playground__neutral-light.png
new file mode 100644
index 0000000000..f7eac68c13
Binary files /dev/null and b/.github/visual-baseline/shots/core-scrollablearea--playground__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-scrollablearea--playground__probe-dark.png b/.github/visual-baseline/shots/core-scrollablearea--playground__probe-dark.png
new file mode 100644
index 0000000000..d04da7ff1b
Binary files /dev/null and b/.github/visual-baseline/shots/core-scrollablearea--playground__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-scrollablearea--playground__probe-light.png b/.github/visual-baseline/shots/core-scrollablearea--playground__probe-light.png
new file mode 100644
index 0000000000..8d44665e28
Binary files /dev/null and b/.github/visual-baseline/shots/core-scrollablearea--playground__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-section--default__neutral-dark.png b/.github/visual-baseline/shots/core-section--default__neutral-dark.png
new file mode 100644
index 0000000000..f61d96a446
Binary files /dev/null and b/.github/visual-baseline/shots/core-section--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-section--default__neutral-light.png b/.github/visual-baseline/shots/core-section--default__neutral-light.png
new file mode 100644
index 0000000000..7e513f6177
Binary files /dev/null and b/.github/visual-baseline/shots/core-section--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-segmentedcontrol--default__neutral-dark.png b/.github/visual-baseline/shots/core-segmentedcontrol--default__neutral-dark.png
new file mode 100644
index 0000000000..4ce1011eeb
Binary files /dev/null and b/.github/visual-baseline/shots/core-segmentedcontrol--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-segmentedcontrol--default__neutral-light.png b/.github/visual-baseline/shots/core-segmentedcontrol--default__neutral-light.png
new file mode 100644
index 0000000000..161e228633
Binary files /dev/null and b/.github/visual-baseline/shots/core-segmentedcontrol--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-segmentedcontrol--default__probe-dark.png b/.github/visual-baseline/shots/core-segmentedcontrol--default__probe-dark.png
new file mode 100644
index 0000000000..214f7b5778
Binary files /dev/null and b/.github/visual-baseline/shots/core-segmentedcontrol--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-segmentedcontrol--default__probe-light.png b/.github/visual-baseline/shots/core-segmentedcontrol--default__probe-light.png
new file mode 100644
index 0000000000..878a756128
Binary files /dev/null and b/.github/visual-baseline/shots/core-segmentedcontrol--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-selectablecard--single-select__neutral-dark.png b/.github/visual-baseline/shots/core-selectablecard--single-select__neutral-dark.png
new file mode 100644
index 0000000000..9077bd66dd
Binary files /dev/null and b/.github/visual-baseline/shots/core-selectablecard--single-select__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selectablecard--single-select__neutral-light.png b/.github/visual-baseline/shots/core-selectablecard--single-select__neutral-light.png
new file mode 100644
index 0000000000..062e8c3df8
Binary files /dev/null and b/.github/visual-baseline/shots/core-selectablecard--single-select__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--clearable__probe-dark.png b/.github/visual-baseline/shots/core-selector--clearable__probe-dark.png
new file mode 100644
index 0000000000..7af132584f
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--clearable__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--clearable__probe-light.png b/.github/visual-baseline/shots/core-selector--clearable__probe-light.png
new file mode 100644
index 0000000000..5339c1fa20
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--clearable__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--default__neutral-dark.png b/.github/visual-baseline/shots/core-selector--default__neutral-dark.png
new file mode 100644
index 0000000000..69b2091711
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--default__neutral-light.png b/.github/visual-baseline/shots/core-selector--default__neutral-light.png
new file mode 100644
index 0000000000..38a6f8bdc6
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--empty-states__probe-dark.png b/.github/visual-baseline/shots/core-selector--empty-states__probe-dark.png
new file mode 100644
index 0000000000..794cbd3dda
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--empty-states__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--empty-states__probe-light.png b/.github/visual-baseline/shots/core-selector--empty-states__probe-light.png
new file mode 100644
index 0000000000..e7b9b46b1f
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--empty-states__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-dark.png b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-dark.png
new file mode 100644
index 0000000000..56cc0b56e5
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-light.png b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-light.png
new file mode 100644
index 0000000000..4f5799bf0c
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-narrow-end-rtl__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-wide-start__neutral-dark.png b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-wide-start__neutral-dark.png
new file mode 100644
index 0000000000..2a2e1c24b3
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-wide-start__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-wide-start__neutral-light.png b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-wide-start__neutral-light.png
new file mode 100644
index 0000000000..ed833a0f40
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-bottom-sheet-wide-start__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-popover-narrow-start__neutral-dark.png b/.github/visual-baseline/shots/core-selector--indicator-space-popover-narrow-start__neutral-dark.png
new file mode 100644
index 0000000000..982f42d769
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-popover-narrow-start__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-popover-narrow-start__neutral-light.png b/.github/visual-baseline/shots/core-selector--indicator-space-popover-narrow-start__neutral-light.png
new file mode 100644
index 0000000000..698ddee79b
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-popover-narrow-start__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-popover-wide-end-rtl__neutral-dark.png b/.github/visual-baseline/shots/core-selector--indicator-space-popover-wide-end-rtl__neutral-dark.png
new file mode 100644
index 0000000000..800295e07c
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-popover-wide-end-rtl__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--indicator-space-popover-wide-end-rtl__neutral-light.png b/.github/visual-baseline/shots/core-selector--indicator-space-popover-wide-end-rtl__neutral-light.png
new file mode 100644
index 0000000000..6ce5436499
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--indicator-space-popover-wide-end-rtl__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-selector--searchable-with-sections__probe-dark.png b/.github/visual-baseline/shots/core-selector--searchable-with-sections__probe-dark.png
new file mode 100644
index 0000000000..493f9ac30a
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--searchable-with-sections__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-selector--searchable-with-sections__probe-light.png b/.github/visual-baseline/shots/core-selector--searchable-with-sections__probe-light.png
new file mode 100644
index 0000000000..90cc62823e
Binary files /dev/null and b/.github/visual-baseline/shots/core-selector--searchable-with-sections__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-sidenav--default__neutral-dark.png b/.github/visual-baseline/shots/core-sidenav--default__neutral-dark.png
new file mode 100644
index 0000000000..acb54bcb6e
Binary files /dev/null and b/.github/visual-baseline/shots/core-sidenav--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-sidenav--default__neutral-light.png b/.github/visual-baseline/shots/core-sidenav--default__neutral-light.png
new file mode 100644
index 0000000000..d12b8e8eaf
Binary files /dev/null and b/.github/visual-baseline/shots/core-sidenav--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-sidenav--resizable-in-app-shell__probe-dark.png b/.github/visual-baseline/shots/core-sidenav--resizable-in-app-shell__probe-dark.png
new file mode 100644
index 0000000000..e1145f4aef
Binary files /dev/null and b/.github/visual-baseline/shots/core-sidenav--resizable-in-app-shell__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-sidenav--resizable-in-app-shell__probe-light.png b/.github/visual-baseline/shots/core-sidenav--resizable-in-app-shell__probe-light.png
new file mode 100644
index 0000000000..b2f3908080
Binary files /dev/null and b/.github/visual-baseline/shots/core-sidenav--resizable-in-app-shell__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-skeleton--default__neutral-dark.png b/.github/visual-baseline/shots/core-skeleton--default__neutral-dark.png
new file mode 100644
index 0000000000..4b40f630cb
Binary files /dev/null and b/.github/visual-baseline/shots/core-skeleton--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-skeleton--default__neutral-light.png b/.github/visual-baseline/shots/core-skeleton--default__neutral-light.png
new file mode 100644
index 0000000000..87b88e192e
Binary files /dev/null and b/.github/visual-baseline/shots/core-skeleton--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-slider--default__neutral-dark.png b/.github/visual-baseline/shots/core-slider--default__neutral-dark.png
new file mode 100644
index 0000000000..5ca10de838
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-slider--default__neutral-light.png b/.github/visual-baseline/shots/core-slider--default__neutral-light.png
new file mode 100644
index 0000000000..64d76430ca
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-slider--default__probe-dark.png b/.github/visual-baseline/shots/core-slider--default__probe-dark.png
new file mode 100644
index 0000000000..5ab811c0fa
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-slider--default__probe-light.png b/.github/visual-baseline/shots/core-slider--default__probe-light.png
new file mode 100644
index 0000000000..f6026d1b81
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-slider--disabled-with-text-value__neutral-dark.png b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__neutral-dark.png
new file mode 100644
index 0000000000..625f683c7f
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-slider--disabled-with-text-value__neutral-light.png b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__neutral-light.png
new file mode 100644
index 0000000000..6fd2bff17d
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-slider--disabled-with-text-value__probe-dark.png b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__probe-dark.png
new file mode 100644
index 0000000000..94812df448
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-slider--disabled-with-text-value__probe-light.png b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__probe-light.png
new file mode 100644
index 0000000000..3a21a98cde
Binary files /dev/null and b/.github/visual-baseline/shots/core-slider--disabled-with-text-value__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-spinner--default__neutral-dark.png b/.github/visual-baseline/shots/core-spinner--default__neutral-dark.png
new file mode 100644
index 0000000000..91818f8985
Binary files /dev/null and b/.github/visual-baseline/shots/core-spinner--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-spinner--default__neutral-light.png b/.github/visual-baseline/shots/core-spinner--default__neutral-light.png
new file mode 100644
index 0000000000..0323e51232
Binary files /dev/null and b/.github/visual-baseline/shots/core-spinner--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-stack--default__neutral-dark.png b/.github/visual-baseline/shots/core-stack--default__neutral-dark.png
new file mode 100644
index 0000000000..f2093659fd
Binary files /dev/null and b/.github/visual-baseline/shots/core-stack--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-stack--default__neutral-light.png b/.github/visual-baseline/shots/core-stack--default__neutral-light.png
new file mode 100644
index 0000000000..86c7ed7efb
Binary files /dev/null and b/.github/visual-baseline/shots/core-stack--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-statusdot--default__neutral-dark.png b/.github/visual-baseline/shots/core-statusdot--default__neutral-dark.png
new file mode 100644
index 0000000000..184cecd9e6
Binary files /dev/null and b/.github/visual-baseline/shots/core-statusdot--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-statusdot--default__neutral-light.png b/.github/visual-baseline/shots/core-statusdot--default__neutral-light.png
new file mode 100644
index 0000000000..df1af5b557
Binary files /dev/null and b/.github/visual-baseline/shots/core-statusdot--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-stepper--default__neutral-dark.png b/.github/visual-baseline/shots/core-stepper--default__neutral-dark.png
new file mode 100644
index 0000000000..0e92216ddc
Binary files /dev/null and b/.github/visual-baseline/shots/core-stepper--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-stepper--default__neutral-light.png b/.github/visual-baseline/shots/core-stepper--default__neutral-light.png
new file mode 100644
index 0000000000..dac17abc64
Binary files /dev/null and b/.github/visual-baseline/shots/core-stepper--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-stepper--default__probe-dark.png b/.github/visual-baseline/shots/core-stepper--default__probe-dark.png
new file mode 100644
index 0000000000..a57312deeb
Binary files /dev/null and b/.github/visual-baseline/shots/core-stepper--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-stepper--default__probe-light.png b/.github/visual-baseline/shots/core-stepper--default__probe-light.png
new file mode 100644
index 0000000000..0f93d63efc
Binary files /dev/null and b/.github/visual-baseline/shots/core-stepper--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-stepper--step-advance__probe-dark.png b/.github/visual-baseline/shots/core-stepper--step-advance__probe-dark.png
new file mode 100644
index 0000000000..c7226a4be0
Binary files /dev/null and b/.github/visual-baseline/shots/core-stepper--step-advance__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-stepper--step-advance__probe-light.png b/.github/visual-baseline/shots/core-stepper--step-advance__probe-light.png
new file mode 100644
index 0000000000..b30f955b48
Binary files /dev/null and b/.github/visual-baseline/shots/core-stepper--step-advance__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-switch--default__neutral-dark.png b/.github/visual-baseline/shots/core-switch--default__neutral-dark.png
new file mode 100644
index 0000000000..837012dd13
Binary files /dev/null and b/.github/visual-baseline/shots/core-switch--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-switch--default__neutral-light.png b/.github/visual-baseline/shots/core-switch--default__neutral-light.png
new file mode 100644
index 0000000000..deba1cdbbb
Binary files /dev/null and b/.github/visual-baseline/shots/core-switch--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-table--default__neutral-dark.png b/.github/visual-baseline/shots/core-table--default__neutral-dark.png
new file mode 100644
index 0000000000..34b383b89e
Binary files /dev/null and b/.github/visual-baseline/shots/core-table--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-table--default__neutral-light.png b/.github/visual-baseline/shots/core-table--default__neutral-light.png
new file mode 100644
index 0000000000..da170856e5
Binary files /dev/null and b/.github/visual-baseline/shots/core-table--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablecolumnresize--default__neutral-dark.png b/.github/visual-baseline/shots/core-tablecolumnresize--default__neutral-dark.png
new file mode 100644
index 0000000000..696b8eef4b
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablecolumnresize--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablecolumnresize--default__neutral-light.png b/.github/visual-baseline/shots/core-tablecolumnresize--default__neutral-light.png
new file mode 100644
index 0000000000..d6be44080d
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablecolumnresize--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__neutral-dark.png b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__neutral-dark.png
new file mode 100644
index 0000000000..6fc94508b0
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__neutral-light.png b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__neutral-light.png
new file mode 100644
index 0000000000..b958035f4f
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__probe-dark.png b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__probe-dark.png
new file mode 100644
index 0000000000..09f7083845
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__probe-light.png b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__probe-light.png
new file mode 100644
index 0000000000..f303799400
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablecolumnsettings--basic-column-toggle__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablefiltering--text-filter__neutral-dark.png b/.github/visual-baseline/shots/core-tablefiltering--text-filter__neutral-dark.png
new file mode 100644
index 0000000000..5bbd1e8b72
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablefiltering--text-filter__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablefiltering--text-filter__neutral-light.png b/.github/visual-baseline/shots/core-tablefiltering--text-filter__neutral-light.png
new file mode 100644
index 0000000000..37192a508b
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablefiltering--text-filter__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablegroupedrows--default__neutral-dark.png b/.github/visual-baseline/shots/core-tablegroupedrows--default__neutral-dark.png
new file mode 100644
index 0000000000..87a1b5a710
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablegroupedrows--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablegroupedrows--default__neutral-light.png b/.github/visual-baseline/shots/core-tablegroupedrows--default__neutral-light.png
new file mode 100644
index 0000000000..b955889e62
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablegroupedrows--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablepagination--default__neutral-dark.png b/.github/visual-baseline/shots/core-tablepagination--default__neutral-dark.png
new file mode 100644
index 0000000000..47bd5311cb
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablepagination--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablepagination--default__neutral-light.png b/.github/visual-baseline/shots/core-tablepagination--default__neutral-light.png
new file mode 100644
index 0000000000..5fda57bc25
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablepagination--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablerowexpansion--detail-panel__neutral-dark.png b/.github/visual-baseline/shots/core-tablerowexpansion--detail-panel__neutral-dark.png
new file mode 100644
index 0000000000..c1bb7179ce
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablerowexpansion--detail-panel__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablerowexpansion--detail-panel__neutral-light.png b/.github/visual-baseline/shots/core-tablerowexpansion--detail-panel__neutral-light.png
new file mode 100644
index 0000000000..0ee90a6059
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablerowexpansion--detail-panel__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablerowindex--default__neutral-dark.png b/.github/visual-baseline/shots/core-tablerowindex--default__neutral-dark.png
new file mode 100644
index 0000000000..0c31df10d8
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablerowindex--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablerowindex--default__neutral-light.png b/.github/visual-baseline/shots/core-tablerowindex--default__neutral-light.png
new file mode 100644
index 0000000000..24e942d473
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablerowindex--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablerowstatus--default__neutral-dark.png b/.github/visual-baseline/shots/core-tablerowstatus--default__neutral-dark.png
new file mode 100644
index 0000000000..c20f5bc1b9
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablerowstatus--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablerowstatus--default__neutral-light.png b/.github/visual-baseline/shots/core-tablerowstatus--default__neutral-light.png
new file mode 100644
index 0000000000..5f7eb65915
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablerowstatus--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tableselection--default__neutral-dark.png b/.github/visual-baseline/shots/core-tableselection--default__neutral-dark.png
new file mode 100644
index 0000000000..f576e396a9
Binary files /dev/null and b/.github/visual-baseline/shots/core-tableselection--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tableselection--default__neutral-light.png b/.github/visual-baseline/shots/core-tableselection--default__neutral-light.png
new file mode 100644
index 0000000000..539f52a568
Binary files /dev/null and b/.github/visual-baseline/shots/core-tableselection--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablesortable--single-sort__neutral-dark.png b/.github/visual-baseline/shots/core-tablesortable--single-sort__neutral-dark.png
new file mode 100644
index 0000000000..d27bd09bcf
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablesortable--single-sort__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablesortable--single-sort__neutral-light.png b/.github/visual-baseline/shots/core-tablesortable--single-sort__neutral-light.png
new file mode 100644
index 0000000000..d508e273ac
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablesortable--single-sort__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablestickycolumns--pin-start__neutral-dark.png b/.github/visual-baseline/shots/core-tablestickycolumns--pin-start__neutral-dark.png
new file mode 100644
index 0000000000..b7bcf6998c
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablestickycolumns--pin-start__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablestickycolumns--pin-start__neutral-light.png b/.github/visual-baseline/shots/core-tablestickycolumns--pin-start__neutral-light.png
new file mode 100644
index 0000000000..8a461f58c4
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablestickycolumns--pin-start__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tabletree--default__neutral-dark.png b/.github/visual-baseline/shots/core-tabletree--default__neutral-dark.png
new file mode 100644
index 0000000000..b03bb06b9c
Binary files /dev/null and b/.github/visual-baseline/shots/core-tabletree--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tabletree--default__neutral-light.png b/.github/visual-baseline/shots/core-tabletree--default__neutral-light.png
new file mode 100644
index 0000000000..a4cead9c68
Binary files /dev/null and b/.github/visual-baseline/shots/core-tabletree--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablist--default__neutral-dark.png b/.github/visual-baseline/shots/core-tablist--default__neutral-dark.png
new file mode 100644
index 0000000000..f2c23a5ee0
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablist--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablist--default__neutral-light.png b/.github/visual-baseline/shots/core-tablist--default__neutral-light.png
new file mode 100644
index 0000000000..25e56da8b8
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablist--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablist--full-bleed-geometry__probe-dark.png b/.github/visual-baseline/shots/core-tablist--full-bleed-geometry__probe-dark.png
new file mode 100644
index 0000000000..d84b3f6bc5
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablist--full-bleed-geometry__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablist--full-bleed-geometry__probe-light.png b/.github/visual-baseline/shots/core-tablist--full-bleed-geometry__probe-light.png
new file mode 100644
index 0000000000..e49b5568fd
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablist--full-bleed-geometry__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-tablist--overflow__probe-dark.png b/.github/visual-baseline/shots/core-tablist--overflow__probe-dark.png
new file mode 100644
index 0000000000..3cf41dfdd2
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablist--overflow__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tablist--overflow__probe-light.png b/.github/visual-baseline/shots/core-tablist--overflow__probe-light.png
new file mode 100644
index 0000000000..f904256e41
Binary files /dev/null and b/.github/visual-baseline/shots/core-tablist--overflow__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-text--body__neutral-dark.png b/.github/visual-baseline/shots/core-text--body__neutral-dark.png
new file mode 100644
index 0000000000..9be3b3261e
Binary files /dev/null and b/.github/visual-baseline/shots/core-text--body__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-text--body__neutral-light.png b/.github/visual-baseline/shots/core-text--body__neutral-light.png
new file mode 100644
index 0000000000..daaae5ecc1
Binary files /dev/null and b/.github/visual-baseline/shots/core-text--body__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-textarea--default__neutral-dark.png b/.github/visual-baseline/shots/core-textarea--default__neutral-dark.png
new file mode 100644
index 0000000000..0fbe15506c
Binary files /dev/null and b/.github/visual-baseline/shots/core-textarea--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-textarea--default__neutral-light.png b/.github/visual-baseline/shots/core-textarea--default__neutral-light.png
new file mode 100644
index 0000000000..86ed62c3a5
Binary files /dev/null and b/.github/visual-baseline/shots/core-textarea--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-textarea--vertical-form-alignment__probe-dark.png b/.github/visual-baseline/shots/core-textarea--vertical-form-alignment__probe-dark.png
new file mode 100644
index 0000000000..fce3240587
Binary files /dev/null and b/.github/visual-baseline/shots/core-textarea--vertical-form-alignment__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-textarea--vertical-form-alignment__probe-light.png b/.github/visual-baseline/shots/core-textarea--vertical-form-alignment__probe-light.png
new file mode 100644
index 0000000000..1f71450fc9
Binary files /dev/null and b/.github/visual-baseline/shots/core-textarea--vertical-form-alignment__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-textinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-textinput--default__neutral-dark.png
new file mode 100644
index 0000000000..f2a1f8eb79
Binary files /dev/null and b/.github/visual-baseline/shots/core-textinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-textinput--default__neutral-light.png b/.github/visual-baseline/shots/core-textinput--default__neutral-light.png
new file mode 100644
index 0000000000..2a70ac2272
Binary files /dev/null and b/.github/visual-baseline/shots/core-textinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-themes-codetheme--one-dark-pro__neutral-dark.png b/.github/visual-baseline/shots/core-themes-codetheme--one-dark-pro__neutral-dark.png
new file mode 100644
index 0000000000..f20a837cd4
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-codetheme--one-dark-pro__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-themes-codetheme--one-dark-pro__neutral-light.png b/.github/visual-baseline/shots/core-themes-codetheme--one-dark-pro__neutral-light.png
new file mode 100644
index 0000000000..94de8f7739
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-codetheme--one-dark-pro__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-themes-mediatheme--on-dark__neutral-dark.png b/.github/visual-baseline/shots/core-themes-mediatheme--on-dark__neutral-dark.png
new file mode 100644
index 0000000000..2801d1a0e0
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-mediatheme--on-dark__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-themes-mediatheme--on-dark__neutral-light.png b/.github/visual-baseline/shots/core-themes-mediatheme--on-dark__neutral-light.png
new file mode 100644
index 0000000000..c7e3128550
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-mediatheme--on-dark__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-themes-mediatheme-auto--flat-surface-theme__neutral-dark.png b/.github/visual-baseline/shots/core-themes-mediatheme-auto--flat-surface-theme__neutral-dark.png
new file mode 100644
index 0000000000..5e7d275aaf
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-mediatheme-auto--flat-surface-theme__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-themes-mediatheme-auto--flat-surface-theme__neutral-light.png b/.github/visual-baseline/shots/core-themes-mediatheme-auto--flat-surface-theme__neutral-light.png
new file mode 100644
index 0000000000..5085ca41c3
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-mediatheme-auto--flat-surface-theme__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-themes-mediatheme-auto--toast-variants__probe-dark.png b/.github/visual-baseline/shots/core-themes-mediatheme-auto--toast-variants__probe-dark.png
new file mode 100644
index 0000000000..5bc0d0c161
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-mediatheme-auto--toast-variants__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-themes-mediatheme-auto--toast-variants__probe-light.png b/.github/visual-baseline/shots/core-themes-mediatheme-auto--toast-variants__probe-light.png
new file mode 100644
index 0000000000..bafc739666
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-mediatheme-auto--toast-variants__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-themes-theme--bar-chart__neutral-dark.png b/.github/visual-baseline/shots/core-themes-theme--bar-chart__neutral-dark.png
new file mode 100644
index 0000000000..107d26dc9e
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-theme--bar-chart__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-themes-theme--bar-chart__neutral-light.png b/.github/visual-baseline/shots/core-themes-theme--bar-chart__neutral-light.png
new file mode 100644
index 0000000000..910b9ec2a5
Binary files /dev/null and b/.github/visual-baseline/shots/core-themes-theme--bar-chart__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-thumbnail--default__neutral-dark.png b/.github/visual-baseline/shots/core-thumbnail--default__neutral-dark.png
new file mode 100644
index 0000000000..42914eb3c5
Binary files /dev/null and b/.github/visual-baseline/shots/core-thumbnail--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-thumbnail--default__neutral-light.png b/.github/visual-baseline/shots/core-thumbnail--default__neutral-light.png
new file mode 100644
index 0000000000..740c10ee5d
Binary files /dev/null and b/.github/visual-baseline/shots/core-thumbnail--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-timeinput--default__neutral-dark.png b/.github/visual-baseline/shots/core-timeinput--default__neutral-dark.png
new file mode 100644
index 0000000000..7817ecb044
Binary files /dev/null and b/.github/visual-baseline/shots/core-timeinput--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-timeinput--default__neutral-light.png b/.github/visual-baseline/shots/core-timeinput--default__neutral-light.png
new file mode 100644
index 0000000000..075b1645d1
Binary files /dev/null and b/.github/visual-baseline/shots/core-timeinput--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-timer--default__neutral-dark.png b/.github/visual-baseline/shots/core-timer--default__neutral-dark.png
new file mode 100644
index 0000000000..3516d6ef4e
Binary files /dev/null and b/.github/visual-baseline/shots/core-timer--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-timer--default__neutral-light.png b/.github/visual-baseline/shots/core-timer--default__neutral-light.png
new file mode 100644
index 0000000000..e1c1f8262c
Binary files /dev/null and b/.github/visual-baseline/shots/core-timer--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-timer--default__probe-dark.png b/.github/visual-baseline/shots/core-timer--default__probe-dark.png
new file mode 100644
index 0000000000..ff0ea598ff
Binary files /dev/null and b/.github/visual-baseline/shots/core-timer--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-timer--default__probe-light.png b/.github/visual-baseline/shots/core-timer--default__probe-light.png
new file mode 100644
index 0000000000..21040f1479
Binary files /dev/null and b/.github/visual-baseline/shots/core-timer--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-timestamp--default__neutral-dark.png b/.github/visual-baseline/shots/core-timestamp--default__neutral-dark.png
new file mode 100644
index 0000000000..77b4b7d1b7
Binary files /dev/null and b/.github/visual-baseline/shots/core-timestamp--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-timestamp--default__neutral-light.png b/.github/visual-baseline/shots/core-timestamp--default__neutral-light.png
new file mode 100644
index 0000000000..fa6acdefde
Binary files /dev/null and b/.github/visual-baseline/shots/core-timestamp--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-toast--default__neutral-dark.png b/.github/visual-baseline/shots/core-toast--default__neutral-dark.png
new file mode 100644
index 0000000000..4c57b8bd40
Binary files /dev/null and b/.github/visual-baseline/shots/core-toast--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-toast--default__neutral-light.png b/.github/visual-baseline/shots/core-toast--default__neutral-light.png
new file mode 100644
index 0000000000..e1d84ae159
Binary files /dev/null and b/.github/visual-baseline/shots/core-toast--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-togglebutton--group-single__probe-dark.png b/.github/visual-baseline/shots/core-togglebutton--group-single__probe-dark.png
new file mode 100644
index 0000000000..1d4fd35f47
Binary files /dev/null and b/.github/visual-baseline/shots/core-togglebutton--group-single__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-togglebutton--group-single__probe-light.png b/.github/visual-baseline/shots/core-togglebutton--group-single__probe-light.png
new file mode 100644
index 0000000000..61839cacf6
Binary files /dev/null and b/.github/visual-baseline/shots/core-togglebutton--group-single__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-togglebutton--standalone__neutral-dark.png b/.github/visual-baseline/shots/core-togglebutton--standalone__neutral-dark.png
new file mode 100644
index 0000000000..bd00fd5984
Binary files /dev/null and b/.github/visual-baseline/shots/core-togglebutton--standalone__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-togglebutton--standalone__neutral-light.png b/.github/visual-baseline/shots/core-togglebutton--standalone__neutral-light.png
new file mode 100644
index 0000000000..5acccfcbac
Binary files /dev/null and b/.github/visual-baseline/shots/core-togglebutton--standalone__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-token--default__neutral-dark.png b/.github/visual-baseline/shots/core-token--default__neutral-dark.png
new file mode 100644
index 0000000000..6330587e0b
Binary files /dev/null and b/.github/visual-baseline/shots/core-token--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-token--default__neutral-light.png b/.github/visual-baseline/shots/core-token--default__neutral-light.png
new file mode 100644
index 0000000000..a0a9fa59c3
Binary files /dev/null and b/.github/visual-baseline/shots/core-token--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tokenizer--default__neutral-dark.png b/.github/visual-baseline/shots/core-tokenizer--default__neutral-dark.png
new file mode 100644
index 0000000000..e43ea5db69
Binary files /dev/null and b/.github/visual-baseline/shots/core-tokenizer--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tokenizer--default__neutral-light.png b/.github/visual-baseline/shots/core-tokenizer--default__neutral-light.png
new file mode 100644
index 0000000000..a69868b9ff
Binary files /dev/null and b/.github/visual-baseline/shots/core-tokenizer--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-toolbar--default__neutral-dark.png b/.github/visual-baseline/shots/core-toolbar--default__neutral-dark.png
new file mode 100644
index 0000000000..2190597c84
Binary files /dev/null and b/.github/visual-baseline/shots/core-toolbar--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-toolbar--default__neutral-light.png b/.github/visual-baseline/shots/core-toolbar--default__neutral-light.png
new file mode 100644
index 0000000000..836f154986
Binary files /dev/null and b/.github/visual-baseline/shots/core-toolbar--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-tooltip--default__neutral-dark.png b/.github/visual-baseline/shots/core-tooltip--default__neutral-dark.png
new file mode 100644
index 0000000000..9dd33a3c56
Binary files /dev/null and b/.github/visual-baseline/shots/core-tooltip--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-tooltip--default__neutral-light.png b/.github/visual-baseline/shots/core-tooltip--default__neutral-light.png
new file mode 100644
index 0000000000..c1b694c9fd
Binary files /dev/null and b/.github/visual-baseline/shots/core-tooltip--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-topnav--default__neutral-dark.png b/.github/visual-baseline/shots/core-topnav--default__neutral-dark.png
new file mode 100644
index 0000000000..52758a2d17
Binary files /dev/null and b/.github/visual-baseline/shots/core-topnav--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-topnav--default__neutral-light.png b/.github/visual-baseline/shots/core-topnav--default__neutral-light.png
new file mode 100644
index 0000000000..04f34b68cd
Binary files /dev/null and b/.github/visual-baseline/shots/core-topnav--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-topnavmenu--default__probe-dark.png b/.github/visual-baseline/shots/core-topnavmenu--default__probe-dark.png
new file mode 100644
index 0000000000..81db35240b
Binary files /dev/null and b/.github/visual-baseline/shots/core-topnavmenu--default__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-topnavmenu--default__probe-light.png b/.github/visual-baseline/shots/core-topnavmenu--default__probe-light.png
new file mode 100644
index 0000000000..c91c0f0e12
Binary files /dev/null and b/.github/visual-baseline/shots/core-topnavmenu--default__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-topnavmenu--mega-menu__probe-dark.png b/.github/visual-baseline/shots/core-topnavmenu--mega-menu__probe-dark.png
new file mode 100644
index 0000000000..21e482a235
Binary files /dev/null and b/.github/visual-baseline/shots/core-topnavmenu--mega-menu__probe-dark.png differ
diff --git a/.github/visual-baseline/shots/core-topnavmenu--mega-menu__probe-light.png b/.github/visual-baseline/shots/core-topnavmenu--mega-menu__probe-light.png
new file mode 100644
index 0000000000..91aa708db3
Binary files /dev/null and b/.github/visual-baseline/shots/core-topnavmenu--mega-menu__probe-light.png differ
diff --git a/.github/visual-baseline/shots/core-treelist--basic__neutral-dark.png b/.github/visual-baseline/shots/core-treelist--basic__neutral-dark.png
new file mode 100644
index 0000000000..fdeb43313b
Binary files /dev/null and b/.github/visual-baseline/shots/core-treelist--basic__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-treelist--basic__neutral-light.png b/.github/visual-baseline/shots/core-treelist--basic__neutral-light.png
new file mode 100644
index 0000000000..5a2dfab1f6
Binary files /dev/null and b/.github/visual-baseline/shots/core-treelist--basic__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-typeahead--default__neutral-dark.png b/.github/visual-baseline/shots/core-typeahead--default__neutral-dark.png
new file mode 100644
index 0000000000..36874a8270
Binary files /dev/null and b/.github/visual-baseline/shots/core-typeahead--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-typeahead--default__neutral-light.png b/.github/visual-baseline/shots/core-typeahead--default__neutral-light.png
new file mode 100644
index 0000000000..9126edc06e
Binary files /dev/null and b/.github/visual-baseline/shots/core-typeahead--default__neutral-light.png differ
diff --git a/.github/visual-baseline/shots/core-visuallyhidden--default__neutral-dark.png b/.github/visual-baseline/shots/core-visuallyhidden--default__neutral-dark.png
new file mode 100644
index 0000000000..092010245d
Binary files /dev/null and b/.github/visual-baseline/shots/core-visuallyhidden--default__neutral-dark.png differ
diff --git a/.github/visual-baseline/shots/core-visuallyhidden--default__neutral-light.png b/.github/visual-baseline/shots/core-visuallyhidden--default__neutral-light.png
new file mode 100644
index 0000000000..bcde76c668
Binary files /dev/null and b/.github/visual-baseline/shots/core-visuallyhidden--default__neutral-light.png differ
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 603711a0a0..4daa48ee0b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,33 +11,16 @@ on:
pull_request:
branches: ['main']
merge_group:
- # Explicit release checks and baseline maintenance share the canonical owners.
- # Only a reviewed promotion may change the baseline.
+ # Explicit release checks and baseline capture share the canonical owners.
+ # Reviewed captures are committed through a normal pull request.
workflow_dispatch:
inputs:
operation:
- description: 'Check exact main for release, capture candidates, or promote a reviewed capture'
+ description: 'Check exact main for release or capture a baseline candidate'
type: choice
- options: [capture, promote, release-check]
+ options: [capture, release-check]
default: capture
required: true
- run_id:
- description: 'For promote: the reviewed CI maintenance capture run id'
- required: false
- run_attempt:
- description: 'For promote: the reviewed capture attempt'
- required: false
- keys:
- description: 'For promote: comma-separated shot keys, or "all"'
- required: false
- reason:
- description: 'For promote: why the reviewed rendering is correct'
- required: false
- prune:
- description: 'Also drop reviewed baseline keys absent from the canonical plan'
- type: boolean
- default: true
- required: false
permissions: {}
@@ -47,32 +30,16 @@ concurrency:
jobs:
maintenance-request:
- if: github.event_name == 'workflow_dispatch' && inputs.operation != 'release-check'
+ if: github.event_name == 'workflow_dispatch' && inputs.operation == 'capture'
runs-on: ubuntu-slim
steps:
- name: Require explicit main-branch maintenance
- env:
- OPERATION: ${{ inputs.operation }}
- RUN_ID: ${{ inputs.run_id }}
- RUN_ATTEMPT: ${{ inputs.run_attempt }}
- KEYS: ${{ inputs.keys }}
- REASON: ${{ inputs.reason }}
run: |
set -eu
if [ "$GITHUB_REF" != 'refs/heads/main' ]; then
echo 'Baseline maintenance must be dispatched from main.'
exit 1
fi
- case "$OPERATION" in
- capture) ;;
- promote)
- test -n "$RUN_ID"
- test -n "$RUN_ATTEMPT"
- test -n "$KEYS"
- test -n "$REASON"
- ;;
- *) echo 'Choose capture or promote.'; exit 1 ;;
- esac
# Detect lightweight changes. Missing merge-base data fails closed.
check-scope:
@@ -854,9 +821,8 @@ jobs:
esac
# CI keeps Storybook's static artifact for visual, accessibility, and RTL
- # checks. The Vercel Preview deployment independently hosts human Storybook;
- # the trusted deploy-preview.yml workflow still publishes only Sandbox to Pages
- # after CI for fork and same-repository PRs without running PR code.
+ # checks. The exact-head Vercel deployment independently hosts both human
+ # Storybook and Sandbox previews; no branch-backed preview is published.
# Accessibility audit
# Skipped when no components changed. Depends only on build-storybook, so it
@@ -1281,10 +1247,10 @@ jobs:
- name: Verify guest fixture contrast
run: pnpm -F @astryxdesign/vibe-tests fixtures:contrast
- # Stable-package visual regression and explicit baseline maintenance share
- # this owner. Focused PRs compare existing canonical frames; broad PRs use the
- # full canonical plan. Maintenance captures candidates on the same runner,
- # but only a separate explicit promotion may publish them as the baseline.
+ # Stable-package visual regression and explicit baseline capture share this
+ # owner. Focused PRs compare the checked-in baseline; broad PRs use the full
+ # canonical plan. Maintenance captures candidates on the same runner, and a
+ # normal reviewed pull request updates the versioned baseline.
# Audit and interaction fixtures stay with their existing browser checks.
pr-visual:
name: Stable visual regression
@@ -1346,17 +1312,8 @@ jobs:
if: github.event_name == 'workflow_dispatch' && inputs.operation == 'capture'
run: pnpm build && pnpm -F @astryxdesign/storybook build
- - name: Fetch visual baseline from gh-pages
- run: |
- set -eu
- rm -rf /tmp/gh-pages
- git clone --depth=1 --filter=blob:none --sparse --single-branch --branch gh-pages \
- "https://github.com/${GITHUB_REPOSITORY}.git" /tmp/gh-pages
- git -C /tmp/gh-pages sparse-checkout set visual-gate/baseline
- mkdir -p .visual-baseline
- if [ -d /tmp/gh-pages/visual-gate/baseline ]; then
- cp -r /tmp/gh-pages/visual-gate/baseline/. .visual-baseline/
- fi
+ # The reviewed baseline is versioned with the code so CI never depends on
+ # mutable website storage. Baseline refreshes remain separate reviewable PRs.
- name: Run the visual gate for the touched components
id: visual
@@ -1392,7 +1349,7 @@ jobs:
set +e
node .github/scripts/visual-gate/gate.mjs "$COMMAND" \
--storybook-dir apps/storybook/dist \
- --baseline .visual-baseline \
+ --baseline .github/visual-baseline \
--out .visual-run \
"${SCOPE_ARGS[@]}" \
--summary-output visual-summary.md
@@ -1408,7 +1365,7 @@ jobs:
set +e
node .github/scripts/visual-gate/gate.mjs release \
--storybook-dir apps/storybook/dist \
- --baseline .visual-baseline \
+ --baseline .github/visual-baseline \
--out .visual-run \
--summary-output visual-summary.md
code=$?
@@ -1432,7 +1389,7 @@ jobs:
.visual-run/manifest.json
.visual-run/shots/
.visual-run/report/
- retention-days: 7
+ retention-days: 30
if-no-files-found: ignore
- name: Run full release visual check
@@ -1442,7 +1399,7 @@ jobs:
set +e
node .github/scripts/visual-gate/gate.mjs release \
--storybook-dir apps/storybook/dist \
- --baseline .visual-baseline \
+ --baseline .github/visual-baseline \
--out .visual-run \
--summary-output visual-summary.md
code=$?
@@ -1477,7 +1434,7 @@ jobs:
run: |
node .github/scripts/visual-gate/gate.mjs release \
--storybook-dir apps/storybook/dist \
- --baseline .visual-baseline \
+ --baseline .github/visual-baseline \
--out .visual-run \
--summary-output visual-summary.md
@@ -1517,105 +1474,6 @@ jobs:
retention-days: 14
if-no-files-found: error
- # Publication only: no browser, comparison, automatic acceptance, or release
- # status. The explicitly reviewed CI capture supplies the baseline bytes.
- baseline-publication:
- needs: maintenance-request
- if: github.event_name == 'workflow_dispatch' && inputs.operation == 'promote'
- runs-on: ubuntu-slim
- timeout-minutes: 90
- permissions:
- actions: read
- contents: write
- steps:
- - name: Checkout trusted maintenance implementation
- uses: actions/checkout@v7
-
- - name: Setup Node and pnpm
- uses: ./.github/actions/setup
-
- - name: Resolve the reviewed canonical capture
- id: source
- uses: actions/github-script@v9
- env:
- SOURCE_RUN_ID: ${{ inputs.run_id }}
- SOURCE_RUN_ATTEMPT: ${{ inputs.run_attempt }}
- with:
- retries: 3
- script: |
- const {pathToFileURL} = require('node:url');
- const {resolveVisualMaintenanceSource} = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/visual-maintenance-source.mjs`).href
- );
- const source = await resolveVisualMaintenanceSource({
- github, ...context.repo,
- runId: process.env.SOURCE_RUN_ID,
- runAttempt: process.env.SOURCE_RUN_ATTEMPT,
- });
- core.setOutput('artifact_id', String(source.artifactId));
- core.setOutput('run_id', String(source.runId));
- core.setOutput('run_attempt', String(source.runAttempt));
- core.setOutput('sha', source.sha);
-
- - name: Queue baseline publication
- id: queue
- env:
- GH_TOKEN: ${{ github.token }}
- run: node .github/scripts/gh-pages-publisher.mjs enqueue --scope visual-gate/baseline
-
- - name: Download the reviewed capture
- uses: actions/download-artifact@v8
- with:
- artifact-ids: ${{ steps.source.outputs.artifact_id }}
- run-id: ${{ steps.source.outputs.run_id }}
- github-token: ${{ github.token }}
- path: .visual-run
- merge-multiple: true
-
- - name: Verify downloaded capture identity
- env:
- CAPTURE_SHA: ${{ steps.source.outputs.sha }}
- CAPTURE_RUN_ID: ${{ steps.source.outputs.run_id }}
- CAPTURE_RUN_ATTEMPT: ${{ steps.source.outputs.run_attempt }}
- run: |
- node --input-type=module - <<'NODE'
- import fs from 'node:fs';
- import {validateVisualMaintenanceCapture} from './.github/scripts/visual-maintenance-source.mjs';
- validateVisualMaintenanceCapture({
- manifest: JSON.parse(fs.readFileSync('.visual-run/manifest.json', 'utf8')),
- verdict: JSON.parse(fs.readFileSync('.visual-run/verdict.json', 'utf8')),
- sha: process.env.CAPTURE_SHA,
- runId: process.env.CAPTURE_RUN_ID,
- runAttempt: process.env.CAPTURE_RUN_ATTEMPT,
- });
- NODE
-
- - name: Wait for the baseline publication turn
- env:
- GH_TOKEN: ${{ github.token }}
- run: node .github/scripts/gh-pages-publisher.mjs wait --scope visual-gate/baseline
-
- - name: Promote the explicitly reviewed baseline
- env:
- KEYS: ${{ inputs.keys }}
- REASON: ${{ inputs.reason }}
- PROMOTER: ${{ github.actor }}
- PRUNE: ${{ inputs.prune && 'true' || 'false' }}
- GH_TOKEN: ${{ github.token }}
- run: >
- node .github/scripts/gh-pages-publisher.mjs visual-baseline-manual
- --capture .visual-run
- --keys "$KEYS"
- --reason "$REASON"
- --actor "$PROMOTER"
- --prune "$PRUNE"
-
- - name: Release the baseline publication turn
- if: always() && steps.queue.outcome == 'success'
- env:
- GH_TOKEN: ${{ github.token }}
- run: node .github/scripts/gh-pages-publisher.mjs release --scope visual-gate/baseline
-
# RTL semantic audit. Sibling to pr-a11y: same build-storybook artifact, same
# analysis.json scoping, so ordinary PRs only pay for the components they
# touched. A harness-only PR runs the fixed Chart/ChartLegend smoke scope so
diff --git a/.github/workflows/cleanup-previews.yml b/.github/workflows/cleanup-previews.yml
deleted file mode 100644
index a9f1683225..0000000000
--- a/.github/workflows/cleanup-previews.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-# Cleanup Preview Deployments — removes stale /pr/<number>/ previews and other
-# leftovers from gh-pages.
-#
-# Runs daily (and on manual dispatch), reconciling pr/ against the current
-# open-PR list. Preview writes do not wait for this deferred garbage collection.
-# Fork PRs require a trusted base-repository token to mutate gh-pages; this
-# workflow never executes PR code.
-#
-# Safety: this NEVER checks out or runs PR-controlled code. It only checks out
-# gh-pages and deletes stale paths. Do not add checkout of the PR head or
-# execution of PR code here.
-
-name: Cleanup Preview Deployments
-
-on:
- schedule:
- - cron: '0 6 * * *' # Daily 6am UTC
- workflow_dispatch:
- inputs:
- dry_run:
- description: 'Dry run - log but do not delete'
- required: false
- default: false
- type: boolean
-
-permissions: {}
-
-# Serialize cleanup runs against each other so simultaneous runs don't race
-# their gh-pages pushes. Deliberately NOT the "pages-deploy" group: joining it
-# could cancel a PENDING main deploy (GitHub keeps only the newest pending run
-# per group), leaving the site stale. Races against deploy.yml are handled by
-# the push retry below instead.
-concurrency:
- group: 'cleanup-previews'
- cancel-in-progress: false
-
-jobs:
- cleanup:
- runs-on: ubuntu-slim
- permissions:
- actions: read
- contents: write
- pull-requests: read
- steps:
- - name: Checkout publisher
- uses: actions/checkout@v7
-
- - name: Cleanup stale deployments
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- DRY_RUN: ${{ inputs.dry_run || 'false' }}
- run: >
- node .github/scripts/gh-pages-publisher.mjs cleanup-previews
- --dry-run "$DRY_RUN"
diff --git a/.github/workflows/compact-gh-pages.yml b/.github/workflows/compact-gh-pages.yml
deleted file mode 100644
index 3d374e0114..0000000000
--- a/.github/workflows/compact-gh-pages.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-name: Compact GitHub Pages History
-
-on:
- schedule:
- - cron: '17 9 * * 1' # Mondays at 09:17 UTC
- workflow_dispatch:
-
-permissions: {}
-
-concurrency:
- group: 'pages-deploy'
- cancel-in-progress: false
-
-jobs:
- compact:
- runs-on: ubuntu-slim
- permissions:
- actions: read
- contents: write
- steps:
- - name: Checkout maintenance scripts
- uses: actions/checkout@v7
- with:
- ref: main
-
- - name: Compact gh-pages history
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: node .github/scripts/gh-pages-publisher.mjs compact
diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml
deleted file mode 100644
index c006c1d366..0000000000
--- a/.github/workflows/deploy-preview.yml
+++ /dev/null
@@ -1,262 +0,0 @@
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-# Trusted Sandbox publisher used by pr-comment.yml after an exact PR CI run
-# completes. Storybook is hosted by the exact-head Vercel docsite preview.
-# The caller resolves the source identity; this workflow checks it again,
-# downloads only the matching Sandbox artifact, and records its Pages proof.
-
-name: Deploy PR Preview
-
-on:
- workflow_call:
- inputs:
- pr_number:
- required: true
- type: string
- head_sha:
- required: true
- type: string
- head_repository:
- required: true
- type: string
- head_repository_id:
- required: true
- type: string
- head_ref:
- required: true
- type: string
- base_repository:
- required: true
- type: string
- source_run_id:
- required: true
- type: string
- source_run_attempt:
- required: true
- type: string
- source_conclusion:
- required: true
- type: string
-
-permissions: {}
-
-jobs:
- deploy-preview:
- runs-on: ubuntu-slim
- permissions:
- actions: read
- contents: write
- pull-requests: read
- steps:
- - name: Checkout trusted publisher
- uses: actions/checkout@v7
- with:
- ref: main
-
- - name: Confirm trusted source and preview identity
- id: identity
- uses: actions/github-script@v9
- env:
- PR_NUMBER: ${{ inputs.pr_number }}
- HEAD_SHA: ${{ inputs.head_sha }}
- HEAD_REPOSITORY: ${{ inputs.head_repository }}
- HEAD_REPOSITORY_ID: ${{ inputs.head_repository_id }}
- HEAD_REF: ${{ inputs.head_ref }}
- BASE_REPOSITORY: ${{ inputs.base_repository }}
- SOURCE_RUN_ID: ${{ inputs.source_run_id }}
- SOURCE_RUN_ATTEMPT: ${{ inputs.source_run_attempt }}
- SOURCE_CONCLUSION: ${{ inputs.source_conclusion }}
- with:
- retries: 3
- script: |
- const {pathToFileURL} = require('node:url');
- const preview = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/lib/pr-preview.mjs`).href
- );
- const expected = {
- prNumber: Number(process.env.PR_NUMBER),
- headSha: process.env.HEAD_SHA,
- headRepository: process.env.HEAD_REPOSITORY,
- headRepositoryId: process.env.HEAD_REPOSITORY_ID,
- headRef: process.env.HEAD_REF,
- baseRepository: process.env.BASE_REPOSITORY,
- sourceRunId: Number(process.env.SOURCE_RUN_ID),
- sourceRunAttempt: Number(process.env.SOURCE_RUN_ATTEMPT),
- sourceConclusion: process.env.SOURCE_CONCLUSION,
- };
- const identity = await preview.confirmSourceRunIdentity({
- github,
- ...context.repo,
- expected,
- });
- const reason =
- identity.sourceConclusion === 'success'
- ? identity.draft ? 'draft-pull-request' : 'publication-pending'
- : `source-${identity.sourceConclusion || 'unknown'}`;
- preview.writeDeploymentResult(
- 'preview-deployment.json',
- preview.createUnavailableDeploymentResult(identity, reason),
- );
- core.setOutput('valid', 'true');
- core.setOutput(
- 'eligible',
- String(identity.sourceConclusion === 'success' && !identity.draft),
- );
- core.setOutput('short_hash', identity.headSha.slice(0, 7));
-
- - name: Download PR metadata from the exact CI run
- if: steps.identity.outputs.eligible == 'true'
- uses: actions/download-artifact@v8
- with:
- name: pr-analysis
- path: pr-analysis
- run-id: ${{ inputs.source_run_id }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
- continue-on-error: true
-
- - name: Cross-check artifact identity
- id: artifact
- if: steps.identity.outputs.eligible == 'true'
- uses: actions/github-script@v9
- env:
- PR_NUMBER: ${{ inputs.pr_number }}
- HEAD_SHA: ${{ inputs.head_sha }}
- HEAD_REPOSITORY: ${{ inputs.head_repository }}
- BASE_REPOSITORY: ${{ inputs.base_repository }}
- SOURCE_RUN_ID: ${{ inputs.source_run_id }}
- SOURCE_RUN_ATTEMPT: ${{ inputs.source_run_attempt }}
- with:
- script: |
- const fs = require('node:fs');
- const {pathToFileURL} = require('node:url');
- if (!fs.existsSync('pr-analysis/pr-meta.json')) {
- core.warning('No current pr-meta.json; preview targets are unavailable.');
- core.setOutput('ready', 'false');
- return;
- }
- const preview = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/lib/pr-preview.mjs`).href
- );
- try {
- preview.validateAnalysisMetadata(
- JSON.parse(fs.readFileSync('pr-analysis/pr-meta.json', 'utf8')),
- {
- prNumber: Number(process.env.PR_NUMBER),
- headSha: process.env.HEAD_SHA,
- headRepository: process.env.HEAD_REPOSITORY,
- baseRepository: process.env.BASE_REPOSITORY,
- sourceRunId: Number(process.env.SOURCE_RUN_ID),
- sourceRunAttempt: Number(process.env.SOURCE_RUN_ATTEMPT),
- },
- );
- core.setOutput('ready', 'true');
- } catch (error) {
- core.warning(`Ignoring invalid preview metadata: ${error.message}`);
- core.setOutput('ready', 'false');
- }
-
- - name: Download Sandbox artifact
- if: steps.artifact.outputs.ready == 'true'
- uses: actions/download-artifact@v8
- with:
- name: sandbox-${{ steps.identity.outputs.short_hash }}
- path: sandbox-dist
- run-id: ${{ inputs.source_run_id }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
- continue-on-error: true
-
- - name: Detect Sandbox readiness
- id: targets
- if: always() && steps.identity.outputs.valid == 'true'
- run: |
- if [ "${{ steps.artifact.outputs.ready }}" = 'true' ] && [ -f sandbox-dist/index.html ]; then
- echo "sandbox=true" >> "$GITHUB_OUTPUT"
- else
- echo "sandbox=false" >> "$GITHUB_OUTPUT"
- fi
-
- - name: Confirm preview target immediately before publication
- id: final
- if: always() && steps.identity.outputs.valid == 'true'
- uses: actions/github-script@v9
- env:
- PR_NUMBER: ${{ inputs.pr_number }}
- HEAD_SHA: ${{ inputs.head_sha }}
- HEAD_REPOSITORY: ${{ inputs.head_repository }}
- HEAD_REPOSITORY_ID: ${{ inputs.head_repository_id }}
- HEAD_REF: ${{ inputs.head_ref }}
- BASE_REPOSITORY: ${{ inputs.base_repository }}
- SOURCE_RUN_ID: ${{ inputs.source_run_id }}
- SOURCE_RUN_ATTEMPT: ${{ inputs.source_run_attempt }}
- SOURCE_CONCLUSION: ${{ inputs.source_conclusion }}
- SANDBOX_CANDIDATE: ${{ steps.targets.outputs.sandbox }}
- with:
- retries: 3
- script: |
- const {pathToFileURL} = require('node:url');
- const preview = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/lib/pr-preview.mjs`).href
- );
- const identity = await preview.confirmSourceRunIdentity({
- github,
- ...context.repo,
- expected: {
- prNumber: Number(process.env.PR_NUMBER),
- headSha: process.env.HEAD_SHA,
- headRepository: process.env.HEAD_REPOSITORY,
- headRepositoryId: process.env.HEAD_REPOSITORY_ID,
- headRef: process.env.HEAD_REF,
- baseRepository: process.env.BASE_REPOSITORY,
- sourceRunId: Number(process.env.SOURCE_RUN_ID),
- sourceRunAttempt: Number(process.env.SOURCE_RUN_ATTEMPT),
- sourceConclusion: process.env.SOURCE_CONCLUSION,
- },
- });
- const mayPublish = identity.sourceConclusion === 'success' && !identity.draft;
- core.setOutput('ready', 'true');
- core.setOutput(
- 'sandbox',
- String(mayPublish && process.env.SANDBOX_CANDIDATE === 'true'),
- );
-
- - name: Publish trusted preview result
- if: always() && steps.final.outputs.ready == 'true'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PR_NUMBER: ${{ inputs.pr_number }}
- HEAD_SHA: ${{ inputs.head_sha }}
- HEAD_REPOSITORY: ${{ inputs.head_repository }}
- HEAD_REPOSITORY_ID: ${{ inputs.head_repository_id }}
- HEAD_REF: ${{ inputs.head_ref }}
- BASE_REPOSITORY: ${{ inputs.base_repository }}
- SOURCE_RUN_ID: ${{ inputs.source_run_id }}
- SOURCE_RUN_ATTEMPT: ${{ inputs.source_run_attempt }}
- SOURCE_CONCLUSION: ${{ inputs.source_conclusion }}
- SANDBOX_AVAILABLE: ${{ steps.final.outputs.sandbox }}
- run: |
- args=(
- pr-preview
- --pr "$PR_NUMBER"
- --head "$HEAD_SHA"
- --head-repo "$HEAD_REPOSITORY"
- --head-repo-id "$HEAD_REPOSITORY_ID"
- --head-ref "$HEAD_REF"
- --base-repo "$BASE_REPOSITORY"
- --source-run-id "$SOURCE_RUN_ID"
- --source-run-attempt "$SOURCE_RUN_ATTEMPT"
- --source-conclusion "$SOURCE_CONCLUSION"
- --result preview-deployment.json
- )
- if [ "$SANDBOX_AVAILABLE" = 'true' ]; then
- args+=(--sandbox sandbox-dist)
- fi
- node .github/scripts/gh-pages-publisher.mjs "${args[@]}"
-
- - name: Upload trusted preview result
- if: always() && hashFiles('preview-deployment.json') != ''
- uses: actions/upload-artifact@v7
- with:
- name: preview-deployment-${{ inputs.source_run_id }}-${{ inputs.source_run_attempt }}
- path: preview-deployment.json
- if-no-files-found: error
- retention-days: 1
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index cf3fa3ec74..d284287fd0 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,47 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
-# Deploy Storybook + Sandbox to GitHub Pages.
-# This workflow is WEBSITE-ONLY — it does not publish to npm. ALL npm publishing
-# (both stable `latest` and `canary` prereleases) lives in release.yml, so a
-# single npm trusted-publisher config (release.yml) covers everything.
-# Only runs on push to main.
-#
-# Shape: sync-exports, test, and build run in PARALLEL; deploy waits for test
-# and build, then only assembles the built artifacts and pushes — it builds
-# nothing itself. (The old shape was sequential — test, then a deploy job that
-# rebuilt everything from scratch — which put ~13min between a merge and the
-# site going live. Building once, in parallel with test, cuts that roughly in
-# half while test still gates the actual push.)
-#
-# Deployment layout on gh-pages:
-# /storybook/ — stable Storybook (always latest main)
-# /sandbox/ — stable Sandbox (always latest main)
-# /pr/<number>/ — PR preview dirs (managed by ci.yml, preserved here)
-# /reports/ — vibe test reports (preserved)
-# /assets/ — landing page CSS
-# /index.html — landing page
-# /latest — short hash of latest deploy
-#
-# Publish model — cheap clean-slate via the shared gh-pages publisher:
-# Every deploy replaces ONLY the regenerated stable paths (storybook/, sandbox/,
-# assets/, index.html, latest, .nojekyll) and carries /pr/ and /reports/ forward
-# untouched, then pushes the result as a single ORPHAN commit (no history). This
-# `.github/scripts/gh-pages-publisher.mjs stable-site` keeps three properties at once:
-# A. Deploy time is O(1) in preview count. Earlier this job did
-# `git clone` of all of gh-pages + `cp -r` the whole /pr/ tree forward on
-# every push; once previews grew to ~1GB / tens of thousands of files that
-# copy blew the 15-min job timeout and EVERY main deploy was cancelled
-# (see #4716). We now fetch NO preview blobs — a --filter=blob:none +
-# sparse checkout materializes only the stable paths; /pr/ stays in the
-# index and is reused by SHA.
-# B. No stale-asset accumulation. The stable paths are removed and rewritten
-# each deploy, so superseded content-hashed assets don't pile up (the bug
-# that `keep_files:false` originally fixed in #916).
-# C. No gh-pages history bloat. The single-orphan-commit push is exactly what
-# `force_orphan:true` gave us (#2239 / #2238) — it just no longer requires
-# a full local copy of the tree to produce it. compact-gh-pages.yml remains
-# the weekly backstop.
-name: Deploy
+# Validate every push to main. Stable docs, Storybook, and Sandbox deploy through
+# the Vercel project; this workflow preserves the post-merge test gates only.
+name: Main
on:
push:
@@ -51,7 +12,7 @@ on:
permissions: {}
concurrency:
- group: 'pages-deploy'
+ group: 'main-validation'
cancel-in-progress: false
jobs:
@@ -169,9 +130,7 @@ jobs:
- name: Typecheck accessibility spec-test contracts
run: pnpm -F @astryxdesign/a11y-spec typecheck
- # Historical job name, kept because `deploy` gates the publish on
- # `needs.test.result == 'success'`. Every lane must pass for that to hold, so
- # this asserts all three rather than merely depending on them.
+ # Stable join for the three post-merge validation lanes.
test:
needs: [test-ui, test-node, typecheck]
if: ${{ always() && !cancelled() }}
@@ -186,227 +145,3 @@ jobs:
[ "${{ needs.test-ui.result }}" = "success" ] || exit 1
[ "${{ needs.test-node.result }}" = "success" ] || exit 1
[ "${{ needs.typecheck.result }}" = "success" ] || exit 1
-
- # Build everything the site needs, in parallel with `test`. The results are
- # handed to `deploy` as artifacts, so a broken test run never publishes —
- # test still gates the push, it just no longer serializes the build.
- build:
- runs-on: 2-core-ubuntu-arm
- permissions:
- contents: read
- steps:
- - name: Checkout
- uses: actions/checkout@v7
- with:
- ref: main
-
- - name: Setup Node and pnpm
- uses: ./.github/actions/setup
-
- - name: Build core package
- run: pnpm build
-
- - name: Build Storybook
- run: pnpm -F @astryxdesign/storybook build
-
- - name: Cache Next.js build
- uses: actions/cache@v6
- with:
- path: apps/sandbox/.next/cache
- # IMPORTANT: no restore-keys fallback. The key is pinned to the
- # @astryxdesign/core dist hash because the Next.js module cache bakes in the
- # resolved export graph of @astryxdesign/core. A loose restore-keys fallback
- # (e.g. "nextjs-sandbox-<lock>-") would let a build restore a cache
- # produced against a DIFFERENT export shape. That is exactly what
- # broke the post-merge deploy of the XDS un-prefix migration (#2941):
- # the migration changed core's exports (bare names, new subpaths), the
- # exact key missed, and restore-keys fell back to a pre-migration
- # cache whose compiled modules still expected XDS*-prefixed exports —
- # producing "'Text' is not exported from '@astryxdesign/core/Text'" and
- # "Element type is invalid ... undefined" prerender failures.
- # A changed key now yields a COLD cache (safe rebuild) instead of a
- # poisoned warm one.
- #
- # PR builds (ci.yml) deliberately use a different, PR-scoped key:
- # they build with a per-PR basePath (/<repo>/pr/<n>/sandbox), and a
- # basePath change makes Next.js invalidate the webpack cache — so a
- # cache shared with this main build would never actually warm a PR.
- key: nextjs-sandbox-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('packages/core/dist/**') }}
-
- - name: Build Sandbox
- run: pnpm -F @astryxdesign/sandbox build
- env:
- # GitHub Pages serves this project at <owner>.github.io/<repo>/, so the
- # sandbox must be built with the repo name as a base path prefix —
- # otherwise its root-absolute asset URLs (/sandbox/_next/...) drop the
- # /<repo> segment and 404. Derived from the repo name so it survives renames.
- SANDBOX_BASE_PATH: /${{ github.event.repository.name }}/sandbox
- SANDBOX_TEMPLATE_ASSETS_BASE_PATH: /${{ github.event.repository.name }}/sandbox/template-assets
- NODE_OPTIONS: '--max-old-space-size=4096'
-
- # The landing page (assembled in `deploy`) links these straight out of
- # the built tree, which deploy no longer has — stage them as an artifact.
- - name: Stage landing page assets
- run: |
- mkdir -p site-assets
- cp packages/core/dist/astryx.css site-assets/astryx.css
- cp packages/core/src/reset.css site-assets/reset.css
- cp packages/themes/neutral/dist/theme.css site-assets/theme.css
-
- - name: Upload Storybook artifact
- uses: actions/upload-artifact@v7
- with:
- name: deploy-storybook
- path: apps/storybook/dist/
- retention-days: 1
-
- - name: Upload Sandbox artifact
- uses: actions/upload-artifact@v7
- with:
- name: deploy-sandbox
- path: apps/sandbox/out/
- retention-days: 1
-
- - name: Upload landing assets artifact
- uses: actions/upload-artifact@v7
- with:
- name: deploy-assets
- path: site-assets/
- retention-days: 1
-
- deploy:
- needs: [test, build]
- if: always() && !cancelled() && needs.test.result == 'success' && needs.build.result == 'success'
- runs-on: ubuntu-slim
- permissions:
- actions: read
- contents: write
- steps:
- - name: Checkout publisher
- uses: actions/checkout@v7
-
- - name: Download Storybook artifact
- uses: actions/download-artifact@v8
- with:
- name: deploy-storybook
- path: storybook-dist
-
- - name: Download Sandbox artifact
- uses: actions/download-artifact@v8
- with:
- name: deploy-sandbox
- path: sandbox-dist
-
- - name: Download landing assets artifact
- uses: actions/download-artifact@v8
- with:
- name: deploy-assets
- path: site-assets
-
- - name: Prepare stable site content
- run: |
- SHORT_HASH="${GITHUB_SHA:0:7}"
-
- # Assemble the regenerated stable paths into ./staged — everything the
- # deploy owns EXCEPT /pr/ and /reports/, which live on gh-pages and are
- # carried forward untouched by the Publish step below.
- rm -rf staged
- mkdir -p staged/storybook staged/sandbox staged/assets
- cp -r storybook-dist/* staged/storybook/
- if [ -d "sandbox-dist" ]; then
- cp -r sandbox-dist/* staged/sandbox/
- fi
-
- # Astryx CSS for the landing page, staged by the build job
- cp site-assets/astryx.css staged/assets/astryx.css
- cp site-assets/reset.css staged/assets/reset.css
- cp site-assets/theme.css staged/assets/theme.css
-
- cat > staged/index.html << 'LANDING_EOF'
- <!DOCTYPE html>
- <html lang="en" data-astryx-theme="neutral">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Astryx Design System</title>
- <link rel="stylesheet" href="assets/reset.css">
- <link rel="stylesheet" href="assets/astryx.css">
- <link rel="stylesheet" href="assets/theme.css">
- <style>
- body {
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- background: var(--color-background-body);
- font-family: var(--font-family-body);
- color: var(--color-text-primary);
- }
- .container {
- max-width: 480px;
- width: 100%;
- padding: var(--spacing-6);
- }
- h1 { font-size: var(--text-heading-1-size); font-weight: var(--font-weight-semibold); margin-bottom: var(--spacing-2); }
- p { color: var(--color-text-secondary); margin-bottom: var(--spacing-6); font-size: var(--text-body-size); line-height: 1.5; }
- .links { display: flex; flex-direction: column; gap: var(--spacing-3); }
- a.card {
- display: flex; align-items: center; justify-content: space-between;
- padding: var(--spacing-4);
- background: var(--color-background-card);
- border-radius: var(--radius-element);
- box-shadow: var(--shadow-low);
- text-decoration: none;
- color: var(--color-text-primary);
- transition: box-shadow 0.15s ease;
- }
- a.card:hover { box-shadow: var(--shadow-med); }
- .card-title { font-weight: var(--font-weight-semibold); }
- .card-desc { font-size: var(--text-supporting-size); color: var(--color-text-secondary); margin-top: 2px; }
- .arrow { color: var(--color-text-secondary); font-size: 1.25rem; }
- .hash { font-family: var(--font-family-code); font-size: var(--text-supporting-size); color: var(--color-text-secondary); margin-top: var(--spacing-4); text-align: center; }
- </style>
- </head>
- <body>
- <div class="container">
- <h1>Astryx Design System</h1>
- <p>Component library for building internal tools. Select an environment below.</p>
- <div class="links">
- <a class="card" href="storybook/index.html">
- <div>
- <div class="card-title">📖 Storybook</div>
- <div class="card-desc">Component docs, props, and interactive examples</div>
- </div>
- <span class="arrow">→</span>
- </a>
- <a class="card" href="sandbox/index.html">
- <div>
- <div class="card-title">🏗️ Sandbox</div>
- <div class="card-desc">Full app demo with theme editor</div>
- </div>
- <span class="arrow">→</span>
- </a>
- <a class="card" href="https://github.com/facebook/astryx">
- <div>
- <div class="card-title">💻 GitHub</div>
- <div class="card-desc">Source code, issues, and wiki</div>
- </div>
- <span class="arrow">→</span>
- </a>
- </div>
- <div class="hash">Build: DEPLOY_HASH_PLACEHOLDER</div>
- </div>
- </body>
- </html>
- LANDING_EOF
-
- # Inject the short hash into the landing page
- sed -i "s|DEPLOY_HASH_PLACEHOLDER|${SHORT_HASH}|" staged/index.html
-
- # Write the latest deployed hash (used by PR comment links, etc.)
- echo -n "${SHORT_HASH}" > staged/latest
-
- - name: Publish to gh-pages
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: node .github/scripts/gh-pages-publisher.mjs stable-site --source staged
diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml
index f635d281b8..f34e21fb95 100644
--- a/.github/workflows/pages-deploy.yml
+++ b/.github/workflows/pages-deploy.yml
@@ -1,77 +1,27 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
-# Deploy the latest serialized gh-pages snapshot after a workflow that can write
-# it settles. The legacy branch-source deployment starts once per queue commit
-# and cancels an in-progress deployment whenever a newer commit arrives. Under
-# normal PR traffic that can leave the public site permanently behind even
-# though every publisher succeeded.
-#
-# This workflow deliberately keeps the active deployment running. GitHub may
-# replace an older pending run with a newer one, but the current deployment
-# finishes and the newest queued run then deploys the latest branch snapshot.
-# Until the repository's Pages source is set to GitHub Actions, the source
-# check exits successfully and the deployment job stays skipped.
-
-name: Deploy GitHub Pages
+# Keep the retired GitHub Pages origin as one small, durable compatibility page.
+# Stable docs, Storybook, and Sandbox are built and served by Vercel.
+name: Publish GitHub Pages landing
on:
- workflow_run:
- workflows:
- - 'Deploy'
- - 'PR Comment'
- - 'Re-deploy Preview'
- - 'Cleanup Preview Deployments'
- - 'CI'
- - 'Vibe Test Screenshots'
- - 'Compact GitHub Pages History'
- types: [completed]
+ push:
+ branches: ['main']
+ paths:
+ - '.github/pages/**'
+ - '.github/workflows/pages-deploy.yml'
workflow_dispatch:
permissions: {}
concurrency:
- group: github-pages-deployment
- cancel-in-progress: false
+ group: github-pages-landing
+ cancel-in-progress: true
jobs:
- source:
- # PR CI and early Vercel preview comments do not write Pages bytes. Preserve
- # explicit baseline-maintenance CI dispatches and CI-backed PR Comment runs
- # (which may publish immutable visual evidence).
- if: >-
- github.event_name != 'workflow_run' ||
- (github.event.workflow_run.name == 'CI' &&
- github.event.workflow_run.event == 'workflow_dispatch') ||
- (github.event.workflow_run.name == 'PR Comment' &&
- github.event.workflow_run.event == 'workflow_run') ||
- (github.event.workflow_run.name != 'CI' &&
- github.event.workflow_run.name != 'PR Comment')
- runs-on: ubuntu-slim
- permissions:
- pages: read
- outputs:
- workflow: ${{ steps.source.outputs.workflow }}
- steps:
- - name: Check Pages deployment source
- id: source
- uses: actions/github-script@v9
- with:
- script: |
- const {data} = await github.rest.repos.getPages(context.repo);
- const enabled = data.build_type === 'workflow';
- core.setOutput('workflow', String(enabled));
- if (!enabled) {
- core.notice('GitHub Pages still uses the legacy branch source; switch the source to GitHub Actions, then dispatch this workflow.');
- }
-
deploy:
- needs: source
- if: needs.source.outputs.workflow == 'true'
- # The published branch is several GiB and contains hundreds of thousands of
- # files. ubuntu-slim has a 15-minute hard job limit, which can interrupt the
- # archive created by upload-pages-artifact before it reaches the upload step.
- runs-on: ubuntu-latest
- timeout-minutes: 60
+ if: github.ref == 'refs/heads/main'
+ runs-on: ubuntu-slim
permissions:
contents: read
pages: write
@@ -80,21 +30,20 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- - name: Checkout latest published site
- uses: actions/checkout@v7
- with:
- ref: gh-pages
- fetch-depth: 1
- persist-credentials: false
+ - uses: actions/checkout@v7
+
+ - name: Stage landing and deep-link recovery page
+ run: |
+ mkdir pages-dist
+ cp .github/pages/index.html pages-dist/index.html
+ cp .github/pages/index.html pages-dist/404.html
- - name: Configure Pages
- uses: actions/configure-pages@v6
+ - uses: actions/configure-pages@v6
- - name: Upload latest published site
- uses: actions/upload-pages-artifact@v5
+ - uses: actions/upload-pages-artifact@v5
with:
- path: .
+ path: pages-dist
- - name: Deploy latest published site
+ - name: Deploy landing
id: deployment
uses: actions/deploy-pages@v5
diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index d2e57873ae..53cc63803a 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -269,37 +269,13 @@ jobs:
'The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.',
});
- deploy-preview:
- needs: resolve
- if: >-
- github.event.action == 'completed' &&
- needs.resolve.outputs.valid == 'true' &&
- needs.resolve.outputs.spec_only != 'true' &&
- needs.resolve.outputs.tooling_only != 'true'
- permissions:
- actions: read
- contents: write
- pull-requests: read
- uses: ./.github/workflows/deploy-preview.yml
- with:
- pr_number: ${{ needs.resolve.outputs.pr_number }}
- head_sha: ${{ needs.resolve.outputs.head_sha }}
- head_repository: ${{ needs.resolve.outputs.head_repo }}
- head_repository_id: ${{ needs.resolve.outputs.head_repo_id }}
- head_ref: ${{ needs.resolve.outputs.head_ref }}
- base_repository: ${{ needs.resolve.outputs.base_repo }}
- source_run_id: ${{ needs.resolve.outputs.run_id }}
- source_run_attempt: ${{ needs.resolve.outputs.run_attempt }}
- source_conclusion: ${{ needs.resolve.outputs.source_conclusion }}
- secrets: inherit
-
comment:
- needs: [resolve, deploy-preview]
+ needs: resolve
concurrency:
group: pr-report-${{ needs.resolve.outputs.pr_number }}
cancel-in-progress: false
- # Pages publication may continue independently, but only the exact-head
- # Vercel deployment can supply either Storybook or Sandbox PR links.
+ # Only the exact-head Vercel deployment supplies Storybook and Sandbox PR links.
+ # Visual evidence remains attached to the exact CI run.
if: >-
always() &&
github.event.action == 'completed' &&
@@ -311,7 +287,6 @@ jobs:
pull-requests: write
actions: read
deployments: read # resolve the exact-head Vercel Preview deployment
- contents: write # immutable validated visual evidence on gh-pages
steps:
- name: Checkout trusted default-branch code
uses: actions/checkout@v7
@@ -391,14 +366,6 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- - name: Download trusted preview deployment result
- if: steps.identity.outputs.valid == 'true'
- uses: actions/download-artifact@v8
- with:
- name: preview-deployment-${{ steps.identity.outputs.run_id }}-${{ steps.identity.outputs.run_attempt }}
- path: preview-deployment
- continue-on-error: true
-
- name: Download canonical visual report
id: visual-download
if: steps.identity.outputs.valid == 'true'
@@ -452,35 +419,6 @@ jobs:
--run-id "$RUN_ID" \
--run-attempt "$RUN_ATTEMPT"
- - name: Resolve trusted visual evidence path
- id: visual
- if: >-
- steps.identity.outputs.valid == 'true' &&
- steps.visual-download.outcome == 'success'
- env:
- PR_NUMBER: ${{ steps.identity.outputs.pr_number }}
- HEAD_SHA: ${{ steps.identity.outputs.head_sha }}
- RUN_ID: ${{ steps.identity.outputs.run_id }}
- RUN_ATTEMPT: ${{ steps.identity.outputs.run_attempt }}
- run: |
- test -f trusted-visual/verdict.json
- test -f trusted-visual/index.html
- echo "ready=true" >> "$GITHUB_OUTPUT"
- echo "path=pr/${PR_NUMBER}/visual/${HEAD_SHA}/${RUN_ID}/${RUN_ATTEMPT}" >> "$GITHUB_OUTPUT"
-
- - name: Publish immutable visual evidence
- id: publish
- if: steps.visual.outputs.ready == 'true'
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- EVIDENCE_PATH: ${{ steps.visual.outputs.path }}
- run: >
- node .github/scripts/gh-pages-publisher.mjs immutable-path
- --source trusted-visual
- --destination "$EVIDENCE_PATH"
- --scope pr-visual/evidence
- --message "Visual evidence: ${EVIDENCE_PATH}"
-
- name: Generate and post PR comment
if: always() && steps.identity.outputs.valid == 'true'
uses: actions/github-script@v9
@@ -495,8 +433,6 @@ jobs:
RUN_ID: ${{ steps.identity.outputs.run_id }}
RUN_ATTEMPT: ${{ steps.identity.outputs.run_attempt }}
SOURCE_CONCLUSION: ${{ steps.identity.outputs.source_conclusion }}
- VISUAL_PUBLISHED: ${{ steps.publish.outputs.published }}
- VISUAL_PATH: ${{ steps.visual.outputs.path }}
with:
retries: 3
script: |
@@ -520,6 +456,4 @@ jobs:
sourceRunAttempt: Number(process.env.RUN_ATTEMPT),
sourceConclusion: process.env.SOURCE_CONCLUSION,
},
- visualPublished: process.env.VISUAL_PUBLISHED === 'true',
- visualReportPath: process.env.VISUAL_PATH,
});
diff --git a/.github/workflows/redeploy-preview.yml b/.github/workflows/redeploy-preview.yml
deleted file mode 100644
index aa4a22772f..0000000000
--- a/.github/workflows/redeploy-preview.yml
+++ /dev/null
@@ -1,235 +0,0 @@
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-# Re-publishes the Sandbox artifact from the PR's latest successful CI run.
-# Storybook lives with the exact-head Vercel docsite preview.
-
-name: Re-deploy Preview
-
-on:
- workflow_dispatch:
- inputs:
- pr_number:
- description: 'PR number to re-deploy preview for'
- required: true
- type: string
-
-permissions: {}
-
-concurrency:
- group: 'pr-preview-${{ github.event.inputs.pr_number }}'
- cancel-in-progress: true
-
-jobs:
- redeploy-preview:
- runs-on: ubuntu-slim
- permissions:
- actions: read
- contents: write
- pull-requests: read
-
- steps:
- - name: Checkout trusted publisher
- uses: actions/checkout@v7
- with:
- ref: main
-
- - name: Locate the PR's exact successful CI run
- id: source
- uses: actions/github-script@v9
- env:
- REQUESTED_PR: ${{ github.event.inputs.pr_number }}
- with:
- retries: 3
- script: |
- const {pathToFileURL} = require('node:url');
- const preview = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/lib/pr-preview.mjs`).href
- );
- if (!/^[1-9][0-9]*$/.test(process.env.REQUESTED_PR)) {
- core.setFailed('PR number must be a positive integer.');
- return;
- }
- const {owner, repo} = context.repo;
- const prNumber = Number(process.env.REQUESTED_PR);
- const {data: pull} = await github.rest.pulls.get({
- owner,
- repo,
- pull_number: prNumber,
- });
- const runs = await github.paginate(
- github.rest.actions.listWorkflowRunsForRepo,
- {
- owner,
- repo,
- event: 'pull_request',
- head_sha: pull.head.sha,
- per_page: 100,
- },
- );
- const identities = [];
- for (const run of runs) {
- if (run.path !== '.github/workflows/ci.yml' || run.conclusion !== 'success') {
- continue;
- }
- try {
- identities.push(
- preview.validatePullRequestSourceRun({
- pull,
- run,
- baseRepository: `${owner}/${repo}`,
- }),
- );
- } catch {
- // A run for another branch/repository is not a candidate.
- }
- }
- identities.sort(
- (a, b) =>
- b.sourceRunId - a.sourceRunId ||
- b.sourceRunAttempt - a.sourceRunAttempt,
- );
- const identity = identities[0];
- if (!identity) {
- core.setFailed(`No successful PR-backed CI run matches PR #${prNumber}.`);
- return;
- }
- if (identity.draft) {
- core.setFailed(`PR #${prNumber} is still a draft.`);
- return;
- }
- core.setOutput('valid', 'true');
- core.setOutput('pr_number', String(identity.prNumber));
- core.setOutput('head_sha', identity.headSha);
- core.setOutput('head_repo', identity.headRepository);
- core.setOutput('head_repo_id', identity.headRepositoryId);
- core.setOutput('head_ref', identity.headRef);
- core.setOutput('base_repo', identity.baseRepository);
- core.setOutput('run_id', String(identity.sourceRunId));
- core.setOutput('run_attempt', String(identity.sourceRunAttempt));
- core.setOutput('short_hash', identity.headSha.slice(0, 7));
-
- - name: Download PR metadata
- if: steps.source.outputs.valid == 'true'
- uses: actions/download-artifact@v8
- with:
- name: pr-analysis
- path: pr-analysis
- run-id: ${{ steps.source.outputs.run_id }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Cross-check artifact identity
- if: steps.source.outputs.valid == 'true'
- uses: actions/github-script@v9
- env:
- PR_NUMBER: ${{ steps.source.outputs.pr_number }}
- HEAD_SHA: ${{ steps.source.outputs.head_sha }}
- HEAD_REPOSITORY: ${{ steps.source.outputs.head_repo }}
- BASE_REPOSITORY: ${{ steps.source.outputs.base_repo }}
- SOURCE_RUN_ID: ${{ steps.source.outputs.run_id }}
- SOURCE_RUN_ATTEMPT: ${{ steps.source.outputs.run_attempt }}
- with:
- script: |
- const fs = require('node:fs');
- const {pathToFileURL} = require('node:url');
- const {validateAnalysisMetadata} = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/lib/pr-preview.mjs`).href
- );
- validateAnalysisMetadata(
- JSON.parse(fs.readFileSync('pr-analysis/pr-meta.json', 'utf8')),
- {
- prNumber: Number(process.env.PR_NUMBER),
- headSha: process.env.HEAD_SHA,
- headRepository: process.env.HEAD_REPOSITORY,
- baseRepository: process.env.BASE_REPOSITORY,
- sourceRunId: Number(process.env.SOURCE_RUN_ID),
- sourceRunAttempt: Number(process.env.SOURCE_RUN_ATTEMPT),
- },
- );
-
- - name: Download Sandbox artifact
- uses: actions/download-artifact@v8
- with:
- name: sandbox-${{ steps.source.outputs.short_hash }}
- path: sandbox-dist
- run-id: ${{ steps.source.outputs.run_id }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
- continue-on-error: true
-
- - name: Detect available Sandbox artifact
- id: targets
- run: |
- if [ ! -f sandbox-dist/index.html ]; then
- echo "::error::No Sandbox artifact remains for source run ${{ steps.source.outputs.run_id }}. Re-run CI on the PR."
- exit 1
- fi
-
- - name: Reconfirm source identity immediately before publication
- uses: actions/github-script@v9
- env:
- PR_NUMBER: ${{ steps.source.outputs.pr_number }}
- HEAD_SHA: ${{ steps.source.outputs.head_sha }}
- HEAD_REPOSITORY: ${{ steps.source.outputs.head_repo }}
- HEAD_REPOSITORY_ID: ${{ steps.source.outputs.head_repo_id }}
- HEAD_REF: ${{ steps.source.outputs.head_ref }}
- BASE_REPOSITORY: ${{ steps.source.outputs.base_repo }}
- SOURCE_RUN_ID: ${{ steps.source.outputs.run_id }}
- SOURCE_RUN_ATTEMPT: ${{ steps.source.outputs.run_attempt }}
- with:
- retries: 3
- script: |
- const {pathToFileURL} = require('node:url');
- const {confirmSourceRunIdentity} = await import(
- pathToFileURL(`${process.env.GITHUB_WORKSPACE}/.github/scripts/lib/pr-preview.mjs`).href
- );
- const identity = await confirmSourceRunIdentity({
- github,
- ...context.repo,
- expected: {
- prNumber: Number(process.env.PR_NUMBER),
- headSha: process.env.HEAD_SHA,
- headRepository: process.env.HEAD_REPOSITORY,
- headRepositoryId: process.env.HEAD_REPOSITORY_ID,
- headRef: process.env.HEAD_REF,
- baseRepository: process.env.BASE_REPOSITORY,
- sourceRunId: Number(process.env.SOURCE_RUN_ID),
- sourceRunAttempt: Number(process.env.SOURCE_RUN_ATTEMPT),
- sourceConclusion: 'success',
- },
- });
- if (identity.draft) core.setFailed(`PR #${identity.prNumber} is still a draft.`);
-
- - name: Deploy Sandbox to GitHub Pages
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PR_NUMBER: ${{ steps.source.outputs.pr_number }}
- HEAD_SHA: ${{ steps.source.outputs.head_sha }}
- HEAD_REPOSITORY: ${{ steps.source.outputs.head_repo }}
- HEAD_REPOSITORY_ID: ${{ steps.source.outputs.head_repo_id }}
- HEAD_REF: ${{ steps.source.outputs.head_ref }}
- BASE_REPOSITORY: ${{ steps.source.outputs.base_repo }}
- SOURCE_RUN_ID: ${{ steps.source.outputs.run_id }}
- SOURCE_RUN_ATTEMPT: ${{ steps.source.outputs.run_attempt }}
- run: |
- args=(
- pr-preview
- --pr "$PR_NUMBER"
- --head "$HEAD_SHA"
- --head-repo "$HEAD_REPOSITORY"
- --head-repo-id "$HEAD_REPOSITORY_ID"
- --head-ref "$HEAD_REF"
- --base-repo "$BASE_REPOSITORY"
- --source-run-id "$SOURCE_RUN_ID"
- --source-run-attempt "$SOURCE_RUN_ATTEMPT"
- --source-conclusion success
- --result preview-deployment.json
- --sandbox sandbox-dist
- )
- node .github/scripts/gh-pages-publisher.mjs "${args[@]}"
-
- - name: Upload deployment result
- uses: actions/upload-artifact@v7
- with:
- name: preview-deployment-${{ steps.source.outputs.run_id }}-${{ steps.source.outputs.run_attempt }}
- path: preview-deployment.json
- if-no-files-found: error
- retention-days: 1
diff --git a/.github/workflows/vibe-screenshots.yml b/.github/workflows/vibe-screenshots.yml
index c85f870cc1..a7d7cbc12c 100644
--- a/.github/workflows/vibe-screenshots.yml
+++ b/.github/workflows/vibe-screenshots.yml
@@ -12,18 +12,6 @@ on:
description: 'Comma-separated prompt IDs (optional, defaults to all)'
required: false
default: ''
- deploy_to_gh_pages:
- description: 'Deploy screenshots to gh-pages (default: true)'
- required: false
- default: 'true'
- type: choice
- options:
- - 'true'
- - 'false'
- report_iteration:
- description: 'Primary iteration ID for report path (default: first in iterations list)'
- required: false
- default: ''
concurrency:
group: vibe-screenshots-${{ github.run_id }}
@@ -106,48 +94,3 @@ jobs:
name: screenshot-manifest
path: internal/vibe-tests/results/*/screenshots/manifest.json
retention-days: 90
-
- deploy-screenshots:
- name: Deploy Screenshots to gh-pages
- needs: screenshot
- if: ${{ github.event.inputs.deploy_to_gh_pages != 'false' }}
- runs-on: ubuntu-slim
- permissions:
- actions: read
- contents: write
- steps:
- - name: Checkout publisher
- uses: actions/checkout@v7
-
- - name: Determine report iteration
- id: report-id
- run: |
- # Use explicit report_iteration input, or fall back to first in the list
- REPORT_ID="${{ github.event.inputs.report_iteration }}"
- if [ -z "$REPORT_ID" ]; then
- REPORT_ID=$(echo "${{ github.event.inputs.iterations }}" | cut -d',' -f1)
- fi
- echo "id=$REPORT_ID" >> "$GITHUB_OUTPUT"
- echo "Report iteration: $REPORT_ID"
-
- - name: Download screenshots
- uses: actions/download-artifact@v8
- with:
- name: vibe-test-screenshots
- path: /tmp/screenshots
-
- - name: Download screenshot manifest
- uses: actions/download-artifact@v8
- with:
- name: screenshot-manifest
- path: /tmp/manifests
-
- - name: Deploy screenshots to report directory
- env:
- REPORT_ID: ${{ steps.report-id.outputs.id }}
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: >
- node .github/scripts/gh-pages-publisher.mjs vibe-screenshots
- --report-id "$REPORT_ID"
- --screenshots /tmp/screenshots
- --manifests /tmp/manifests
diff --git a/README.md b/README.md
index 62da2c34a4..47dd240267 100644
--- a/README.md
+++ b/README.md
@@ -15,10 +15,10 @@ An open source design system that's fully customizable and built for how we buil
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/facebook/astryx/wiki/Contributing)
[![Docs](https://img.shields.io/badge/Docs-astryx.atmeta.com-6741d9?logo=readthedocs&logoColor=white)](https://astryx.atmeta.com)
-[![Storybook](https://img.shields.io/badge/Storybook-live-ff4785?logo=storybook&logoColor=white)](https://facebook.github.io/astryx/storybook/)
-[![Sandbox](https://img.shields.io/badge/Sandbox-playground-A9792B)](https://facebook.github.io/astryx/sandbox/)
+[![Storybook](https://img.shields.io/badge/Storybook-live-ff4785?logo=storybook&logoColor=white)](https://astryx.atmeta.com/storybook/)
+[![Sandbox](https://img.shields.io/badge/Sandbox-playground-A9792B)](https://astryx.atmeta.com/sandbox/)
-**[Docs](https://astryx.atmeta.com)** · **[Storybook](https://facebook.github.io/astryx/storybook/)** · **[Sandbox](https://facebook.github.io/astryx/sandbox/)** · **[Contributing](https://github.com/facebook/astryx/wiki/Contributing)** · **[Discord](https://discord.com/invite/XnsUcFykEP)**
+**[Docs](https://astryx.atmeta.com)** · **[Storybook](https://astryx.atmeta.com/storybook/)** · **[Sandbox](https://astryx.atmeta.com/sandbox/)** · **[Contributing](https://github.com/facebook/astryx/wiki/Contributing)** · **[Discord](https://discord.com/invite/XnsUcFykEP)**
</div>
diff --git a/docs/specs/AST-030/spec.md b/docs/specs/AST-030/spec.md
index 81b194620a..730cc1a578 100644
--- a/docs/specs/AST-030/spec.md
+++ b/docs/specs/AST-030/spec.md
@@ -7,7 +7,7 @@ authority: current
archive_reason: null
superseded_by: null
approved_by: cixzhang
-approved_at: 2026-09-07
+approved_at: 2026-09-29
phase: accepted
owners: [cixzhang]
affects_architecture: []
@@ -160,8 +160,11 @@ they are separately named.
including scheduled, post-CI, post-merge, or manual replacement owners.
Publication of the canonical run's reports is not another test owner: it MUST
consume that run's artifacts without recapturing or recomparing pixels.
- Explicit full-plan baseline capture and reviewed baseline publication MUST
- remain in `ci.yml`; they are maintenance operations, not release gates.
+ Explicit full-plan baseline capture MUST remain in `ci.yml`; it is a maintenance
+ operation, not a release gate. A reviewed baseline update MUST consume that
+ capture, update the versioned repository baseline through a normal pull request,
+ and remain separate from automatic merge or release work. GitHub Pages MUST NOT
+ be baseline or report storage.
Release evidence MUST come from an explicit `operation=release-check`
`workflow_dispatch` in this same workflow, dispatched from `main` and bound to
its exact event SHA. It MUST run the canonical `pr-visual` (**Stable visual
@@ -299,7 +302,8 @@ Run release evidence against exact current `main`, not only constituent PR heads
Use an explicit release-time dispatch in `ci.yml` so full visual, accessibility,
and RTL checks do not run on every main push. Reuse existing test/build owners,
keep their finding policies, and fail closed on incomplete scope, missing work,
-or main drift. Baseline capture and reviewed promotion remain separate operations.
+or main drift. Baseline capture and the reviewed pull request that versions an
+accepted candidate remain separate operations.
PR accessibility remains a scoped, fast check: audit only explicitly resolved
changed component owners and retain the fast modal-close, theme-var, and story-play
diff --git a/internal/vibe-tests/package.json b/internal/vibe-tests/package.json
index 58e7de00db..f42f0e6133 100644
--- a/internal/vibe-tests/package.json
+++ b/internal/vibe-tests/package.json
@@ -20,7 +20,6 @@
"generate-a11y-manifest": "tsx src/generate-a11y-manifest.ts",
"report:build": "tsx src/build-report.ts",
"report:dev": "tsx src/build-report.ts --dev",
- "report:deploy": "tsx src/deploy-report.ts",
"preview:dev": "vite --config app/vite.config.preview.ts",
"preview:build": "vite build --config app/vite.config.preview.ts",
"screenshot:previews": "tsx src/screenshot-previews.ts",
diff --git a/internal/vibe-tests/scripts/publish-report.sh b/internal/vibe-tests/scripts/publish-report.sh
deleted file mode 100755
index 00cc778c4f..0000000000
--- a/internal/vibe-tests/scripts/publish-report.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env bash
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-set -euo pipefail
-
-# Publish a vibe test report to GitHub Pages.
-#
-# Usage:
-# ./scripts/publish-report.sh <astryx-iteration> [baseline-iteration]
-#
-# The report is always published under reports/<astryx-iteration>/ on gh-pages.
-# No --slug, no --name, no override — just the hash.
-#
-# Examples:
-# ./scripts/publish-report.sh a87fa578
-# ./scripts/publish-report.sh a87fa578 446469c7
-
-SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
-VIBE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
-
-if [ $# -lt 1 ]; then
- echo "Usage: $0 <astryx-iteration> [baseline-iteration]"
- echo ""
- echo "Builds and deploys a vibe test report to GitHub Pages."
- echo "Report URL: https://facebook.github.io/astryx/reports/<astryx-iteration>/"
- exit 1
-fi
-
-ASTRYX_ITER="$1"
-BASELINE_ITER="${2:-}"
-
-ARGS="--iteration $ASTRYX_ITER"
-if [ -n "$BASELINE_ITER" ]; then
- ARGS="$ARGS --baseline $BASELINE_ITER"
-fi
-
-echo ""
-echo "📊 Publishing vibe test report"
-echo " Astryx iteration: $ASTRYX_ITER"
-if [ -n "$BASELINE_ITER" ]; then
- echo " Baseline iteration: $BASELINE_ITER"
-fi
-echo " Deploy to: reports/$ASTRYX_ITER/"
-echo ""
-
-cd "$VIBE_DIR"
-exec npx tsx src/deploy-report.ts $ARGS
diff --git a/internal/vibe-tests/src/deploy-report.ts b/internal/vibe-tests/src/deploy-report.ts
deleted file mode 100644
index ab743c407d..0000000000
--- a/internal/vibe-tests/src/deploy-report.ts
+++ /dev/null
@@ -1,356 +0,0 @@
-#!/usr/bin/env node
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * @file Deploy report to GitHub Pages
- *
- * Builds a static report HTML and pushes it to the gh-pages branch
- * under reports/{iteration-id}/. The path is always the iteration hash —
- * no overrides, no custom slugs.
- *
- * Usage:
- * tsx src/deploy-report.ts --iteration <id>
- * tsx src/deploy-report.ts --iteration <id> --baseline <id>
- * tsx src/deploy-report.ts --iteration <id> --dry-run
- */
-
-import * as fs from 'node:fs';
-import * as path from 'node:path';
-import {execSync} from 'node:child_process';
-
-const REPO_ROOT = path.resolve(import.meta.dirname, '../../..');
-const VIBE_DIR = path.resolve(import.meta.dirname, '..');
-
-function parseArgs(): {
- iteration: string;
- baseline?: string;
- html?: string;
- astryxTailwind?: string;
- dryRun: boolean;
- skipPreviews: boolean;
-} {
- const args = process.argv.slice(2);
- let iteration = '';
- let baseline: string | undefined;
- let html: string | undefined;
- let astryxTailwind: string | undefined;
- let dryRun = false;
- let skipPreviews = false;
-
- for (let i = 0; i < args.length; i++) {
- if (args[i] === '--iteration' && args[i + 1]) {
- iteration = args[++i];
- } else if (args[i] === '--baseline' && args[i + 1]) {
- baseline = args[++i];
- } else if (args[i] === '--html' && args[i + 1]) {
- html = args[++i];
- } else if (args[i] === '--astryx-tailwind' && args[i + 1]) {
- astryxTailwind = args[++i];
- } else if (args[i] === '--dry-run') {
- dryRun = true;
- } else if (args[i] === '--skip-previews') {
- skipPreviews = true;
- }
- }
-
- if (!iteration) {
- console.error(
- 'Usage: tsx src/deploy-report.ts --iteration <id> [--baseline <id>] [--html <id>] [--astryx-tailwind <id>] [--dry-run] [--skip-previews]',
- );
- process.exit(1);
- }
-
- return {iteration, baseline, html, astryxTailwind, dryRun, skipPreviews};
-}
-
-function run(cmd: string, opts?: {cwd?: string; silent?: boolean}): string {
- const cwd = opts?.cwd ?? REPO_ROOT;
- const stdio = opts?.silent ? 'pipe' : 'inherit';
- return execSync(cmd, {cwd, stdio, encoding: 'utf-8'}) ?? '';
-}
-
-function runSilent(cmd: string, opts?: {cwd?: string}): string {
- return run(cmd, {...opts, silent: true}).trim();
-}
-
-function shellQuote(value: string): string {
- return "'" + value.replace(/'/g, "'\\''") + "'";
-}
-
-async function main() {
- const {iteration, baseline, html, astryxTailwind, dryRun, skipPreviews} =
- parseArgs();
-
- const deployPath = `reports/${iteration}`;
-
- console.log(`\n📦 Deploy Report Pipeline`);
- console.log(` Iteration: ${iteration}`);
- if (baseline) {
- console.log(` Baseline: ${baseline}`);
- }
- console.log(` Deploy to: ${deployPath}`);
- if (dryRun) {
- console.log(` ⚠️ DRY RUN — will build but not push`);
- }
- console.log('');
-
- // Step 1: Build previews if result files exist (.tsx or .json)
- if (!skipPreviews) {
- const iterationsWithCode: string[] = [];
- for (const id of [iteration, baseline, html, astryxTailwind].filter(
- Boolean,
- ) as string[]) {
- const codeDir = path.join(VIBE_DIR, 'results', id, 'results');
- if (
- fs.existsSync(codeDir) &&
- fs
- .readdirSync(codeDir)
- .some(f => f.endsWith('.tsx') || f.endsWith('.json'))
- ) {
- iterationsWithCode.push(id);
- }
- }
-
- if (iterationsWithCode.length > 0) {
- const previewsOut = path.join(VIBE_DIR, 'results', iteration, 'previews');
- console.log('🖼️ Step 1: Building preview pages...');
- try {
- run(
- `npx tsx src/build-previews.ts --iterations ${iterationsWithCode.join(',')} --out ${previewsOut}`,
- {cwd: VIBE_DIR},
- );
- } catch {
- console.warn(
- ' ⚠️ Preview build had errors (continuing without some previews)',
- );
- }
- console.log('');
- }
- }
-
- // Step 2: Build the report
- console.log('🏗️ Step 2: Building report...');
- const buildArgs = [`--iteration ${iteration}`];
- if (baseline) {
- buildArgs.push(`--baseline ${baseline}`);
- }
- if (html) {
- buildArgs.push(`--html ${html}`);
- }
- if (astryxTailwind) {
- buildArgs.push(`--astryx-tailwind ${astryxTailwind}`);
- }
-
- run(`npx tsx src/build-report.ts ${buildArgs.join(' ')}`, {cwd: VIBE_DIR});
-
- const reportHtml = path.join(VIBE_DIR, 'results', iteration, 'report.html');
- if (!fs.existsSync(reportHtml)) {
- console.error('❌ Report build failed — no report.html found');
- process.exit(1);
- }
-
- const reportSize = fs.statSync(reportHtml).size;
- console.log(` ✓ report.html (${(reportSize / 1024).toFixed(0)} KB)\n`);
-
- if (dryRun) {
- console.log('✅ Dry run complete. Report built but not deployed.');
- console.log(` File: ${reportHtml}`);
- return;
- }
-
- // Step 3: Deploy through the shared gh-pages publisher.
- console.log('🚀 Step 3: Publishing through the shared gh-pages queue...');
-
- const tmpDir = path.join(REPO_ROOT, '.deploy-tmp');
- if (fs.existsSync(tmpDir)) {
- fs.rmSync(tmpDir, {recursive: true});
- }
- fs.mkdirSync(tmpDir, {recursive: true});
-
- try {
- fs.copyFileSync(reportHtml, path.join(tmpDir, 'index.html'));
-
- const previewsDir = path.join(VIBE_DIR, 'results', iteration, 'previews');
- if (fs.existsSync(previewsDir)) {
- const targetPreviewsDir = path.join(tmpDir, 'previews');
- copyDirRecursive(previewsDir, targetPreviewsDir);
- const previewCount = countFiles(targetPreviewsDir, '.html');
- console.log(` ✓ ${previewCount} preview pages copied`);
- }
-
- const targetScreenshotsDir = path.join(tmpDir, 'screenshots');
- let totalScreenshots = 0;
- for (const id of [iteration, baseline, html, astryxTailwind].filter(
- Boolean,
- ) as string[]) {
- const screenshotsDir = path.join(VIBE_DIR, 'results', id, 'screenshots');
- if (fs.existsSync(screenshotsDir)) {
- copyDirRecursive(screenshotsDir, targetScreenshotsDir);
- const localCount = countFiles(screenshotsDir, '.png');
- totalScreenshots = countFiles(targetScreenshotsDir, '.png');
- console.log(` ✓ ${localCount} screenshots copied from local results`);
- }
- }
-
- if (
- totalScreenshots > 0 &&
- fs.existsSync(path.join(tmpDir, 'index.html'))
- ) {
- const manifestPath = path.join(targetScreenshotsDir, 'manifest.json');
- if (fs.existsSync(manifestPath)) {
- injectScreenshotsIntoReport(
- path.join(tmpDir, 'index.html'),
- manifestPath,
- );
- }
- }
-
- run(
- `node .github/scripts/gh-pages-publisher.mjs vibe-report --report-id ${shellQuote(iteration)} --source ${shellQuote(tmpDir)}`,
- {cwd: REPO_ROOT},
- );
-
- const repository = getRepository();
- if (!repository) {
- throw new Error(
- 'Report was published to gh-pages, but the repository identity could not be resolved for the Pages deployment.',
- );
- }
- run(
- `gh workflow run pages-deploy.yml --repo ${shellQuote(repository)} --ref main`,
- {cwd: REPO_ROOT},
- );
- console.log(' ✓ Queued the GitHub Actions Pages deployment');
-
- const repoUrl = getRepoUrl();
- const reportUrl = repoUrl
- ? `${repoUrl}/${deployPath}/`
- : `(gh-pages)/${deployPath}/`;
-
- console.log(`\n✅ Deployed!`);
- console.log(` 📊 ${reportUrl}`);
- } finally {
- fs.rmSync(tmpDir, {recursive: true, force: true});
- }
-}
-
-/**
- * Inject screenshot manifest into a deployed report HTML file.
- *
- * When the report was built without local screenshots (common in sandbox
- * environments that can't download GHA artifacts), the __REPORT_DATA__
- * in the HTML will have `screenshots: null`. This function reads the
- * screenshot manifest from gh-pages and patches the report data so the
- * ScreenshotGallery component renders properly.
- */
-function injectScreenshotsIntoReport(
- htmlPath: string,
- manifestPath: string,
-): void {
- try {
- const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf-8'));
- const screenshots: Record<string, string> = {};
-
- // Flatten the nested manifest (promptId → target → viewport → theme → filename)
- // into a flat map (filename → relative URL)
- for (const [, targets] of Object.entries(manifest)) {
- for (const [, viewports] of Object.entries(
- targets as Record<string, Record<string, Record<string, string>>>,
- )) {
- for (const [, themes] of Object.entries(
- viewports as Record<string, Record<string, string>>,
- )) {
- for (const [, filename] of Object.entries(
- themes as Record<string, string>,
- )) {
- screenshots[filename] = `screenshots/${filename}`;
- }
- }
- }
- }
-
- if (Object.keys(screenshots).length === 0) {
- return;
- }
-
- let html = fs.readFileSync(htmlPath, 'utf-8');
-
- // Find the __REPORT_DATA__ script tag and patch the screenshots field
- const dataMatch = html.match(
- /window\.__REPORT_DATA__=(\{.+?\});<\/script>/,
- );
- if (dataMatch) {
- const data = JSON.parse(dataMatch[1]);
- if (!data.screenshots || Object.keys(data.screenshots).length === 0) {
- data.screenshots = screenshots;
- const newScript = `window.__REPORT_DATA__=${JSON.stringify(data)};</script>`;
- html = html.replace(
- /window\.__REPORT_DATA__=\{.+?\};<\/script>/,
- newScript,
- );
- fs.writeFileSync(htmlPath, html);
- console.log(
- ` ✓ Injected ${Object.keys(screenshots).length} screenshot references into report`,
- );
- }
- }
- } catch (err) {
- console.warn(` ⚠️ Failed to inject screenshots into report: ${err}`);
- }
-}
-
-function copyDirRecursive(src: string, dest: string): void {
- fs.mkdirSync(dest, {recursive: true});
- for (const entry of fs.readdirSync(src, {withFileTypes: true})) {
- const srcPath = path.join(src, entry.name);
- const destPath = path.join(dest, entry.name);
- if (entry.isDirectory()) {
- copyDirRecursive(srcPath, destPath);
- } else {
- fs.copyFileSync(srcPath, destPath);
- }
- }
-}
-
-function countFiles(dir: string, ext: string): number {
- let count = 0;
- if (!fs.existsSync(dir)) {
- return 0;
- }
- for (const entry of fs.readdirSync(dir, {withFileTypes: true})) {
- if (entry.isDirectory()) {
- count += countFiles(path.join(dir, entry.name), ext);
- } else if (entry.name.endsWith(ext)) {
- count++;
- }
- }
- return count;
-}
-
-function getRepository(): string | null {
- const fromEnvironment = process.env.GITHUB_REPOSITORY;
- if (fromEnvironment && /^[^/]+\/[^/]+$/.test(fromEnvironment)) {
- return fromEnvironment;
- }
- try {
- const remote = runSilent('git remote get-url origin', {cwd: REPO_ROOT});
- const match = remote.match(/github\.com[:/]([^/]+)\/([^/.]+)/);
- return match ? `${match[1]}/${match[2]}` : null;
- } catch {
- return null;
- }
-}
-
-function getRepoUrl(): string | null {
- const repository = getRepository();
- if (!repository) {
- return null;
- }
- const [owner, repo] = repository.split('/');
- return `https://${owner}.github.io/${repo}`;
-}
-
-main().catch(err => {
- console.error(err);
- process.exit(1);
-});
diff --git a/internal/vibe-tests/src/post-design-results.py b/internal/vibe-tests/src/post-design-results.py
deleted file mode 100644
index 2537fe2315..0000000000
--- a/internal/vibe-tests/src/post-design-results.py
+++ /dev/null
@@ -1,241 +0,0 @@
-#!/usr/bin/env python3
-# Copyright (c) Meta Platforms, Inc. and affiliates.
-
-"""
-Post Night Watch design judge results as a GitHub issue comment.
-
-Images are served from GitHub Pages (gh-pages branch) under
-reports/{iteration}/screenshots/. No GitHub releases needed.
-
-Usage:
- python3 post-design-results.py \
- --scores /tmp/design-scores-gemini.json \
- --iteration fd6afde6 \
- --issue 1041 \
- --repo facebook/astryx \
- --token $GITHUB_TOKEN
-
- # Legacy flag still accepted for backward compat:
- python3 post-design-results.py \
- --scores /tmp/design-scores-gemini.json \
- --release-tag design-judge-fd6afde6 \
- --issue 1041 \
- --repo facebook/astryx \
- --token $GITHUB_TOKEN
-"""
-import argparse
-import json
-import sys
-import urllib.request
-import urllib.error
-
-
-EMOJI = {"astryx": "🟣", "baseline": "⚪", "html": "🟠"}
-PROMPT_LABELS = {
- "dd-1": "Data table with sortable columns",
- "dd-2": "Transaction list with amount, date, status",
- "dd-3": "Analytics dashboard with charts",
- "fwc-1": "Login form with validation",
- "fwc-2": "Multi-step form wizard",
- "fwc-3": "Search with autocomplete",
- "fwc-4": "Confirmation delete dialog",
- "io-1": "Empty state with call to action",
- "io-2": "Loading skeleton screens",
- "io-3": "Toast notification stack",
- "io-4": "Progress indicator",
- "ps-1": "Product grid with filters",
- "ps-2": "Product card with quick actions",
- "ps-3": "Shopping cart summary",
- "ps-4": "Product detail with breadcrumbs",
- "rc-1": "Responsive navigation menu",
- "rc-2": "Sidebar to bottom sheet on mobile",
- "rc-3": "Responsive data table to cards",
- "sd-1": "Button with loading state",
- "sd-2": "Loading to success button states",
- "tc-1": "Color scheme switcher",
- "tc-3": "Typography scale demo",
- "tc-6": "Settings page with theme controls",
- "ty-1": "Article with rich typography",
- "ty-3": "Metrics dashboard card",
- "wd-1": "E-commerce checkout flow",
- "wd-2": "User registration wizard",
- "wd-3": "Onboarding flow (4 steps)",
- "cwm-1": "Rich text editor toolbar",
- "cwm-2": "Kanban board with drag handles",
- "cwm-3": "Notion page header with icon/cover picker",
-}
-
-
-# GitHub Pages base URL for the Astryx repo
-GH_PAGES_BASE = "https://facebook.github.io/astryx"
-
-
-def img_url(iteration_id, filename):
- """Build image URL from gh-pages screenshots directory."""
- return f"{GH_PAGES_BASE}/reports/{iteration_id}/screenshots/{filename}"
-
-
-def ideal_url(filename):
- """Build image URL for ideal reference images on gh-pages."""
- return f"{GH_PAGES_BASE}/reports/ideals/{filename}"
-
-
-def score_emoji(score):
- if score is None or score == "—":
- return "—"
- if score >= 80:
- return f"✅ **{score}**"
- if score >= 50:
- return f"🟡 **{score}**"
- return f"🔴 **{score}**"
-
-
-def build_comment(data, iteration_id_override=None):
- results = data["results"]
- averages = data.get("averages", {})
- iteration_id = iteration_id_override or data["iterationId"]
- model = data["model"]
- targets = ["astryx", "baseline", "html"]
-
- lines = []
- lines.append(f"## 🔬 Night Watch Design Judge — Gemini Vision")
- lines.append("")
- lines.append(f"**Judge:** `{model}` via Meta InternalProxy | **Iteration:** `{iteration_id}` | **Method:** mTLS (no external API key)")
- lines.append("")
-
- # Overall averages table
- lines.append("### Overall Averages")
- lines.append("")
- lines.append("| Target | Layout | Hierarchy | Spacing | Components | Color | **Overall** |")
- lines.append("|--------|--------|-----------|---------|------------|-------|-------------|")
- for t in targets:
- if t in averages:
- a = averages[t]
- lines.append(
- f"| {t.upper()} | {a['layout']} | {a['hierarchy']} | {a['spacing']} | "
- f"{a['components']} | {a['color']} | **{a['overall']}** |"
- )
- lines.append("")
- lines.append("---")
- lines.append("")
-
- # Per-prompt sections
- for pid, pd in sorted(results.items()):
- label = PROMPT_LABELS.get(pid, pid)
- scores = {t: pd.get(t, {}).get("overall") for t in targets}
- valid = [s for s in scores.values() if s is not None]
- best = max(valid) if valid else None
-
- # Section header with best scores
- score_parts = " | ".join(
- f"{t.upper()}: {s if s is not None else 'n/a'}"
- for t, s in scores.items()
- )
- status = "✅" if best and best >= 70 else ("🟡" if best and best >= 40 else "🔴")
- lines.append(f"#### {status} {pid} — {label}")
- lines.append(f"**{score_parts}**")
- lines.append("")
-
- # Score table
- lines.append("| Target | Layout | Hier | Space | Comp | Color | Overall | Notes |")
- lines.append("|--------|--------|------|-------|------|-------|---------|-------|")
- for t in targets:
- if t in pd:
- j = pd[t]
- notes = j.get("notes", "")[:80]
- overall = j.get("overall", "—")
- lines.append(
- f"| {t.upper()} | {j.get('layout','—')} | {j.get('hierarchy','—')} | "
- f"{j.get('spacing','—')} | {j.get('components','—')} | {j.get('color','—')} | "
- f"**{overall}** | {notes} |"
- )
- else:
- lines.append(f"| {t.upper()} | — | — | — | — | — | **n/a** | No screenshot |")
- lines.append("")
-
- # Screenshot images
- has_baseline = "baseline" in pd
- if has_baseline:
- lines.append("**Ideal** | **Astryx** | **Baseline** | **HTML**")
- lines.append(":--: | :--: | :--: | :--:")
- lines.append(
- f'<img src="{ideal_url(f"{pid}.png")}" width="220"> | '
- f'<img src="{img_url(iteration_id, f"{pid}-astryx-desktop-light.png")}" width="220"> | '
- f'<img src="{img_url(iteration_id, f"{pid}-baseline-desktop-light.png")}" width="220"> | '
- f'<img src="{img_url(iteration_id, f"{pid}-html-desktop-light.png")}" width="220">'
- )
- else:
- lines.append("**Ideal** | **Astryx** | **HTML**")
- lines.append(":--: | :--: | :--:")
- lines.append(
- f'<img src="{ideal_url(f"{pid}.png")}" width="220"> | '
- f'<img src="{img_url(iteration_id, f"{pid}-astryx-desktop-light.png")}" width="220"> | '
- f'<img src="{img_url(iteration_id, f"{pid}-html-desktop-light.png")}" width="220">'
- )
- lines.append("")
- lines.append("---")
- lines.append("")
-
- lines.append("— via Navi on behalf of Ernest Tien")
- return "\n".join(lines)
-
-
-def post_comment(body, repo, issue_number, token):
- url = f"https://api.github.com/repos/{repo}/issues/{issue_number}/comments"
- data = json.dumps({"body": body}).encode()
- req = urllib.request.Request(
- url,
- data=data,
- headers={
- "Authorization": f"token {token}",
- "Content-Type": "application/json",
- "Accept": "application/vnd.github.v3+json",
- },
- method="POST",
- )
- try:
- with urllib.request.urlopen(req) as resp:
- result = json.load(resp)
- print(f"Posted: {result['html_url']}")
- return result["html_url"]
- except urllib.error.HTTPError as e:
- print(f"HTTP error {e.code}: {e.read().decode()}", file=sys.stderr)
- sys.exit(1)
-
-
-def main():
- p = argparse.ArgumentParser(description="Post design judge results to GitHub issue")
- p.add_argument("--scores", required=True, help="Path to design-scores-gemini.json")
- p.add_argument("--iteration", help="Iteration ID (images served from gh-pages)")
- p.add_argument("--release-tag", help="(deprecated) GitHub release tag — ignored, kept for backward compat")
- p.add_argument("--issue", required=True, type=int, help="GitHub issue number")
- p.add_argument("--repo", default="facebook/astryx", help="GitHub repo")
- p.add_argument("--token", required=True, help="GitHub token")
- p.add_argument("--dry-run", action="store_true", help="Print comment without posting")
- args = p.parse_args()
-
- with open(args.scores) as f:
- data = json.load(f)
-
- # Resolve iteration ID: explicit flag > extract from release-tag > scores file
- iteration_id = args.iteration
- if not iteration_id and args.release_tag:
- # Extract from legacy release tag: "design-judge-fd6afde6" -> "fd6afde6"
- iteration_id = args.release_tag.replace("design-judge-", "")
- if not iteration_id:
- iteration_id = data.get("iterationId")
- if not iteration_id:
- print("Error: --iteration is required (or iterationId must be in scores file)", file=sys.stderr)
- sys.exit(1)
-
- body = build_comment(data, iteration_id)
-
- if args.dry_run:
- print(body)
- return
-
- post_comment(body, args.repo, args.issue, args.token)
-
-
-if __name__ == "__main__":
- main()
diff --git a/packages/core/README.md b/packages/core/README.md
index 07899643f1..2d88444c75 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -68,7 +68,7 @@ astryx gap-report # report a missing capability
## Resources
-- [Component Storybook](https://facebook.github.io/astryx/)
+- [Component Storybook](https://astryx.atmeta.com/storybook/)
- [GitHub Repository](https://github.com/facebook/astryx)
---
diff --git a/scripts/score-ledger.mjs b/scripts/score-ledger.mjs
index 889b91e42c..f5c9497c21 100644
--- a/scripts/score-ledger.mjs
+++ b/scripts/score-ledger.mjs
@@ -64,7 +64,7 @@ export const WIKI_BRANCH = 'master';
* are PR previews and must never be linked from anything durable.
*/
export const SCORES_PAGE_URL =
- 'https://facebook.github.io/astryx/sandbox/pages/component-scores/';
+ 'https://astryx.atmeta.com/sandbox/pages/component-scores/';
const USAGE = `
Usage: node scripts/score-ledger.mjs <subcommand> [options]
diff --git a/scripts/template-score-ledger.mjs b/scripts/template-score-ledger.mjs
index 3c73fcd9cd..e320c9f60e 100644
--- a/scripts/template-score-ledger.mjs
+++ b/scripts/template-score-ledger.mjs
@@ -24,7 +24,7 @@ export const TEMPLATE_LEDGER_URL =
export const WIKI_REMOTE = 'https://github.com/facebook/astryx.wiki.git';
export const WIKI_BRANCH = 'master';
export const TEMPLATE_AUDITS_PAGE_URL =
- 'https://facebook.github.io/astryx/sandbox/templates/';
+ 'https://astryx.atmeta.com/sandbox/templates/';
export const LEDGER_FETCH_TIMEOUT_MS = 10_000;
export const WIKI_CACHE_DIR = path.join(
os.tmpdir(),