From 8be0f549c8e961f728b00311f559e2476b3ac351 Mon Sep 17 00:00:00 2001 From: Monster0506 Date: Sun, 20 Sep 2026 05:18:32 -0400 Subject: [PATCH] Add missing @rendermode InteractiveServer to /inventory Inventory.razor was the only routable page in the app without @rendermode InteractiveServer, so visiting /inventory directly served it as static-only SSR with no interactive circuit. Every @onclick/@bind handler in the embedded InventoryList (Add, Remove, inline edit, expand item detail, revalue) was dead: native DOM change/blur events fired fine, but nothing reached the server, so the "Add" button's disabled state (bound to _newName) never updated no matter what was typed. Found via real end-to-end browser testing (Puppeteer) rather than the existing bUnit test, which invokes the change handler programmatically and so never exercises real event dispatch/interactivity wiring - it passed throughout and gave no signal that this was broken. Verified fix: after adding the render mode, the same Puppeteer script (real typing + real blur/click, no direct method invocation) is able to type a name/category, has the Add button become enabled, click it, and see the item appear with an AI-estimated value and updated total. --- Features/PhysicalAssets/Inventory.razor | 1 + 1 file changed, 1 insertion(+) diff --git a/Features/PhysicalAssets/Inventory.razor b/Features/PhysicalAssets/Inventory.razor index 21be4da..77c65dd 100644 --- a/Features/PhysicalAssets/Inventory.razor +++ b/Features/PhysicalAssets/Inventory.razor @@ -1,4 +1,5 @@ @page "/inventory" +@rendermode InteractiveServer Inventory