From 859e5784e6898ad31a09c8046778d9c8ac7cef94 Mon Sep 17 00:00:00 2001 From: Anthony Phan <131195703+antphan12@users.noreply.github.com> Date: Wed, 11 Mar 2026 13:09:40 -0500 Subject: [PATCH 1/6] Authentication Error Fix --- CulinaryCommandApp/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CulinaryCommandApp/Program.cs b/CulinaryCommandApp/Program.cs index eee80e5..884e58f 100644 --- a/CulinaryCommandApp/Program.cs +++ b/CulinaryCommandApp/Program.cs @@ -48,6 +48,11 @@ .AddCookie() .AddOpenIdConnect(options => { + options.CorrelationCookie.SameSite = SameSiteMode.None; + options.CorrelationCookie.SecurePolicy = CookieSecurePolicy.SameAsRequest; + options.NonceCookie.SameSite = SameSiteMode.None; + options.NonceCookie.SecurePolicy = CookieSecurePolicy.SameAsRequest; + options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme; // ---- Read Cognito config (env/appsettings) ---- From 18f687ea068de642bb55adfa25de62cd97ba6d41 Mon Sep 17 00:00:00 2001 From: Anthony Phan <131195703+antphan12@users.noreply.github.com> Date: Mon, 23 Mar 2026 10:34:49 -0500 Subject: [PATCH 2/6] Add Inventory Config tab and unit manager Introduce an Inventory Config tab in Settings and add a new SettingsInventoryConfigurations component to manage units of measurement. The new component provides a form for creating/updating units (with validation), a table listing existing units, and delete confirmation modal. Access is restricted to Admin/Manager roles via IUserContextService; it uses IUnitService for CRUD operations and handles loading, save/delete states and basic error feedback. Settings.razor was updated to include the nav item and route case to render the new component. --- .../Pages/UserSettings/Settings.razor | 10 + .../SettingsInventoryConfigurations.razor | 321 ++++++++++++++++++ 2 files changed, 331 insertions(+) create mode 100644 CulinaryCommandApp/Components/Pages/UserSettings/SettingsInventoryConfigurations.razor diff --git a/CulinaryCommandApp/Components/Pages/UserSettings/Settings.razor b/CulinaryCommandApp/Components/Pages/UserSettings/Settings.razor index 46cdc20..bfc9b14 100644 --- a/CulinaryCommandApp/Components/Pages/UserSettings/Settings.razor +++ b/CulinaryCommandApp/Components/Pages/UserSettings/Settings.razor @@ -57,6 +57,12 @@ Company +
Define standard units for ingredients and recipes in your kitchen
+ +Units that have been set and are usable across ingredients and recipes
+ + @if (!_units.Any()) + { +| Unit Name | +Abbreviation | +Conv. Factor | +Actions | +
|---|---|---|---|
| @unit.Name | +@unit.Abbreviation | +@unit.ConversionFactor | ++ + + | +
Define standard units for ingredients and recipes in your kitchen
@@ -54,11 +47,11 @@