From 7acd225fad599fcd924379b4ee52fbb00ca20f15 Mon Sep 17 00:00:00 2001 From: adonis Date: Sun, 9 Aug 2026 12:00:18 +0330 Subject: [PATCH] Move settlement after invoice and wire real notification inbox. Submit orders without choosing payment first, route cash/check flows under /orders/:id, show status-based next actions, and connect the header bell to unread notifications. Co-authored-by: Cursor --- src/App.vue | 13 ++ src/components/layout/CheckoutStepper.vue | 6 +- src/components/layout/DesktopHeader.vue | 43 +++- .../orders/OrderTrackingSummary.vue | 9 +- src/composables/useCartPage.ts | 29 ++- src/router/index.ts | 61 ++--- src/stores/auth.ts | 3 + src/stores/notification.ts | 84 +++++++ src/stores/order.ts | 119 ++++++---- src/types/index.ts | 28 ++- src/views/cart/CartView.vue | 15 +- src/views/cart/components/DesktopCartPage.vue | 41 ++-- src/views/cart/components/MobileCartPage.vue | 14 +- src/views/checkout/CashSettlementView.vue | 132 +++++------ src/views/checkout/CheckFormView.vue | 8 +- src/views/checkout/CheckListView.vue | 68 +++--- src/views/checkout/CheckModeSelectView.vue | 20 +- src/views/checkout/SettlementTypeView.vue | 127 ++++++++-- src/views/orders/OrderDetailView.vue | 81 ++++++- src/views/orders/OrderSuccessView.vue | 8 +- .../profile/ProfileNotificationsView.vue | 216 ++++++++++++------ .../profile/components/DesktopProfilePage.vue | 2 +- .../profile/components/MobileProfilePage.vue | 11 + 23 files changed, 805 insertions(+), 333 deletions(-) create mode 100644 src/stores/notification.ts diff --git a/src/App.vue b/src/App.vue index 8556166..899ef21 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@