diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index bef7fa34..f1764d3f 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -1,4 +1,4 @@ -name: Deploy FireCraft marketing site +name: Deploy FireCraft marketing review preview on: pull_request: @@ -47,7 +47,7 @@ jobs: node --test tests/site-release-loader.test.mjs deploy: - name: Deploy Cloudflare Pages + name: Deploy Cloudflare Pages preview if: github.event_name != 'pull_request' needs: validate runs-on: ubuntu-24.04 @@ -59,4 +59,6 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy site --project-name=firecraft-site --branch=main + # The production branch of firecraft-web serves the WASM application. + # Keep marketing on a stable, non-production preview branch. + command: pages deploy site --project-name=firecraft-web --branch=marketing-review diff --git a/log/devlog.md b/log/devlog.md index 1c1ce2d2..98668cb3 100644 --- a/log/devlog.md +++ b/log/devlog.md @@ -4410,3 +4410,16 @@ Still open when this entry was written: the aegis baseline re-bless, the reachability floor (100.00% recorded vs. the 249/257 the last measurement reported), the climb board's S12 cell, the compiler pin (wasm job 1.100.0 vs `rust-toolchain.toml` 1.99.1), and the 109 worktrees. + +## 2026-11-27 — PR #190 accessibility follow-up +- Added a failing-first regression test for the extension page mobile nav target and light-theme contrast, reproduced the missing `primary-nav` id, then fixed it. +- Added explicit accessible colors for quiet buttons and the extension reference panel in Light mode. +- Validation: `node --test tests/site-release-loader.test.mjs` (9/9 pass); `actionlint .github/workflows/deploy-site.yml` pass; `git diff --check` pass. Browser verified the Light theme, 390px layout, working nav toggle/aria-controls relationship, and no horizontal overflow. Screenshot capture timed out while waiting on fonts, so no screenshot evidence retained. +- The local shared runner does not admit `/nas/Temp/repos/FireCraft`; use the required hosted PR gate for Rust workspace validation rather than bypassing runner policy. + +## 2026-11-27 — Cloudflare Pages preview routing +- Fixed the post-merge deploy target: account limit is 10 Pages projects and no `firecraft-site` exists. Main updates now go to `firecraft-web` branch `marketing-review`, preserving the production WASM app. +- Updated `robots.txt` and sitemap to the stable review URL. Added TDD assertions for the project/branch destination and sitemap host. +- Red/green: site test initially failed on obsolete `firecraft-site`; final suite 10/10 pass. `actionlint` and `git diff --check` pass. +- Manually deployed the first preview to `https://marketing-review-v0-3-5.firecraft-web.pages.dev`; landing page, extensions page, CSS and logo return HTTP 200. Production app branch was not changed. +- Added the already verified deployment credential as the GitHub Actions secret after the first post-merge run showed that secret was missing. Follow-up workflow PR will verify the stable preview deployment path. diff --git a/site/robots.txt b/site/robots.txt index 1281a7b9..d5ebbafa 100644 --- a/site/robots.txt +++ b/site/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://firecraft-site.pages.dev/sitemap.xml +Sitemap: https://marketing-review.firecraft-web.pages.dev/sitemap.xml diff --git a/site/sitemap.xml b/site/sitemap.xml index 78a11ce5..66377b94 100644 --- a/site/sitemap.xml +++ b/site/sitemap.xml @@ -1,5 +1,5 @@ - https://firecraft-site.pages.dev/ - https://firecraft-site.pages.dev/extensions.html + https://marketing-review.firecraft-web.pages.dev/ + https://marketing-review.firecraft-web.pages.dev/extensions.html diff --git a/tests/site-release-loader.test.mjs b/tests/site-release-loader.test.mjs index e1d7e779..8f398ae2 100644 --- a/tests/site-release-loader.test.mjs +++ b/tests/site-release-loader.test.mjs @@ -78,11 +78,20 @@ test("published pages reference existing local assets and sitemap routes", async } } const sitemap = await readFile(new URL("../site/sitemap.xml", import.meta.url), "utf8"); - assert.match(sitemap, /firecraft-site\.pages\.dev\//); - assert.match(sitemap, /firecraft-site\.pages\.dev\/extensions\.html/); + const robots = await readFile(new URL("../site/robots.txt", import.meta.url), "utf8"); + assert.match(sitemap, /marketing-review\.firecraft-web\.pages\.dev\//); + assert.match(sitemap, /marketing-review\.firecraft-web\.pages\.dev\/extensions\.html/); + assert.match(robots, /Sitemap: https:\/\/marketing-review\.firecraft-web\.pages\.dev\/sitemap\.xml/); assert.doesNotMatch(sitemap, /features\.html|downloads\.html|gallery\.html/); }); +test("main-branch deployment publishes a review preview without replacing the WebAssembly app", async () => { + const workflow = await readFile(new URL("../.github/workflows/deploy-site.yml", import.meta.url), "utf8"); + const target = workflow.match(/command:\s*pages deploy site --project-name=([\w-]+) --branch=([\w-]+)/); + assert.ok(target, "the Pages deploy target must be explicit"); + assert.deepEqual(target.slice(1), ["firecraft-web", "marketing-review"]); +}); + function contrastRatio(foreground, background) { const luminance = (color) => { const channels = color.match(/[0-9a-f]{2}/gi).map((value) => parseInt(value, 16) / 255);