Overhaul extraction pipeline with new TradeItem model, conversation flow, and dedicated extraction endpoint. Add sidebar navigation with NavMenu component and landing page. Introduce few-shot prompting service and tests. Add prompt settings and email upload specs. Update OpenSpec tooling with improved export-spec and extract-feature commands. Archive completed changes and export full specs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB
1. MainLayout: Add Drawer and Hamburger Toggle
- 1.1 Add a
_drawerOpenbool field (defaulttrue) and aToggleDrawermethod to MainLayout.razor - 1.2 Add a
MudIconButtonwithIcons.Material.Filled.Menuas the first element in the MudAppBar, wired toToggleDrawer - 1.3 Add a
MudDrawerwithOpen="@_drawerOpen",ClipMode="DrawerClipMode.Always",Elevation="2"inside the MudLayout, before MudMainContent - 1.4 Reference
<NavMenu />inside the MudDrawer
2. NavMenu Component
- 2.1 Create
Layout/NavMenu.razorwith aMudNavMenucontaining a singleMudNavLink— text "Sales Assistant", iconIcons.Material.Filled.SmartToy, href/sales-assistant - 2.2 Add inline tutorial comments explaining MudNavMenu, MudNavLink, and how href-based navigation works in Blazor
3. Chat Page Route Change
- 3.1 Change
Chat.razorroute from@page "/"to@page "/sales-assistant" - 3.2 Update the page title from "Chat Agent" to "Sales Assistant"
4. Root Redirect
- 4.1 Create a
Pages/Index.razorcomponent at@page "/"that redirects to/sales-assistanton initialization usingNavigationManager.NavigateTo(Home.razor already exists as health check page at /health)
5. Chat Container Height Adjustment
- 5.1 Verify
Chat.razor.cssheight calc still works with the drawer layout — Dense AppBar is 48px, drawer does not affect vertical space. Adjust if needed.
6. Verification
- 6.1 Build the client project (
dotnet build) and confirm no compilation errors - 6.2 Run existing tests (
dotnet test) and confirm they pass