Uh oh!
There was an error while loading. Please reload this page.
fix(app-shell): extractItems accepts bare arrays — preview-mode list reads were silently empty - #1661
Merged
Merged
Conversation
…reads were silently empty
MetadataClient.list() (the ?preview=draft path, ADR-0037) unwraps {items}
internally and resolves a BARE ARRAY; extractItems only handled the
adapter SDK's {items} envelope and returned [] for arrays. Every
preview-mode list read came back empty, so a draft-built app rendered
the launcher's 'No Apps Configured' empty state in the Live Canvas
(live-verified on staging after the REST passthrough fix landed — the
API returned 13 apps, the UI saw zero).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Final piece of the Live Canvas draft-app chain, found by elimination on staging after framework#1763 deployed:
GET /meta/app?preview=draftnow correctly returns 13 apps including the draft-built one (server side fixed) —MetadataClient.list()resolves a bare array (it unwraps{items}itself), whileextractItemsonly handled the adapter SDK's{items}envelope and returned[]for arrays. Every preview-mode list read was silently empty; published mode was unaffected (different source, different shape).One-line branch + regression tests (
extractItemsexported for tests): bare array passes through,{items}envelope unwraps, malformed →[].app-shell suite 418/418.
🤖 Generated with Claude Code