From 15f9b0c9a83c41d118d1a3151431cb8d61df4184 Mon Sep 17 00:00:00 2001 From: dingo Date: Wed, 22 Apr 2026 08:40:01 -0400 Subject: [PATCH] fix(ability-builder): add Condition palette button in canvas mode The Conditions node only renders when count > 0, so there was no way to add the first condition from the canvas. The "Add Node" palette now has a Condition button that adds a blank ConditionDraft, lays out the node, and auto-selects it so the inspector opens immediately for editing. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .../SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor b/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor index e79734a..b8ce6c6 100644 --- a/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor +++ b/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor @@ -955,10 +955,14 @@ @onclick="() => { fabpal.Costs.Add(new CostDraft()); AutoLayoutAbility(_focusedAbility); Compile(); }"> Cost Entry - + }