fix(plugin-list): normalize viewType 'list'/missing/unknown to the grid renderer#1632
Merged
Conversation
…id renderer
AI-authored view metadata stores the view KIND ('list') which hosts forward
verbatim as viewType; it names a category, not a renderer. ListView's
normalization only defaulted a MISSING viewType, so 'list' (truthy) slipped
through to the switch's default branch, which returned a TYPELESS schema —
SchemaRenderer rendered the user's view as a red "Unknown component type"
box dumping the raw config (live on staging for every AI-built list view).
- The kernel-default normalization now also maps 'list' → 'grid'.
- The switch default shares the grid branch, so an unrecognized viewType
degrades to a working table instead of a typeless schema.
plugin-list: 122 tests green (3 new: 'list', missing, and unknown viewType
all render without the red box).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the red "Unknown component type" box on every AI-built list view (live on staging:
/apps/expense_tracking/expense/view/all_expenses).AI-authored view metadata stores the view kind (
type: 'list') which hosts forward verbatim asviewType— it names a category, not a renderer. ListView's normalization only defaulted a missing viewType, so'list'(truthy) slipped through to the switch'sdefault:branch, which returned a typeless schema → SchemaRenderer error box dumping the raw config at the user.'list'→'grid'(single normalization point);defaultshares the grid branch — an unrecognized viewType degrades to a working table, never a typeless schema.plugin-list 122 green (3 new: 'list' / missing / unknown all render without the red box — the first two land on the friendly empty state with no data, the third proves the default branch emits a typed grid schema).
🤖 Generated with Claude Code