Skip to content

Expose structured fallback diagnostics#115

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-113-fallback-diagnostics
May 30, 2026
Merged

Expose structured fallback diagnostics#115
chubes4 merged 1 commit into
mainfrom
fix/issue-113-fallback-diagnostics

Conversation

@chubes4
Copy link
Copy Markdown
Owner

@chubes4 chubes4 commented May 30, 2026

Summary

  • Adds generic fallback_diagnostics entries to HTML conversion reports so callers can inspect unsupported fragments without parsing serialized block comments.
  • Enriches fallback events with reason code, source tag, useful attributes/classes, byte preview, and generated block type.
  • Covers iframe, form, and custom-element fallback diagnostics in conversion tests.

Fixes #113

Tests

  • homeboy test --path /Users/chubes/Developer/block-format-bridge@fix-issue-113-fallback-diagnostics --extension wordpress --skip-lint -- tests/BFBConversionUnitTest.php --filter '/fallback|diagnostic/i'
  • homeboy lint --path /Users/chubes/Developer/block-format-bridge@fix-issue-113-fallback-diagnostics --extension wordpress

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the diagnostics implementation and targeted tests; Chris remains responsible for review and merge.

@chubes4 chubes4 merged commit 9fa27ce into main May 30, 2026
4 checks passed
@chubes4 chubes4 deleted the fix/issue-113-fallback-diagnostics branch May 30, 2026 21:54
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.

Expose structured fallback diagnostics from HTML-to-block conversion

1 participant