Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix: unblock stable website publication and improve reference contrast (#777)

tt-a1i2b1185243b5b
diff --git a/archify/test/motion-governor-browser.test.mjs b/archify/test/motion-governor-browser.test.mjs
index 5e07b4a6..90dd6d7d 100644
--- a/archify/test/motion-governor-browser.test.mjs
+++ b/archify/test/motion-governor-browser.test.mjs
@@ -59,15 +59,25 @@ test('Motion Governor preserves mode, ownership, ambient completion and real cal
async function load(mode = 'architecture', { theme = 'dark', reduced = false, fixture = '', preserveStorage = false, query = '' } = {}) {
const expectedNavigation = ++navigationId;
if (!preserveStorage) {
+ if (fixtureUrl) {
+ // Reset through the outgoing document's live storage area, then verify
+ // completion before navigating. A CDP clear against a guessed file
+ // storage key did not reliably clear this document's saved intent.
+ assert.equal(await run('motionResetStorage()'), null, 'Outgoing fixture must clear stored intent.');
+ }
fixtureUrl = pathToFileURL(files[mode]).href + `?theme=${theme}&testNavigation=${expectedNavigation}${query}`;
- // Reset the disposable browser profile before navigation. Touching
- // localStorage in a new-document script can disturb file-backed storage
- // in Chrome; leave startup and reload reads to the Viewer itself.
- await send('Storage.clearDataForStorageKey', { storageKey: 'file:///', storageTypes: 'local_storage' });
}
if (startup) await send('Page.removeScriptToEvaluateOnNewDocument', { identifier: startup });
({ identifier: startup } = await send('Page.addScriptToEvaluateOnNewDocument', { source: `(() => {
if (location.href !== ${JSON.stringify(fixtureUrl)}) return;
+ // Capture methods without accessing localStorage before Viewer startup.
+ // Cleanup runs only later in the outgoing document, including after the
+ // storage-unavailable fixture has replaced Storage.prototype methods.
+ const readStored = Storage.prototype.getItem, removeStored = Storage.prototype.removeItem;
+ window.motionResetStorage = () => {
+ removeStored.call(localStorage, 'archify-motion');
+ return readStored.call(localStorage, 'archify-motion');
+ };
window.motionNavigation = ${expectedNavigation};
window.motionErrors = []; window.motionEnds = []; window.motionAmbient = [];
addEventListener('error', e => motionErrors.push(e.message));
diff --git a/website/src/components/ProductFacts.astro b/website/src/components/ProductFacts.astro
index 4c554211..2f7a70e7 100644
--- a/website/src/components/ProductFacts.astro
+++ b/website/src/components/ProductFacts.astro
@@ -40,6 +40,6 @@ const facts = [
.facts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 48px; }
h3 { font-size:17px; margin:0 0 10px; } p { font-size:14px; line-height:1.8; color:var(--text-2); }
.facts-exports { margin-top:28px; } .facts-links { display:flex; flex-wrap:wrap; gap:14px 24px; margin-top:20px; font-size:13px; }
- .facts-links a { color:var(--accent,#72d9cd); text-decoration:none; } .facts-channel { font-size:12px; margin-top:20px; }
+ .facts-links a { color:var(--hue-blue); text-decoration:none; } .facts-channel { font-size:12px; margin-top:20px; }
@media(max-width:680px) { .facts-grid { grid-template-columns:1fr; gap:24px; } .product-facts { padding:56px 0; } }
</style>
diff --git a/website/src/components/RecipeReference.astro b/website/src/components/RecipeReference.astro
index 8744be1e..7a9f517f 100644
--- a/website/src/components/RecipeReference.astro
+++ b/website/src/components/RecipeReference.astro
@@ -50,7 +50,7 @@ const labels = {
<style>
.recipe-reference { margin: 72px 0; scroll-margin-top: 100px; }
.recipe-index { display:flex; flex-wrap:wrap; gap:8px 18px; margin:24px 0; font-size:13px; }
- .recipe-index a,.recipe-reference-links a { color:var(--hue-cyan,#5dcfd3); text-decoration:none; }
+ .recipe-index a,.recipe-reference-links a { color:var(--hue-blue); text-decoration:none; }
.recipe-reference-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.recipe-entry { border:1px solid var(--line); border-radius:16px; padding:26px; scroll-margin-top:100px; min-width:0; }
.recipe-mode { font-size:11px; letter-spacing:.08em; text-transform:uppercase; opacity:.65; }