v14 was created by restoring v12
Now I have everything I need. Let me set up tasks and build.
Task 1 — Update Sidebar + page.tsx for MAM persona
Now update page.tsx to add MAM persona:
Task 2 — MAMSidebar
Task 3 — SelloutAnalysis
Task 4 — Commission view
Task 5 — ImportFile (4-step flow)
Task 6 — ValidationReport, ChainSettings, MAMShell
Now the MAMShell — the root that wires everything together:
The full V1 Major Account Manager module is complete. The persona switcher in the main Sidebar now includes "Major Account" which loads the MAMShell — a 220px dedicated sidebar with chain selector (Sobeys/Purity Life), banner sub-filter, period navigation (← Oct 2024 →), status line, and commission footer. All 5 views are wired: Sell-out Analysis (grouped by-store/by-SKU table with expand/collapse, summary strip, and grand total row), Commission (earned vs. chain-reported, variance detection, SKU detail table with purple-ruled insight block, and history), Import File (4-step flow with simulated validation checks appearing sequentially), Validation Report (quality score strip and expandable check detail), and Chain Settings (commission rates, saved column map, file format notes).