Skip to content

feat(#105): show available, checked-out, and completed catalogue states - #106

Merged
EcstaceeLOR merged 11 commits into
mainfrom
fix/105-catalogue-lifecycle
Sep 23, 2026
Merged

EcstaceeLOR merged 11 commits into
mainfrom
fix/105-catalogue-lifecycle

Conversation

@EcstaceeLOR

Copy link
Copy Markdown
Owner

Summary

Fixes #105 by moving checkout reservation visibility into the public catalogue instead of waiting for a second buyer to hit a backend conflict.

Live product state

  • Adds public checked_out state for offered products with an active initial-purchase intent.
  • Keeps pending reservations active through the same inclusion grace window used by checkout settlement.
  • Includes sold products in the public catalogue as completed/owned history.

Browse UX

  • Adds Available, Checked out, and Completed categories with live counts.
  • Available remains the default buying pool.
  • Checked-out products remain visible but no longer present a buy action.
  • Completed products remain visible as proof/history and cannot be repurchased.
  • Browse refreshes product lifecycle state automatically every 10 seconds and bypasses stale browser/CDN responses with a live query key.

Direct product pages

  • checked_out shows a clear reservation message and disabled checkout button.
  • owned is presented as Completed.
  • Product-state fetch uses a fresh cache-busting request on page load so users do not enter checkout from a stale public page.

Tests

  • Adds catalogue category UI coverage.
  • Adds direct-page coverage for checked-out and completed purchase states.

Closes #105

@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 7:56pm UTC

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

This branch was successfully deployed

1 active deployment
Preview — 3b9626e0 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.

Expose live catalogue states for available, checked-out, and completed products

1 participant