fix(pets): persist supplement consumptions array in usePetStore and update target pet on checkout
This commit is contained in:
1 parent
5be2b9693d
commit
a0145ffd9a
4 files changed
+68
-44
No files matched your search
@@ -399,14 +399,33 @@
|
||||
{ "index": 2, "name": "implement_wallet_deduction_in_orders_service", "description": "Deduct user walletBalance and create WalletTransaction in OrdersService.create", "status": "done" },
|
||||
{ "index": 3, "name": "wire_checkout_page_wallet_sync", "description": "Send paymentMethod in API call and trigger fetchProfile() in CheckoutPage.tsx", "status": "done" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "EPIC-11-TASK-01",
|
||||
"title": "Pet Supplement Consumption Tracking & Depletion Monitor Fix",
|
||||
"description": "Ensure updatePet and setPets in usePetStore update and preserve pet consumptions array locally upon order placement so AI depletion monitor displays remaining supplement levels for active pets.",
|
||||
"architectural_layer": "state_management",
|
||||
"assigned_role": "06_dev_frontend",
|
||||
"priority": "HIGH",
|
||||
"status": "completed",
|
||||
"max_files_allowed": 4,
|
||||
"estimated_minutes": 20,
|
||||
"dependency_task_ids": ["EPIC-10-TASK-01"],
|
||||
"acceptance_criteria": [
|
||||
"ثبت واقعی میزان مکملهای خریدهشده در پایش موجودی پت (usePetStore)",
|
||||
"نمایش لحظهای مکملهای خریدهشده، درصد باقیمانده و تخمین اتمام مصرف پت در پروفایل"
|
||||
],
|
||||
"sub_steps": [
|
||||
{ "index": 1, "name": "update_pet_store_consumptions_persistence", "description": "Always update local pets array in updatePet and preserve consumptions in setPets", "status": "done" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"total": 20,
|
||||
"completed": 20,
|
||||
"total": 21,
|
||||
"completed": 21,
|
||||
"in_progress": 0,
|
||||
"pending": 0,
|
||||
"generated_at": "2026-07-26T20:40:00Z",
|
||||
"decomposition_pass": 8
|
||||
"generated_at": "2026-07-26T20:45:00Z",
|
||||
"decomposition_pass": 9
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user