Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy FireCraft marketing site
name: Deploy FireCraft marketing review preview

on:
pull_request:
Expand Down Expand Up @@ -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
Expand All @@ -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
13 changes: 13 additions & 0 deletions log/devlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion site/robots.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions site/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://firecraft-site.pages.dev/</loc></url>
<url><loc>https://firecraft-site.pages.dev/extensions.html</loc></url>
<url><loc>https://marketing-review.firecraft-web.pages.dev/</loc></url>
<url><loc>https://marketing-review.firecraft-web.pages.dev/extensions.html</loc></url>
</urlset>
13 changes: 11 additions & 2 deletions tests/site-release-loader.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading