From 773fc6a3497eae9186e1a11399b7ebc0d7b9beff Mon Sep 17 00:00:00 2001 From: dingo Date: Sat, 28 Feb 2026 23:00:13 -0500 Subject: [PATCH] admin/client: fix deck editor concurrency, live search, iOS autofill PrebuiltDeckEditor.razor: - Add Db.ChangeTracker.Clear() at OnInitializedAsync start to prevent stale Deleted/Modified entities from prior circuit pages causing DbUpdateConcurrencyException on save - Replace @bind + button-only search with @oninput + 300ms debounce for both card and arch-spirit search inputs (results appear as you type; search button retained as manual fallback) - Clearing the input immediately clears previous results LoginScreen.tscn: - Set virtual_keyboard_type = 5 (EMAIL_ADDRESS) on EmailInput and RegEmailInput so Godot's experimental virtual keyboard creates instead of type="text" on mobile/web export_presets.cfg: - Extend head_include with a MutationObserver that watches for virtual keyboard INPUT elements and sets autocomplete="username" on email inputs and autocomplete="current-password" on password inputs, enabling iOS Face ID / Touch ID password vault autofill Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- Client/origin-client/export_presets.cfg | 2 +- .../scenes/login/LoginScreen.tscn | 2 + .../Pages/Bazaar/PrebuiltDeckEditor.razor | 43 ++++++++++++++++++- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/Client/origin-client/export_presets.cfg b/Client/origin-client/export_presets.cfg index c3e7af9..1173880 100644 --- a/Client/origin-client/export_presets.cfg +++ b/Client/origin-client/export_presets.cfg @@ -28,7 +28,7 @@ vram_texture_compression/for_desktop=true vram_texture_compression/for_mobile=true html/export_icon=true html/custom_html_shell="" -html/head_include="" +html/head_include="" html/canvas_resize_policy=2 html/focus_canvas_on_start=true html/experimental_virtual_keyboard=true diff --git a/Client/origin-client/scenes/login/LoginScreen.tscn b/Client/origin-client/scenes/login/LoginScreen.tscn index be0ef07..9366b65 100644 --- a/Client/origin-client/scenes/login/LoginScreen.tscn +++ b/Client/origin-client/scenes/login/LoginScreen.tscn @@ -77,6 +77,7 @@ unique_name_in_owner = true layout_mode = 2 custom_minimum_size = Vector2(0, 44) placeholder_text = "your@email.com" +virtual_keyboard_type = 5 theme_override_font_sizes/font_size = 15 [node name="PasswordLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Login"] @@ -115,6 +116,7 @@ unique_name_in_owner = true layout_mode = 2 custom_minimum_size = Vector2(0, 44) placeholder_text = "your@email.com" +virtual_keyboard_type = 5 theme_override_font_sizes/font_size = 15 [node name="RegPasswordLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Register"] diff --git a/Server/src/SOR.Admin/Components/Pages/Bazaar/PrebuiltDeckEditor.razor b/Server/src/SOR.Admin/Components/Pages/Bazaar/PrebuiltDeckEditor.razor index 8816f6e..82e7412 100644 --- a/Server/src/SOR.Admin/Components/Pages/Bazaar/PrebuiltDeckEditor.razor +++ b/Server/src/SOR.Admin/Components/Pages/Bazaar/PrebuiltDeckEditor.razor @@ -121,7 +121,8 @@ else }
-