fix(app-shell): skip resultDialog fields whose path does not resolve#2674
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
A declared resultDialog field whose dot path is absent from the response (readPath returns undefined) still rendered a row, and text/secret formats degraded to a JsonBlock printing the literal `undefined`. Real trigger: sys_user create_user — when the admin types the password themselves the response carries no temporaryPassword, yet the dialog showed a Temporary Password row. Resolve values in the render plan and drop entries whose non-empty path does not resolve; the empty-path whole-payload JSON fallback is kept. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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 #2673
What
ActionResultDialognow resolves field values while building the render plan and drops any declared field whose non-emptypathis absent from the response payload (readPath→undefined). The empty-path whole-payload JSON fallback is unchanged. Previously such rows still rendered, and thetext/secretguards degraded them to aJsonBlockprinting the literalundefined.Declared
resultDialogfields are now safe for response-shape-dependent keys — e.g.sys_user.create_user'stemporaryPassword(absent when the admin typed the password) and the upcominguser.phoneNumberecho (objectstack-ai/framework#3260, absent for email-only users).Tests
New
ActionResultDialog.test.tsx:undefined)turbo run type-check --filter=@object-ui/app-shellgreen; eslint clean. Pure bug fix — no changeset per AGENTS.md.🤖 Generated with Claude Code