fix(forms): close completed drawers and restore portal styling

This commit is contained in:
DeCentN2Madness committed 2026-10-30 14:21:27 -07:00
1 parent e97f0ea9b4
commit 55adb79705
15 files changed
+598 -9

No files matched your search

@@ -57,3 +57,28 @@ The owner reports that Form A now has a `consultation` context with the required
The new routes require the separate `PUBLIC_AIA_FORMS_CONSULTATION_TEST_APPROVED=true` flag together with every isolated-test gate. They remain absent from normal staging, mock, indexing-enabled, production-gated and deployed artifacts. The existing seven Form A contact/landing production-eligible routes are unchanged.
The current decision supersedes the earlier plan for a conditional Autism Diagnostic Evaluation explanation. Do not display that note. The AIA client advocate will discuss evaluation options and coordination with qualified diagnostic providers in follow-up. Owner acceptance is still required for the actual dropdown's visibility, requiredness, choices, translations, conditional behavior, embedded submission/confirmation, error behavior and all nine route presentations.
## 2026-10-30 completion-message and language diagnostic addendum
The focused correction adds a narrow first-party completion listener only to
authorized consultation drawers. This explicitly supersedes any earlier blanket
no-message-listener description for that scope; it does not adopt Jotform's
resize handler or permit arbitrary origin messages. The support screenshot
documents `{ action: 'submission-completed', formID: '<form ID>' }`.
Exact origin, actual active iframe window, fixed Form A ID, open drawer and
idempotence are checked before acknowledgment/suppression and five-second closure.
No payload is logged, forwarded or used for analytics. Load is not success.
Owner acceptance **remains pending** for the provider's real envelope and origin,
EN/ES acknowledgment, thank-you visibility, full delay, focus restoration and
fresh-form reopening. Previous owner-reported direct/embedded acceptance is
preserved; it does not establish this newly added message contract.
The owner reports five English service choices but seven Spanish choices,
including General Question/Tour translations. Repository URL tests confirm fixed
consultation context and locale only; no service options originate in Astro.
Compare the direct hosted ES URL with the embedded result without submitting;
if both show seven choices, review Jotform multilingual translations and all
Update Options/show-hide conditions, including interaction with the inquiry
question. This is a Builder-boundary diagnosis, not an independently observed
Jotform configuration audit. No Jotform change is authorized or performed here.