From e103937e21c8e8cf4db77e3ac1f1e5cd7b454792 Mon Sep 17 00:00:00 2001 From: tegwick Date: Thu, 30 Jul 2026 16:46:31 +0200 Subject: [PATCH] fix(control-plane): bridge whynot-design forms into native submission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wn-input/wn-select/wn-button aren't form-associated custom elements — their real // live inside shadow DOM, invisible to an ancestor . Clicking Sign In (or any wn-button[type=submit]) silently did nothing, and even a submitted form would have carried none of the field values. Bridges both gaps generically in base.html without touching the vendored library: mirrors each shadow-DOM control's live value into a hidden native input on submit, and explicitly calls form.requestSubmit() on wn-button[type=submit] clicks. Reported by the user clicking Sign In in the running local instance — missed by test_control_plane_app.py because TestClient POSTs directly and never exercises real button clicks or shadow DOM. Co-Authored-By: Claude Sonnet 5 --- .../service/control_plane_templates/base.html | 42 +++++++++++++++++++ tests/test_control_plane_app.py | 16 +++++++ 2 files changed, 58 insertions(+) diff --git a/src/target_revenue/service/control_plane_templates/base.html b/src/target_revenue/service/control_plane_templates/base.html index d2919fb..f24043a 100644 --- a/src/target_revenue/service/control_plane_templates/base.html +++ b/src/target_revenue/service/control_plane_templates/base.html @@ -50,5 +50,47 @@ Visual language vendored from whynot-design — see static/whynot-design/VENDORED.md.
whynot-design
static/whynot-design/VENDORED.md