From e239c4a349e0eee9de04fd7692cd7a2885b2c6ec Mon Sep 17 00:00:00 2001 From: Kevin Tran Date: Thu, 19 Feb 2026 10:40:11 -0600 Subject: [PATCH] feat: inventory management by location feature --- .../Components/Layout/NavMenu.razor | 45 +- CulinaryCommandApp/Data/AppDbContext.cs | 15 + .../Inventory/DTOs/CreateIngredientDTO.cs | 5 +- .../Inventory/DTOs/InventoryItemDTO.cs | 3 + .../Inventory/Entities/Ingredient.cs | 10 +- .../Pages/Inventory/InventoryManagement.razor | 212 ++-- .../Interfaces/IInventoryManagementService.cs | 2 + .../Services/InventoryManagementService.cs | 44 +- ...AddIngredientLocationAndVendor.Designer.cs | 1048 +++++++++++++++++ ...19154948_AddIngredientLocationAndVendor.cs | 116 ++ .../Migrations/AppDbContextModelSnapshot.cs | 25 + 11 files changed, 1441 insertions(+), 84 deletions(-) create mode 100644 CulinaryCommandApp/Migrations/20260219154948_AddIngredientLocationAndVendor.Designer.cs create mode 100644 CulinaryCommandApp/Migrations/20260219154948_AddIngredientLocationAndVendor.cs diff --git a/CulinaryCommandApp/Components/Layout/NavMenu.razor b/CulinaryCommandApp/Components/Layout/NavMenu.razor index 3d64bda..aa90786 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 - -