diff --git a/.ai_agency/memory/backlog.json b/.ai_agency/memory/backlog.json index e889415..0f264dd 100644 --- a/.ai_agency/memory/backlog.json +++ b/.ai_agency/memory/backlog.json @@ -534,14 +534,71 @@ "sub_steps": [ { "index": 1, "name": "build_admin_order_modal", "description": "Build AdminOrderModal with tracking editor, status changer, and invoice printer in Orders.tsx", "status": "done" } ] + }, + { + "id": "EPIC-15-TASK-01", + "title": "Refill & Payment Method State Mapping Persistence", + "description": "Map isRefill and paymentMethod in cartStore.ts addOrder and setOrders so refill status is preserved across application and backend syncing.", + "architectural_layer": "state_management", + "assigned_role": "06_dev_frontend", + "priority": "HIGH", + "status": "completed", + "max_files_allowed": 3, + "estimated_minutes": 15, + "dependency_task_ids": ["EPIC-14-TASK-02"], + "acceptance_criteria": [ + "حفظ و نگهداری وضعیت isRefill در تمامی سفارشات دریافت شده از بکاند", + "نمایش دقیق تخفیف تمدید ۵٪ در محاسبات سبد خرید" + ], + "sub_steps": [ + { "index": 1, "name": "map_refill_in_cart_store", "description": "Map isRefill and paymentMethod in cartStore addOrder and setOrders", "status": "done" } + ] + }, + { + "id": "EPIC-15-TASK-02", + "title": "Refill UX & Loyalty Program Clarification", + "description": "Improve description and tooltip for Refill subscription in CheckoutPage.tsx explaining that Refill is a free loyalty subscription program providing automated re-orders and 5% lifetime discounts.", + "architectural_layer": "presentation_ui", + "assigned_role": "06_dev_frontend", + "priority": "HIGH", + "status": "completed", + "max_files_allowed": 2, + "estimated_minutes": 15, + "dependency_task_ids": ["EPIC-15-TASK-01"], + "acceptance_criteria": [ + "توضیح واضح و شفاف کارکرد سرویس تمدید خودکار (برنامه وفاداری رایگان با ۵٪ تخفیف دائم)", + "رفع ابهام کاربر در خصوص عدم وجود هزینه پنهان یا اضافی برای سرویس تمدید" + ], + "sub_steps": [ + { "index": 1, "name": "clarify_refill_ux", "description": "Update Refill section text and tooltips in CheckoutPage.tsx", "status": "done" } + ] + }, + { + "id": "EPIC-15-TASK-03", + "title": "Full-Stack Refill Badge & Discount Breakdown Display", + "description": "Render Refill badge and explicit 5% discount line item across Checkout, OrderSuccess, UserDashboard, OrderDetailsModal, and Admin Panel Orders.", + "architectural_layer": "presentation_ui", + "assigned_role": "06_dev_frontend", + "priority": "HIGH", + "status": "completed", + "max_files_allowed": 5, + "estimated_minutes": 25, + "dependency_task_ids": ["EPIC-15-TASK-02"], + "acceptance_criteria": [ + "نمایش نشان اختصاصی «تمدید خودکار ۵٪-» در تمام مدالها، لیستها، فاکتورها و پنل مدیریت ادمین", + "نمایش خط ردیف شفاف «تخفیف تمدید خودکار (۵٪)» در فاکتور نهایی" + ], + "sub_steps": [ + { "index": 1, "name": "render_refill_badges_and_discounts", "description": "Add Refill badge and discount row in OrderSuccess, UserDashboard, OrderDetailsModal, and Admin Orders", "status": "done" } + ] } ], "metadata": { - "total": 27, - "completed": 27, + "total": 30, + "completed": 30, "in_progress": 0, "pending": 0, - "generated_at": "2026-07-27T11:30:00Z", - "decomposition_pass": 12 + "generated_at": "2026-07-27T11:40:00Z", + "decomposition_pass": 13 } } \ No newline at end of file diff --git a/.ai_agency/memory/state.json b/.ai_agency/memory/state.json index 3685a8d..0fff34c 100644 --- a/.ai_agency/memory/state.json +++ b/.ai_agency/memory/state.json @@ -7,12 +7,12 @@ "status": "COMPLETE", "checkpoint": { "active_agent": "01_auditor", - "current_ticket_id": "EPIC-14-TASK-02", + "current_ticket_id": "EPIC-15-TASK-03", "sub_step": { "index": 1, "total": 1, - "name": "build_admin_order_modal", - "description": "Admin panel order management overhaul, modal, tracking editor, status selector, and print invoice complete and 100% verified" + "name": "render_refill_badges_and_discounts", + "description": "Refill loyalty subscription logic, 5% discount explanation, and full-stack badge persistence complete and 100% verified" } }, "review_phase": { diff --git a/frontend/admin-panel/src/pages/Orders.tsx b/frontend/admin-panel/src/pages/Orders.tsx index 3053889..f33d25a 100644 --- a/frontend/admin-panel/src/pages/Orders.tsx +++ b/frontend/admin-panel/src/pages/Orders.tsx @@ -369,7 +369,12 @@ export default function Orders() { return (
۵٪ تخفیف روی تمام فاکتور + ارسال اولویتدار
-ویژه اعضا - محاسبه هوشمند دوره مصرف و یادآوری پیامکی قبل از اتمام
+۵٪ تخفیف ویژه روی کل فاکتور + ارسال اولویتدار
+برنامه رایگان وفاداری - بدون هیچ هزینه اضافی؛ یادآوری و تمدید هوشمند قبل از اتمام مکمل پت شما
قبل از اتمام مکمل، یادآوری و ارسال بعدی به صورت هوشمند برای شما هماهنگ خواهد شد.
+