feat: restore order details page with generic 5-step progress pipeline and interactive CAD previews#3486
feat: restore order details page with generic 5-step progress pipeline and interactive CAD previews#3486itisrohit wants to merge 5 commits into
Conversation
86a78fd to
6acc81b
Compare
imrishabh18
left a comment
There was a problem hiding this comment.
We don't support jlcpcb ordering, and the order steps which you are using are old steps which needs to be get ridden off. We might use that timeline UI to show progress
|
I have merged a PR which cleans up the old order steps |
999153f to
00a88d7
Compare
itisrohit
left a comment
There was a problem hiding this comment.
Updated! I've rebased onto the cleanup PR (#3487) that you merged. The PR now:
- ✅ Completely removes all JLCPCB references from the order page
- ✅ Uses the generic 5-step pipeline: Placed → Paid → Files Ready → In Production → Completed, mapped directly to the Stripe order flags (
is_stripe_payment_paid,is_started,is_finished) - ✅ Dev simulation toolbar with 5 simple buttons: Pay, Start Production, Complete, Fail, Reset (using
_simulate_paid,_simulate_startedetc.) - ✅ Tabbed CAD previews: PCB, 3D View, Schematic, JSON inspector
- ✅ Zero TypeScript errors, Biome format clean
As you suggested, the timeline UI is now repurposed to show the generic Stripe progress pipeline — ready to be adapted if/when a new fabrication flow is added.
…e and interactive CAD previews
00a88d7 to
bb9384c
Compare
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
|
This PR was closed because it has been inactive for 1 day since being marked as stale. |
Description
This PR restores the Order Details page (
/orders/:orderId) which previously resulted in a 404 when navigating from/my-orders.Following feedback from @imrishabh18, this has been fully updated to remove all JLCPCB-specific logic. The page now uses a clean 5-step generic order progress pipeline driven by the existing Stripe checkout flags on the order schema.
Screenshot
What's New
5-Step Generic Order Pipeline
Maps directly to real order schema flags — no JLCPCB dependency:
is_stripe_payment_paidis_startedis_started && !is_finishedis_finishedFeatures
is_running)_simulate_paid,_simulate_started,_simulate_finished,_simulate_error,_simulate_resetquery params)Changes Made
src/App.tsx— Registered/orders/:orderIdroute pointing toViewOrderPagesrc/pages/view-order.tsx— New page with 5-step generic stepper, simulation toolbar, and tabbed viewersfake-snippets-api/routes/api/orders/get.ts— Replaced_simulate_scenario+ JLCPCB state machine with clean_simulate_paid/started/finished/error/resetflags; also exposescircuit_jsonanderrorfor the UIfake-snippets-api/routes/api/sessions/create_passwordless.ts— New dev-only passwordless login endpoint to enable local/dev-loginflowfake-snippets-api/lib/db/seed.ts— Added two seeded orders with realistic circuit JSON for local testingVerification
bun run lint✅ Biome format clean (632 files checked)bun run typecheck✅ Zero TypeScript errorsbun test bun-tests/fake-snippets-api/routes/orders/orders.test.ts✅ 4/4 tests pass/dev-login/my-orders→ click View Details