Skip to content

Implement order checkout submission flow#41

Draft
durasj wants to merge 3 commits intomainfrom
cursor/order-details-and-submission-c614
Draft

Implement order checkout submission flow#41
durasj wants to merge 3 commits intomainfrom
cursor/order-details-and-submission-c614

Conversation

@durasj
Copy link
Copy Markdown
Member

@durasj durasj commented Apr 5, 2026

Summary

  • extend order statuses to full tracking lifecycle:
    • new, confirmed, printed, packed, shipped, received, archived
  • add admin order management view with status updates directly in the orders table
  • add customer order tracking view in /orders and in account Orders tab
  • replace legacy admin order JSON editor with structured order detail view
  • add order-settings storage for admin notification recipients (configurable in order management)
  • send admin email notifications for new submitted orders
  • send customer email notifications on status changes
  • add reusable status badge component and unified status constants/types
  • add Drizzle migration for enum + new order-settings table

Data model and migration

  • updated order_status enum values in schema/validation
  • added order-settings table with adminNotificationEmails: text[]
  • migration file: drizzle/0006_same_nick_fury.sql

Notifications

  • admin new-order notifications:
    • recipient list configured in /orders (admin mode)
    • stored in order-settings.adminNotificationEmails
  • customer status-change notifications:
    • triggered when admin updates order status
  • added new email templates:
    • emails/order-new-admin.tsx
    • emails/order-status-customer.tsx
  • email sending utilities in:
    • src/emails/orders.ts

UI changes

  • /orders now supports:
    • admin mode: order table + status update action + recipient settings form
    • customer mode: only customer’s own submitted orders + status visibility
  • account /auth?tab=orders now shows customer order list with status badges
  • /orders/[id] now shows structured order detail card layout instead of raw JSON editor

Validation

  • npm run lint
  • npm run build
Open in Web Open in Cursor 

Co-authored-by: Jakub Duras <jakub@duras.me>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 5, 2026

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

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Apr 5, 2026 5:13pm

Request Review

Co-authored-by: Jakub Duras <jakub@duras.me>
Co-authored-by: Jakub Duras <jakub@duras.me>
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.

2 participants