Commit f561482
feat: Request.Form shim for Web Forms form POST migration (#532)
* feat: add Request.Form shim for Web Forms form POST migration
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: add Request.Form shim documentation
- Add Request.Form section to RequestShim.md with FormShim overview
- Document supported members: Form['key'], GetValues(), AllKeys, Count, ContainsKey()
- Include Blazor usage example with OnInitialized lifecycle
- Add 'Rendering Mode Behavior' table showing SSR vs interactive behavior
- Update 'Graceful Degradation' table to include Form column
- Enhance 'Migration Path' table with Request.Form and Form.GetValues() rows
- Expand 'Moving On' section with form binding and EditForm guidance
- Add complete before/after code example showing migration path
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat: add Request.Form sample page with migration demos
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: update Beast history with Request.Form shim documentation task
Record completion of Request.Form documentation work, including:
- FormShim API documentation in RequestShim.md
- Supported members table and examples
- Graceful degradation patterns (SSR vs interactive)
- Migration path guidance toward EditForm + @Bind
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test: add bUnit tests for Request.Form shim
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: update Rogue history with Form shim test session
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: update jubilee history with Request.Form sample page learnings
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test: add Playwright integration tests for Request.Form demo
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat: redesign Request.Form demo with working SSR form POST
The demo page now uses SSR mode with a real HTML form that submits
via HTTP POST. Request.Form values are read and displayed after
submission, proving the shim works end-to-end.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test: update Playwright tests for SSR form POST demo
Replaced interactive-mode tests with SSR-appropriate tests:
- Removed __doPostBack waits (SSR pages have no Blazor circuit)
- Updated data-audit-control selectors to match redesigned page
- Added end-to-end form POST test that fills fields and verifies results
- Replaced graceful-degradation test with initial-load-no-results test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: add @formname to SSR form for Blazor form mapping
Blazor SSR requires @formname on <form> elements so the middleware
can identify which form is being submitted on POST. Without it,
the POST is rejected with 'does not specify which form' error.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: use Expect assertion for redirect test to avoid CI timeouts
The Redirect_NavigatesToSessionPage test timed out on CI because
WaitForURLAsync relies on navigation lifecycle events which are slow
when Blazor Server routes through SignalR -> JS interop -> location.href.
Switch to Playwright's auto-retrying Expect(page).ToHaveURLAsync which
polls the URL property directly, with a 60s timeout for slow CI runners.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f9d249a commit f561482
File tree
14 files changed
+946
-21
lines changed- .squad/agents
- beast
- jubilee
- rogue
- docs/UtilityFeatures
- samples
- AfterBlazorServerSide.Tests
- Migration
- AfterBlazorServerSide
- Components
- Pages/ControlSamples/Migration
- src
- BlazorWebFormsComponents.Test/WebFormsPageBase
- BlazorWebFormsComponents
14 files changed
+946
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
348 | 360 | | |
349 | 361 | | |
350 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
46 | 99 | | |
47 | 100 | | |
48 | 101 | | |
49 | 102 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
54 | 107 | | |
55 | 108 | | |
56 | 109 | | |
| |||
130 | 183 | | |
131 | 184 | | |
132 | 185 | | |
| 186 | + | |
| 187 | + | |
133 | 188 | | |
134 | 189 | | |
135 | 190 | | |
| |||
138 | 193 | | |
139 | 194 | | |
140 | 195 | | |
141 | | - | |
142 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
143 | 199 | | |
144 | 200 | | |
145 | 201 | | |
146 | 202 | | |
147 | 203 | | |
148 | 204 | | |
| 205 | + | |
149 | 206 | | |
150 | 207 | | |
151 | 208 | | |
152 | 209 | | |
153 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
154 | 217 | | |
155 | 218 | | |
156 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
157 | 227 | | |
158 | 228 | | |
159 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
250 | 258 | | |
251 | 259 | | |
252 | 260 | | |
| |||
Lines changed: 171 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments