A2UI icon indicating copy to clipboard operation
A2UI copied to clipboard

Delete minimal catalog and examples

Open josemontespg opened this issue 6 months ago • 8 comments

From the review of https://github.com/google/A2UI/pull/1405

@ditman

I think we should remove the "minimal" catalog and examples. They don't add much value once the renderer is fully built (instead, they add maintenance burden like here)

josemontespg avatar May 14 '26 18:05 josemontespg

I actually removed it from Lit a while ago:

https://github.com/google/A2UI/pull/1079/changes/6c0296d09cc2bedfa9f3d57a4d8524ba5d3351fe

ditman avatar May 14 '26 20:05 ditman

PS: I actually removed the "minimal" catalog implementation from everything lit, even the a2ui_explorer demo. There were some hacks in the code needed to load the appropriate examples and catalog, and I removed everything. 🔥🔥🔥

ditman avatar May 14 '26 21:05 ditman

From #1497

BTW Can you also make an equivalent change to specificaiton/v0_9_1 (sorry about that). Ideally, the generate-examples.mjs will also pull from v0_9_1. I will send a proposal later this week arguing that we should never do patch versions of the specification, to avoid this kind of churn.

josemontespg avatar Jun 15 '26 23:06 josemontespg

A2UI Triage: Triaged as P2.

We want to keep the minimal catalog in the specification, as it makes for a good stepping stone when asking an agent to implement a renderer. We don't need support for it anywhere else, though, IMO.

gspencergoog avatar Jun 29 '26 18:06 gspencergoog

As a concept, it's probably good, but given the minimal catalog looks like a subset of the basic catalog, once the basic catalog is implemented, the minimal catalog implementation is redundant. I think we've removed it already from most of our renderers though.

ditman avatar Jul 09 '26 00:07 ditman

Yeah, it's supposed to be removed after you implement the basic catalog, and it's also supposed to be a minimal subset of the basic catalog. The idea is that you ask an agent to implement that one first so it doesn't get bogged down in the nitty gritty of implementing the more complex components, but is required to implement the reactive data model updates, at least one function, etc.

I think that is still useful. We could, however, just tell it in the "build a renderer" instructions to ignore all but specific components until those components are implemented and tested. So we don't need an actual separate catalog.

gspencergoog avatar Jul 09 '26 01:07 gspencergoog

Yep, yep, this issue was created because at some point the minimal/basic catalogs that we had were diverging (we had two ever so slightly different Text widgets to maintain, for example). Anyway, they've been removed from most of the renderers that we're vending. It's probably fine to leave them in the build a renderer instructions.

(I haven't read them in a while, I wonder if we expressly state that the minimal catalog is a subset of the basic one, or that you can remove it after you're done implementing the renderer :))

ditman avatar Jul 09 '26 01:07 ditman

Add a PR to remove the remaining references. #1970

gspencergoog avatar Jul 09 '26 01:07 gspencergoog