Fix order history to use OrderManager trait via ServiceProvider #15
Labels
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/projectmycelium_marketplace#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The order history page is completely empty. Order-related handlers bypass ServiceProvider and use fixture-based order services.
Affected Areas
Current State
The hero
OrderManagerimplementation exists atsrc/services/impl_hero/order_manager.rs(297 lines) with full CRUD via hero_osis network domain. The seed script creates 6 orders with various statuses (pending, confirmed, completed, cancelled).Solution
services.orders.*callsservices.orders.get_orders(&user_id)services.orders.get_order(&order_id)services.orders.create_order()Acceptance Criteria
Dependencies
Order handlers fully use services.orders.* and services.cart.* — no fixture bypasses.
Reopened — remaining work
Remaining bypasses in order.rs:
CurrencyService::new()(utility, keep)These are pure exchange-rate conversions for price display — no trait needed. May close if we classify CurrencyService as legitimate utility.
archived repo, closing