From 383ef1631ecea1929960f923449d92e17bc5da96 Mon Sep 17 00:00:00 2001 From: Kevin Tran Date: Thu, 19 Feb 2026 10:59:28 -0600 Subject: [PATCH 1/3] feat: inventory management by location feature --- .../Components/Layout/NavMenu.razor | 47 +++- CulinaryCommandApp/Data/AppDbContext.cs | 15 ++ .../Inventory/DTOs/CreateIngredientDTO.cs | 5 +- .../Inventory/DTOs/InventoryItemDTO.cs | 3 + .../Inventory/Entities/Ingredient.cs | 10 +- .../Pages/Inventory/InventoryManagement.razor | 214 ++++++++++++------ .../Interfaces/IInventoryManagementService.cs | 2 + .../Services/InventoryManagementService.cs | 44 +++- 8 files changed, 254 insertions(+), 86 deletions(-) diff --git a/CulinaryCommandApp/Components/Layout/NavMenu.razor b/CulinaryCommandApp/Components/Layout/NavMenu.razor index 3d64bda..7cc76f7 100644 --- a/CulinaryCommandApp/Components/Layout/NavMenu.razor +++ b/CulinaryCommandApp/Components/Layout/NavMenu.razor @@ -5,6 +5,9 @@ @using CulinaryCommand.Components.Custom @using CulinaryCommand.Services @inject IUserContextService UserCtx +@inject LocationState LocationState +@inject NavigationManager Nav +@implements IDisposable @rendermode InteractiveServer @if (_role == "Admin") @@ -81,12 +85,6 @@ Ingredients - -