Skip to content

fix(#108): make catalogue lifecycle backend-authoritative - #109

Merged
EcstaceeLOR merged 6 commits into
mainfrom
fix/108-backend-catalogue-lifecycle
Sep 23, 2026
Merged

EcstaceeLOR merged 6 commits into
mainfrom
fix/108-backend-catalogue-lifecycle

Conversation

@EcstaceeLOR

Copy link
Copy Markdown
Owner

Summary

Fixes the production gap where Browse could show the new lifecycle tabs while the Cloudflare Worker still served stale/older product state.

Backend correctness

  • Adds a real D1-backed regression test that proves a product moves available -> checked_out -> available -> owned from persisted payment/product state.
  • Verifies the public product list exposes exactly one lifecycle state for the product at each step.

Deployment safety

  • Adds npm run deploy:api / API workspace deploy scripts.
  • Adds a manual Deploy API Worker GitHub Actions workflow that typechecks/tests before Wrangler deployment.
  • Deploys the Git commit SHA as APP_VERSION and verifies /api/health reports the same SHA after deployment.
  • Documents that Vercel frontend and Cloudflare Worker are independent production deployments.

Production Worker deployment still needs to be performed before #108 is closed, because the current symptom is caused by frontend/API version drift.

Refs #108

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nimtrace Ready Ready Preview Sep 23, 2026 9:06pm UTC

@EcstaceeLOR
EcstaceeLOR merged commit fe7c0fa into main Sep 23, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — d2d60dc9 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant