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
  <input type="email"> 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 <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-02-28 23:00:13 -05:00
co-authored by Claude Happy
parent 2dcb5c48c8
commit 773fc6a349
3 changed files with 44 additions and 3 deletions
+1 -1
View File
@@ -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="<script>window.addEventListener('load',function(){var c=document.querySelector('canvas');if(c){c.style.touchAction='auto';}var m=document.querySelector('meta[name=viewport]');if(m){m.setAttribute('content','width=device-width,initial-scale=1.0,user-scalable=yes,maximum-scale=5.0');}else{var t=document.createElement('meta');t.name='viewport';t.content='width=device-width,initial-scale=1.0,user-scalable=yes,maximum-scale=5.0';document.head.appendChild(t);}});</script>"
html/head_include="<script>(function(){function tag(n){if(n.tagName==='INPUT'){if(n.type==='email')n.setAttribute('autocomplete','username');if(n.type==='password')n.setAttribute('autocomplete','current-password');}var kids=n.querySelectorAll&&n.querySelectorAll('input[type=email],input[type=password]');if(kids)kids.forEach(tag);}new MutationObserver(function(ms){ms.forEach(function(m){m.addedNodes.forEach(function(n){if(n.nodeType===1)tag(n);});});}).observe(document.documentElement,{childList:true,subtree:true});window.addEventListener('load',function(){var c=document.querySelector('canvas');if(c)c.style.touchAction='auto';var mv=document.querySelector('meta[name=viewport]');if(mv)mv.setAttribute('content','width=device-width,initial-scale=1.0,user-scalable=yes,maximum-scale=5.0');else{var t=document.createElement('meta');t.name='viewport';t.content='width=device-width,initial-scale=1.0,user-scalable=yes,maximum-scale=5.0';document.head.appendChild(t);};});})();</script>"
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=true