Files
GearBox/.planning/phases/33-currency-system/33-06-SUMMARY.md
2026-04-13 18:10:24 +02:00

32 lines
1.4 KiB
Markdown

# 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 data
- `src/client/routes/global-items/$globalItemId.tsx` — MarketPricesSection component
## Self-Check: PASSED
- [x] Global item detail has MarketPricesSection
- [x] User's market MSRP displayed prominently
- [x] Community stats displayed with report count
- [x] Other Markets collapsible section works
- [x] 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.