Commit af2e99f
remove unnecessary guarding code (#2160)
* refactor(report): require data-group-id on dump elements, remove backward compat
Drop `buildPlaywrightTaskFromElement` and the ungrouped fallback path.
All `<script type="midscene_web_dump">` elements must now have a
`data-group-id` attribute; missing it throws an error at parse time.
https://claude.ai/code/session_017ir8y83LbmEhoMgshK3zzH
* refactor(report): remove unreachable fallback and try-catch in grouped dump parsing
The `elements` array from groupMap is guaranteed non-empty, so `baseDump`
is always assigned after the loop — remove the dead else branch. Also
remove the try-catch that silently swallowed parse errors with an empty
GroupedActionDump; errors should propagate to the caller.
https://claude.ai/code/session_017ir8y83LbmEhoMgshK3zzH
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9cbac80 commit af2e99f
1 file changed
+21
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
391 | 388 | | |
| 389 | + | |
| 390 | + | |
392 | 391 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 392 | + | |
| 393 | + | |
404 | 394 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
421 | 398 | | |
422 | 399 | | |
423 | 400 | | |
| |||
0 commit comments