Skip to content

build(deps): upgrade @a2ui packages and retire react patch (Closes #315) - #320

Merged
jgindin merged 3 commits into
mainfrom
pr2-upgrade-a2ui-deps
Nov 16, 2026
Merged

jgindin merged 3 commits into
mainfrom
pr2-upgrade-a2ui-deps

Conversation

@jgindin

@jgindin jgindin commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Summary

  • Upgrade @a2ui/web_core to 0.15.0 in root resolutions and the bridge, and
    add explicit bridge devDependencies on @a2ui/angular 0.14.0,
    @a2ui/lit 0.15.0, and @a2ui/react 0.15.0.
  • Upgrade sample dependencies to @a2ui/angular 0.14.0, @a2ui/lit 0.15.0,
    @a2ui/react 0.15.0, @a2ui/markdown-it 0.2.2, and @a2ui/web_core
    0.15.0; pin zod to 3.25.76 in samples/react-basic-catalog.
  • Remove .yarn/patches/@a2ui-react-npm-0.10.2-877cbd9ad2.patch and
    .yarn/patches/README.md now that upstream @a2ui/react exports Universal
    Custom Elements.
  • Update react-basic-catalog to import basicCatalog from
    @a2ui/web_core/v0_9/basic_catalog, call injectBasicCatalogStyles(),
    and use vi.waitFor DOM polling in tests.
  • Refresh samples/shared/demos/demos.json and E2E wall helper card counts
    to 47 (bundled native-grid demo), update E2E and visual locators for
    Universal Custom Elements, and align the v0.9 updateDataModel mock
    payload to the strict schema.

Closes #315.

Commits

51c41453 build(deps): upgrade @a2ui packages and retire react patch (Closes #315)
81965e6b fix(samples,bridge): address review comments on deps, slack catalog, and lit tests

25 files changed, 196 insertions(+), 536 deletions(-)

Stack

Stacked PR 2/7 — base: pr1-e2e-stabilization → merge in order pr1 → pr7.

Each PR in the stack must be merged before the next one, or the next one
must be rebased onto the updated base after its predecessor merges.

Full stack (merge in this order):

Verification

Run at the tip of the stack (pr6-samples-demos-v1-0, af82fb68):

  • shell$ yarn e2e-headless → 229 passed (0 failed, 0 flaky)
  • yarn --cwd shell test:visual → 19 passed
  • yarn test, yarn lint, yarn tsc, yarn prettier:check,
    yarn generate:demos:check all exit 0

Pre-launch Checklist

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

Copy link
Copy Markdown
Contributor

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 upgrades the @a2ui packages (including web_core, react, angular, lit, and markdown-it) to version 0.15.0 (or 0.14.0), which allows the removal of the temporary React 0.10.2 CSS module repair patch. It also introduces a new 'Native Grid' demo, bringing the total demo count to 47, and updates the corresponding test suites, styling injections, and component imports. Feedback on the changes highlights a potential downstream TypeError in local-function-dispatch.ts if the surface is undefined, and suggests adding a guard clause at the beginning of the function to handle this gracefully.

@jgindin
jgindin force-pushed the pr2-upgrade-a2ui-deps branch from 8b3c518 to 51c4145 Compare November 10, 2026 20:40
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit be415c5):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

@wrenj wrenj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM — upgrading @a2ui/* packages to 0.14.0/0.15.0 and retiring the @a2ui/react patch is clean. Two small non-blocking notes inline.

@mikzat mikzat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clean upgrade to @a2ui/* 0.14.0/0.15.0 and retirement of the temporary @a2ui/react CSS patch — the Slack schema updates, $defs rewrite, and Universal Custom Element locator updates all check out. Nothing here needs to block merge if the stack lands together (though if #320 will sit on main without #324, filtering out 37_native-grid.json in generate-demos.mjs is worth doing here so demo 47 isn't half-empty); the remaining items are non-blocking follow-ups/nits that can fold into #325.

Two notes on lines outside this diff:

  • Optional (INTEGRATION_MANUAL.md:130): The React snippet still has import {A2uiSurface, basicCatalog} from '@a2ui/react/v0_9';, and @a2ui/[email protected] no longer exports basicCatalog. Please update it to import basicCatalog from @a2ui/web_core/v0_9/basic_catalog like App.tsx (still stale at #325).
  • Nit (samples/react-basic-catalog/src/main.spec.tsx:259): The "pipes user custom elements clicks…" test still passes child: 'Click Proxy' with no Text component of that id, so the button renders empty. Please add a Text child component like the first test in this file (#324 ends up fixing it later in the stack).

Comment thread shell/e2e/demo-wall-helpers.ts Resolved
Comment thread bridge/package.json Resolved
Comment thread bridge/package.json Resolved
@jgindin
jgindin added this pull request to stack #332 November 16, 2026 13:16
@jgindin
jgindin force-pushed the pr2-upgrade-a2ui-deps branch 2 times, most recently from d6e5724 to 6eca819 Compare November 16, 2026 21:43
Base automatically changed from pr1-e2e-stabilization to main November 16, 2026 22:52
- Upgrade root resolutions for @a2ui/web_core to 0.15.0.
- Upgrade bridge dependencies: @a2ui/web_core to 0.15.0 and add explicit
  devDependencies for @a2ui/angular 0.14.0, @a2ui/lit 0.15.0, and
  @a2ui/react 0.15.0.
- Upgrade sample dependencies to @a2ui/angular 0.14.0, @a2ui/lit 0.15.0,
  @a2ui/react 0.15.0, @a2ui/markdown-it 0.2.2, and @a2ui/web_core
  0.15.0.
- Delete .yarn/patches/@a2ui-react-npm-0.10.2-877cbd9ad2.patch and
  .yarn/patches/README.md now that upstream @a2ui/react exports
  Universal Custom Elements.
- Pin zod to exact version 3.25.76 in samples/react-basic-catalog.
- Update react-basic-catalog to import basicCatalog from
  @a2ui/web_core/v0_9/basic_catalog, call injectBasicCatalogStyles() for
  Constructable Stylesheets, and use vi.waitFor DOM polling in tests.
- Refresh samples/shared/demos/demos.json and E2E wall helper card
  counts to 47 to include bundled native-grid demo.
- Update E2E and visual test locators for Universal Custom Elements and
  align v0.9 updateDataModel mock payload to strict schema.
…and lit tests

- Check local $defs before rewriting references to common_types.json
  in Slack catalog schema generator.
- Remove no-op ButtonApi action extend and update doc comments.
- Align @a2ui/web_core dependency version to 0.15.0 in
  react-slack-catalog.
- Remove unused @a2ui/react from bridge devDependencies and declare
  optional peerDependencies for @a2ui/angular and @a2ui/lit.
- Assert light DOM innerHTML in lit-basic-catalog main.spec.ts.
- Guard demo generation against upstream examples declaring
  customComponents and regenerate demos.json to 46 demos.
- Update demo count assertions to 46 in wall helpers and unit specs.
- Pin @a2ui/angular peerDependency to 0.14.0 in bridge/package.json and
  sync yarn.lock.
- Drop unused localDefs parameter from processRefs and schemaJsonFor in
  react-slack-catalog, clarify unconditional rewrite comment, and add unit
  test coverage.
@jgindin
jgindin force-pushed the pr2-upgrade-a2ui-deps branch from 6eca819 to be415c5 Compare November 16, 2026 22:53
@jgindin
jgindin merged commit 900b65f into main Nov 16, 2026
15 checks passed
@jgindin
jgindin deleted the pr2-upgrade-a2ui-deps branch November 16, 2026 23:51
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.

chore: upgrade @a2ui/* packages (>=0.13.0) and remove @a2ui/react CSS module Yarn patch

3 participants