feat: Add a new local A2UI JSON viewer in the shell app.#1381
Open
feat: Add a new local A2UI JSON viewer in the shell app.#1381
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a local offline previewer and prototyping tool, adding a file upload interface, built-in JSON samples, and a glassmorphic toast notification system. The A2UILayoutEditor component was updated with state management for local mode, enhanced styling, and logic to process local actions. Review feedback focuses on improving code quality and robustness, specifically by removing redundant whitespace, strengthening type safety for the markdown renderer, restoring encapsulation for the snackbar accessor, and refining the toast notification logic to prevent race conditions.
07381fe to
5d34926
Compare
5d34926 to
b094c5e
Compare
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.
Description
Also create sample A2UI JSON files to show up.
Can be opened with the ?/app=local query param after running shell app. e.g. http://localhost:5173/?app=local
Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.
List which issues are fixed by this PR. For larger changes, raising an issue first helps reduce redundant work.
Pre-launch Checklist
If you need help, consider asking for advice on the discussion board.