Skip to content

add an examples app that has a gallery of pre-designed surfaces and allows editing/previewing A2UI JSON#761

Open
andrewkolos wants to merge 8 commits intoflutter:mainfrom
andrewkolos:composer
Open

add an examples app that has a gallery of pre-designed surfaces and allows editing/previewing A2UI JSON#761
andrewkolos wants to merge 8 commits intoflutter:mainfrom
andrewkolos:composer

Conversation

@andrewkolos
Copy link
Collaborator

@andrewkolos andrewkolos commented Feb 24, 2026

Fixes #788. Fixes #714.

Adds a new composer app that provides the following:

  1. The ability to experiment with generating a GenUI surface using the core catalog. This is done with a simple text prompt. (works only if GEMINI_API_KEY is available in the local environment).
  2. A curated gallery/catalog of simple surfaces that use the core catalog. Can be useful when evaluating local changes to the styling/implementation of core catalog widgets.
  3. The ability to see/edit the backing JSON of surfaces.
image

⚠️ For reviewers

The count of changed files is near 100, but most of these are project scaffolding. You can focus on the dart source of the composer app.

There are some open questions I left unanswered in the interest of limiting the scope of this PR--the Files Changed count is already bloated from adding a new app. The big one worth mentioning is: should this new app be merged with catalog_gallery? The gallery of individual components could simply be another tab in the UI. The other thing that catalog_gallery does is act as a suite of integration tests for CI. We could probably do the same thing with this new app: de-dupe redundant samples and port integration tests from catalog_gallery. I'm happy to do this in a follow-up PR.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-devrel channel on Discord.

gemini-code-assist[bot]

This comment was marked as off-topic.

@andrewkolos andrewkolos force-pushed the composer branch 2 times, most recently from 8a3cd41 to 06dd464 Compare March 9, 2026 17:01
@andrewkolos
Copy link
Collaborator Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces an excellent composer example app, which will be a valuable tool for developing and testing A2UI surfaces. The app is well-structured, featuring AI-powered UI generation, a gallery of examples, and a live JSON editor. The overall implementation is solid. My feedback includes a few minor suggestions for improvement related to error handling, logging, and code clarity to enhance robustness and maintainability. The included fix for data model notifications in the genui package is also a great improvement.

Note: Security Review did not run due to the size of the PR.

andrewkolos and others added 3 commits March 9, 2026 15:26
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

DataModel listeners are never notified for descendant path updates Gallery tool for Gen UI SDK standard catalog implementation

1 participant