Skip to content

Improve unsupported DisplayList content error diagnostics - #6

Merged
Kyle-Ye merged 1 commit into
mainfrom
codex/improve-content-error-diagnostics
Aug 6, 2026
Merged

Improve unsupported DisplayList content error diagnostics#6
Kyle-Ye merged 1 commit into
mainfrom
codex/improve-content-error-diagnostics

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • report the item identity and unsupported content head when conversion fails
  • suggest the supported kebab-case spelling for known camel-case variants
  • add regression coverage for platformView using DemoPlatformViewFactory

Why

DisplayList descriptions containing platformView previously failed with a generic content-seed error that hid the unsupported content name and the actionable spelling mismatch.

Impact

Users now see an actionable diagnostic such as:

Item identity 4 contains unsupported DisplayList content “platformView”. Did you mean “platform-view”?

Validation

  • swift test — 16 tests passed
  • filtered regression test rerun after the fixture rename — passed
  • npm test — 4 tests passed
  • SwiftWasm release build and Vite production preview build — passed

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Cloudflare Pages preview

Latest PR preview: https://pr-6.display-list-explorer.pages.dev

Commit Immutable snapshot
ecd495d Open snapshot

The PR URL always points to the latest deployment. Each commit snapshot is immutable.

@Kyle-Ye
Kyle-Ye marked this pull request as ready for review August 6, 2026 08:24
@Kyle-Ye
Kyle-Ye merged commit 139c4ed into main Aug 6, 2026
1 check passed
@Kyle-Ye
Kyle-Ye deleted the codex/improve-content-error-diagnostics branch August 6, 2026 08:53
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.

1 participant