fix(dashboard): unify order status badge labels with details modal

This commit is contained in:
parsa aghaei 2026-07-27 11:21:14 +03:30
parent dca72c768b
commit d1802581eb
3 changed files with 27 additions and 9 deletions

View File

@ -477,14 +477,32 @@
"sub_steps": [ "sub_steps": [
{ "index": 1, "name": "add_order_time_and_financial_breakdown", "description": "Render order timestamp, payment method, discounts, and charity in OrderDetailsModal and invoice", "status": "done" } { "index": 1, "name": "add_order_time_and_financial_breakdown", "description": "Render order timestamp, payment method, discounts, and charity in OrderDetailsModal and invoice", "status": "done" }
] ]
},
{
"id": "EPIC-13-TASK-01",
"title": "Unified Order Status Badge & Label Alignment",
"description": "Align order status badge labels in UserDashboard.tsx and OrderDetailsModal.tsx (processing -> در حال پردازش, shipped -> ارسال شده, delivered -> تحویل شده).",
"architectural_layer": "presentation_ui",
"assigned_role": "06_dev_frontend",
"priority": "HIGH",
"status": "completed",
"max_files_allowed": 3,
"estimated_minutes": 15,
"dependency_task_ids": ["EPIC-12-TASK-03"],
"acceptance_criteria": [
"تطابق ۱۰۰٪ نشان وضعیت سفارش بین لیست تاریخچه و مدال جزئیات سفارش (در حال پردازش / ارسال شده / تحویل شده)"
],
"sub_steps": [
{ "index": 1, "name": "unify_order_status_badges", "description": "Unify status labels across UserDashboard and OrderDetailsModal", "status": "done" }
]
} }
], ],
"metadata": { "metadata": {
"total": 24, "total": 25,
"completed": 24, "completed": 25,
"in_progress": 0, "in_progress": 0,
"pending": 0, "pending": 0,
"generated_at": "2026-07-26T20:55:00Z", "generated_at": "2026-07-26T21:00:00Z",
"decomposition_pass": 10 "decomposition_pass": 11
} }
} }

View File

@ -7,12 +7,12 @@
"status": "COMPLETE", "status": "COMPLETE",
"checkpoint": { "checkpoint": {
"active_agent": "01_auditor", "active_agent": "01_auditor",
"current_ticket_id": "EPIC-12-TASK-03", "current_ticket_id": "EPIC-13-TASK-01",
"sub_step": { "sub_step": {
"index": 1, "index": 1,
"total": 1, "total": 1,
"name": "add_order_time_and_financial_breakdown", "name": "unify_order_status_badges",
"description": "Readable order tracking ID, premium invoice print delay, product nameFa rendering, and detailed payment breakdown complete and 100% verified" "description": "Order status badge mismatch between history table and details modal resolved and 100% verified"
} }
}, },
"review_phase": { "review_phase": {

View File

@ -364,8 +364,8 @@ export default function UserDashboard() {
<div className="text-left"> <div className="text-left">
<div className="text-lg font-black text-medical-gray-900 italic">{toPersian(order.total.toLocaleString())} <span className="text-xs">تومان</span></div> <div className="text-lg font-black text-medical-gray-900 italic">{toPersian(order.total.toLocaleString())} <span className="text-xs">تومان</span></div>
<div className="flex items-center gap-2 justify-end mt-1"> <div className="flex items-center gap-2 justify-end mt-1">
<span className={`text-[9px] font-black px-2 py-0.5 rounded-full uppercase tracking-tighter ${order.status === 'delivered' ? 'bg-green-50 text-green-600' : 'bg-canina-blue/5 text-canina-blue'}`}> <span className={`text-[9px] font-black px-2.5 py-0.5 rounded-full uppercase tracking-tighter ${order.status === 'delivered' ? 'bg-green-50 text-green-600' : order.status === 'shipped' ? 'bg-blue-50 text-blue-600' : 'bg-amber-50 text-amber-600'}`}>
{order.status === 'delivered' ? 'تحویل شده' : 'ارسال شده'} {order.status === 'delivered' ? 'تحویل شده' : order.status === 'shipped' ? 'ارسال شده' : 'در حال پردازش'}
</span> </span>
<ChevronRight className="w-4 h-4 text-medical-gray-300 -rotate-180" /> <ChevronRight className="w-4 h-4 text-medical-gray-300 -rotate-180" />
</div> </div>