Skip to content

Tweak v0.8 Button and TextField schemas to better match the spec.#806

Merged
ditman merged 3 commits intogoogle:mainfrom
ditman:tweak-some-v08-schemas
Mar 10, 2026
Merged

Tweak v0.8 Button and TextField schemas to better match the spec.#806
ditman merged 3 commits intogoogle:mainfrom
ditman:tweak-some-v08-schemas

Conversation

@ditman
Copy link
Collaborator

@ditman ditman commented Mar 10, 2026

Description

This PR fixes a small discrepancy between the v0.8 spec and the schema for Buttons and TextFields.

(Discovered in cl/878208726)

Pre-launch Checklist

If you need help, consider asking for advice on the discussion board.

ditman added 3 commits March 9, 2026 17:43
* Adds Button.primary (optional boolean)
* Renames TextField.type to TextField.textFieldType

These changes are required to better match the spec.
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 updates the schemas for Button and TextField to better align with the v0.8 spec, adding a primary property to Button and renaming type to textFieldType for TextField. The changes are propagated through the web_core, Angular, and Lit renderers. My review focuses on the implementation of these changes in the renderer components. While the schema and property bindings are updated correctly, the UI logic in both Angular and Lit renderers for these new properties is incomplete. I've left comments with suggestions on how to fully implement the functionality for Button's primary state and TextField's various textFieldType options.

@ditman ditman merged commit 1995606 into google:main Mar 10, 2026
9 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in A2UI Mar 10, 2026
lukasmoschitz added a commit to CopilotKit/A2UI that referenced this pull request Mar 12, 2026
web_core 0.8.4 renames TextField's `type` to `textFieldType`
(google#806). Pin until the React renderer is updated to
match (google#810).
ava-cassiopeia pushed a commit that referenced this pull request Mar 12, 2026
* Fix visual parity Lit harness broken after merge

The Lit harness stopped rendering after the merge because:

1. @a2ui/markdown-it was pinned to ^0.0.1 (npm registry) which has a
   synchronous renderMarkdown(). After commit b904548 made
   MarkdownRenderer async, the Lit directive calls .then() on the
   result, causing "markdownRenderer(...).then is not a function".

   Fix: switch to file:../../markdown/markdown-it to stay in sync with
   the local source (now async, v0.0.2).

2. The React Vite dev server lazily discovers @a2ui/web_core subpath
   imports, triggering "optimized dependencies changed. reloading"
   mid-page-load which causes blank screenshots in Playwright.

   Fix: add web_core subpath imports to optimizeDeps.include so Vite
   pre-bundles them upfront.

* Pin @a2ui/web_core to <0.8.4 to avoid TextField breakage

web_core 0.8.4 renames TextField's `type` to `textFieldType`
(#806). Pin until the React renderer is updated to
match (#810).

* Add minimum version floor to @a2ui/web_core dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants