Open
Conversation
…ents - Stripe webhook (pages/api/store/webhook.js) handles checkout.session.completed, extracts line items/shipping/customer details, and POSTs to backend - Success page fetches order details by session ID with retry for webhook race condition - Admin store page with sortable/filterable order table, detail dialog with status/tracking/notes management (hidden from nav until ready) - Fix deprecated stripe.redirectToCheckout → use session.url redirect - Fix cart not clearing after checkout (localStorage race condition) - Improve FloatingNavigation: global keyboard shortcuts (work without opening menu), discoverable ? help modal, visual flash feedback on navigation, mobile-aware Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/store/webhook) processescheckout.session.completedevents, extracts line items/shipping/customer details, and POSTs order data to the backend API/admin/store) with sortable/filterable order table, detail dialog for managing status, tracking numbers, carrier, and admin notes (hidden from nav until ready to launch)stripe.redirectToCheckoutwithsession.urlredirectShoppingCartContext?key for a discoverable help modal, visual flash feedback on section navigation, mobile-aware shortcut handlingBackend (separate repo: backend-ohack.dev)
Companion backend changes are needed (not in this PR):
api/store/store_service.py— Firestore CRUD, Resend emails (confirmation + status updates), Slack notifications to #store-ordersapi/store/store_views.py— Flask blueprint with webhook-auth and admin-auth endpointsapi/__init__.pyNew env vars needed
STRIPE_WEBHOOK_SECRET— Stripe webhook signing secret (frontend only, server-side)STORE_WEBHOOK_SECRET— shared secret between frontend webhook and backend API (both repos)Test plan
stripe listen --forward-to localhost:3000/api/store/webhookand complete a test purchasestore_orderscollection/admin/store, verify orders display with correct status chips/hack/[event_id], press?to verify keyboard shortcut help modal🤖 Generated with Claude Code