Skip to content

fix(admin): json-viewer element tag mismatch (rendered empty)#39

Merged
1xabhay merged 1 commit into
mainfrom
fix/admin-json-viewer-tag
Jun 11, 2026
Merged

fix(admin): json-viewer element tag mismatch (rendered empty)#39
1xabhay merged 1 commit into
mainfrom
fix/admin-json-viewer-tag

Conversation

@1xabhay

@1xabhay 1xabhay commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

The vendored @andypf/json-viewer bundle registers <andypf-json-viewer>; the formatter emitted <json-viewer> — an unknown element with no children, so detail pages showed only the bold label (script loaded fine). Emit the registered tag, swap unsupported show-toolbar for show-copy, and add a regression test that greps the customElements.define tag out of the vendored bundle and asserts the formatter emits exactly that tag.

207 tests pass.

🤖 Generated with Claude Code

@andypf/json-viewer registers <andypf-json-viewer>, not <json-viewer>;
the unknown tag rendered as an empty element so detail pages showed
only the label. Also drop show-toolbar (not an attribute in 2.1.1) for
show-copy. Regression test extracts the customElements.define tag from
the vendored bundle and asserts the formatter emits exactly that tag.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@1xabhay 1xabhay merged commit bc7d1fd into main Jun 11, 2026
1 check passed
@1xabhay 1xabhay deleted the fix/admin-json-viewer-tag branch June 11, 2026 21:46
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