1.4 KiB
1.4 KiB
Plan 33-06 Summary
Status: Complete Completed: 2026-04-13
What Was Built
Market prices section on catalog detail page with user's market MSRP and community stats.
Key Changes
- Added useGlobalItemPrices and useGlobalItemCommunityStats hooks
- Added MarketPricesSection component to global item detail page
- User's market MSRP shown prominently with market label
- Community stats: "Community (EU): median (N reports)" format
- Collapsible "Other Markets" section with all other market prices and stats
- MCP tools left unchanged — existing priceCents responses work with currency context
Key Files Created/Modified
src/client/hooks/useGlobalItems.ts— New hooks for market/community datasrc/client/routes/global-items/$globalItemId.tsx— MarketPricesSection component
Self-Check: PASSED
- Global item detail has MarketPricesSection
- User's market MSRP displayed prominently
- Community stats displayed with report count
- Other Markets collapsible section works
- Build succeeds
Deviations
- ComparisonTable currency normalization deferred — requires runtime testing with actual multi-currency data to verify correctly. The hooks and utilities (convertClientPrice, useExchangeRates) are available for integration.
- MCP tool updates kept minimal — existing tools already return priceCents; new currency endpoints are accessible via standard HTTP.