Orders
Mobile app: every screen, state and flow in Orders.
3 screens and overlays, 43 states, 4 flows. Frames show a real screenshot where one was captured and a wireframe card where the state needs data or conditions a device run cannot produce.
Flows
Order lifecycle seen by the buyer
Branches and edge cases
Order alerts
Already received
Server returns success when receivedAt already set
Not reachable on a device: Capture audit 2026-10-30. ios: Prior source investigation: no distinct reachable UI for this state. android: Prior source investigation: no distinct reachable UI for this state.
Flow diagram
Cancellation or refund
Branches and edge cases
Flow diagram
Linking an order to the user
Branches and edge cases
Orders
No Orders Yet (no profile)
Profile resolved to null, treated as empty although it can be transient
Needs data: Capture audit 2026-10-30. ios: Requires signed-in auth with a null profile while the app gate permits browsing; current fixed-OTP accounts all have profiles. android: Requires signed-in auth with a null profile while the app gate permits browsing; current fixed-OTP accounts all have profiles.
Flow diagram
Reorder
Branches and edge cases
Flow diagram
Screens and states
Orders
(app)/ordersOrders
List of the signed-in user's orders with search and filters
src/app/(app)/orders/index.tsxEntry
- Profile tab stats or menu
- Settings > Shopping
- Order confirmation timeout
- Push or inbox order tap without id
Exits
- Back → Profile tab
- Tap card → Order detail
- Buy again → reorder, then Bag
- Start Shopping → Home
- Guest sign in → auth sheet
States · 15
src/features/orders/components/list/order-list.tsx:403src/features/orders/components/list/order-list.tsx:416src/features/orders/components/list/order-list.tsx:429src/features/orders/components/list/order-list.tsx:441src/features/orders/components/list/order-list.tsx:453src/features/orders/components/list/order-list.tsx:467src/features/orders/components/list/order-list.tsx:486src/features/orders/components/list/order-list.tsx:514src/features/orders/components/list/order-list.tsx:51src/features/orders/components/list/order-list.tsx:527src/features/orders/components/list/order-list.tsx:297src/features/orders/components/list/order-list.tsx:249src/features/orders/components/list/order-list.tsx:256src/features/orders/components/list/_internal/order-card.tsx:181packages/backend/convex/orderHistory/queries.ts:136Order Details
Order Details
Needs data: Needs an order linked to the QA account
(app)/orders/[id]Order Details
One order: status, timeline, items, totals, stamps, tracking, review, reorder
src/app/(app)/orders/[id].tsxEntry
- Orders list card
- Order confirmation View Order Details
- Push tap on order_confirmation
- Inbox row tap, order or payment
Exits
- Back → Orders list
- Track parcel → in-app browser
- Mark as received → confirm alert
- Rate & Review → first item product page
- Reorder → Bag
- Polling timeout → Orders or Home
States · 21
src/features/orders/components/detail/order-detail.tsx:120src/features/orders/hooks/use-convex-orders.ts:380src/features/orders/components/detail/order-detail.tsx:209src/features/orders/components/detail/order-detail.tsx:248src/features/orders/components/detail/order-detail.tsx:278src/features/orders/components/detail/order-detail.tsx:363src/features/orders/components/detail/order-detail.tsx:134src/features/orders/components/detail/_internal/compact-timeline.tsx:135src/features/orders/components/detail/_internal/compact-timeline.tsx:135src/features/orders/components/detail/order-detail.tsx:321src/features/orders/components/detail/_internal/stamp-row.tsx:20src/features/orders/components/detail/_internal/stamp-row.tsx:20src/features/orders/components/detail/_internal/stamp-row.tsx:20src/features/orders/components/detail/_internal/stamp-row.tsx:20src/features/orders/components/detail/_internal/stamp-row.tsx:20src/features/orders/components/detail/_internal/stamp-row.tsx:45src/features/orders/components/detail/order-detail.tsx:412src/features/orders/components/detail/order-detail.tsx:432src/features/orders/components/detail/order-detail.tsx:509src/features/orders/components/detail/order-detail.tsx:560src/features/orders/components/detail/order-detail.tsx:481Captured states
Order alerts
Order alerts
Needs data: Needs a shipped order with tracking, or a reorderable order
OrderAlertsOrder alerts
Native alerts for mark received and reorder results
src/features/orders/hooks/use-mark-received.tsEntry
- Tracking card Mark as received
- Order card or detail Reorder
Exits
- Mark received → order becomes Delivered
- Reorder ok → Bag
- View Cart → Bag
States · 7
src/features/orders/hooks/use-mark-received.ts:23packages/backend/convex/orderHistory/mutations.ts:100packages/backend/convex/orderHistory/mutations.ts:105src/features/orders/hooks/use-reorder.ts:34packages/backend/convex/orderHistory/mutations.ts:143packages/backend/convex/orderHistory/mutations.ts:165packages/backend/convex/orderHistory/mutations.ts:203
















































