Skip to content

Prove native draft form submission - #109

Draft
pournasserian wants to merge 5 commits into
mainfrom
75-form-integration
Draft

pournasserian wants to merge 5 commits into
mainfrom
75-form-integration

Conversation

@pournasserian

@pournasserian pournasserian commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Draft: landed controls only

Adds the form-post gallery and native form guide. The named EditForm uses real controls, antiforgery, typed receiving properties and DataAnnotationsValidator. It is an in-memory sample, not a settings endpoint. No library, dependency or runtime script changes.

Do not merge yet. The checkbox, radio group and switch integration requires #72 to land. Its human listening check is independent. The public draft uses only merged controls; the complete fixture has only been prepared and tested in an isolated replay.

Verified on public head 69bc5c7

This head merges main 1ce93f664ef599df1700ecb6ad186bb73e2cbe3b and preserves the main library unchanged. The workflow now commits Start before editing End, checks the untouched sibling and the bound date/time readout, and verifies the reversed and corrected model values separately from the visible input strings. Server and WASM wait for the real EditContext field notifications. The host still rejects browser-valid 18 seats and reversed dates. The range error belongs once to the Delivery window group, ahead of the de-duplicated help and policy; the native payload, receiver, disabled-field and retention assertions stay in place.

Isolated Release build and the parsing-boundary bUnit case passed. Windows Chromium passed all 12 FormPost cases; Firefox passed the five workflow/first-DOM cases. Windows WebKit passed the static POST and two first-DOM cases; both interactive rows failed on the missing Start notification (3 passed, 2 failed, no skips).

Windows Playwright WebKit is not Safari. The two temporal types fall back to text on this build. Actual blur produced a native change and retained the typed date in the DOM, but .NET 10 Blazor reported Invalid element type 'text'. before the bound value changed. In fresh Server and WASM sessions, framework InputDate<DateOnly?> and FlDateInput showed the same error and kept the same original model date. This is not a render erasing the text. No engine-name skips, type mutation, event shim or stale values posing as successful edits. JavaScript-disabled document POSTs remain valid, and native-capable Chromium/Firefox and Linux WebKit are the authoritative workflow engines; final Linux coverage is pending.

Isolated #72 handoff, not in this PR

Local mixed base 3a2885727cf35e72c24a9ab3215154e5f7b1433b joins public 69bc5c7 and #72 c6e570d395cc5c98b8761c7d593e0ba6b2fed89f. The four-file #75-only patch SHA-256 is 3A73D4ACAA40188676710DCBA10E2B8CD85B5D79F84507B45DB2D31317C3B85E. A fresh clone passed git apply --check and plain git apply and regenerated the identical patch. Release build, parsing-boundary bUnit and guide lint passed. Windows Chromium and Firefox each passed all 12 FormPost cases. Windows WebKit passed 10 of 12, including the static POST and both first-DOM cases; the two interactive rows failed on the missing Start notification as reported above. No skips.

On the replay, two real JS-disabled HTTP 200 POSTs in each of the three Windows engines sent exactly one Model.NotifyOwners=true, Model.Audience=everyone and Model.ReviewMode=shared, omitted the unchecked and disabled values, and returned the reversed/corrected date models and correct group associations. This does not claim that Windows WebKit's interactive temporal edits passed. After #72 lands, apply only the #75 patch to the actual main-based branch, rerun verification, and obtain fresh full hosted Linux checks before review.

The earlier replay on 17db2fd5 and its old patch SHA-256 4F8C8C2C4A8611DB7E483A08A75C40DA0903D2A4C0CCCF7B235A06DCDBB0B905 remain separate evidence (Chromium 12/12, coordinator Firefox 12/12, Windows WebKit 10/12).

Historical failure proof

The three mutations below were verified at 635b1e32112c0c2e528c72d226732d85950536c3, not on the new head. The unchanged native POST test ran with JavaScript off in separate detached snapshots and reached the real antiforgery-bearing HTTP response. Each exited 2 with exactly one failure. Nothing was pushed from these snapshots.

Isolated change Actual failed assertion
Post the title under Model.WrongTitle. Expected exactly one submitted value for Model.Title; received 0.
Keep the window error text but drop its ID from the group description. Expected integration-start__error integration-start__help integration-window-policy, got integration-start__help integration-window-policy.
Detach the editable second tag from the form. Expected exactly one submitted value for Model.Tags[1]; received 0.

Closes #75

@pournasserian pournasserian left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial coordinator review of 635b1e3: named receiver, flat/nested/indexed field payloads, correction/retention, and the three controlled failure proofs are supported by the fixture and logs. The draft intentionally does not yet include all actual C1 choice controls. Re-review on updated main and final real POST/Server/WASM evidence after #72 and #73 integrate; this is not final acceptance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C-23: Prove binding, validation and static form POST across the C1 inputs

1 participant