Skip to content

feat(apollo-wind): host-rendered content for AI assist [MST-17134] - #1445

Merged
BenGSchulz merged 1 commit into
feat/variable-picker-host-slotfrom
feat/ai-assist-host-content
Oct 23, 2026
Merged

BenGSchulz merged 1 commit into
feat/variable-picker-host-slotfrom
feat/ai-assist-host-content

Conversation

@BenGSchulz

@BenGSchulz BenGSchulz commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lets a host render its own AI assist panel inside apollo-wind's popover (MST-17134, D48). flow-workbench's AiGenerateButton (retry, telemetry) stays in flow-workbench; wind keeps the trigger, tooltip, popover, focus return and strings.

  • AiAssistAction takes renderContent({ close, disabled }) in place of its prompt form. hint and the prompt strings are unused while it is set.
  • createAiAssistAction({ renderContent }) makes generate optional. The panel gets { close, disabled, apply, ctx }. apply({ mode?, value }) writes the way a generated result does and closes the popover.
  • The write path is shared: generate and apply both go through one writeResult, so apply gets the same skip when the field was disabled meanwhile. FieldActionResult names the { mode?, value } shape both use.

Decisions worth a look

  • The panel also gets ctx (the FieldActionContext), the same way generate(request, ctx) does, so a host knows which field it generates for.
  • disabled is effectively always false while the panel is mounted, because the popover already closes when the action is disabled. It is passed as the ticket specifies.

Test plan

  • apollo-wind UI and form suites: 2,418 tests pass, typecheck clean, Biome clean on changed files
  • AiAssistAction: host content replaces the prompt form, is only called once opened, and close returns focus to the trigger
  • MetadataForm: apply writes in the mode it gives and closes back to the trigger, and writes nothing once the field has been disabled
  • Existing tests unchanged
  • Storybook: the AI assist panel in Field Actions "Host panels" and Forms/Field actions "Host panels"

Stack

  1. feat(apollo-wind): host-rendered variable picker for Insert variable and Variable mode [MST-17134] #1444: Host-rendered variable picker
  2. feat(apollo-wind): host-rendered content for AI assist [MST-17134] #1445: Host-rendered content for AI assist ← this PR
  3. feat(apollo-wind): warning severity for FormFieldError [MST-17134] #1446: Warning severity for FormFieldError

A host with its own AI panel can render it inside wind's AI assist popover.

- AiAssistAction takes renderContent({ close, disabled }) in place of its prompt form
- createAiAssistAction({ renderContent }) makes generate optional; the panel gets apply,
  which writes like a generated result, with the same disabled guard, and closes
@github-actions
github-actions Bot temporarily deployed to preview/apollo-landing October 22, 2026 01:26 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 22, 2026 01:26 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 22, 2026 01:26 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 22, 2026 01:26 Destroyed
@github-actions

Copy link
Copy Markdown
Contributor

Dependency License Review

  • ✅ 1957 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 2 package(s) excluded (see details below)
License distribution
License Packages
MIT 1721
ISC 91
Apache-2.0 57
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 4
CC0-1.0 4
MIT-0 3
MIT OR Apache-2.0 2
(MIT OR Apache-2.0) 2
Unlicense 2
LGPL-3.0-or-later 1
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.3.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

@BenGSchulz
BenGSchulz added this pull request to stack #1447 October 22, 2026 01:35
@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage + size by package

Per-package coverage and bundle size on this PR. New-line coverage = of the source lines this PR adds or changes, the % hit by tests.

Package Coverage New-line coverage Packed (gzip) Unpacked vs main
@uipath/apollo-core — — 42.02 MB 50.17 MB ±0
@uipath/apollo-react 58.4% — 8.14 MB 32.17 MB ±0
@uipath/apollo-ui-icons — — 2.86 MB 6.97 MB ±0
@uipath/apollo-vertex — — — — —
@uipath/apollo-wind 79.5% 92.9% (13/14) 814.4 KB 4.70 MB +3.8 KB
@uipath/ap-chat 85.8% — 40.42 MB 45.71 MB ±0

"Coverage" is each package's own coverage.include scope (e.g. apollo-core instruments only scripts/). "Packed"/"Unpacked" come from npm pack --dry-run and only cover built packages — "—" means not measured this run (package not affected / not built). "vs main" is the packed (gzipped) delta against the last successful main build (the package-sizes artifact from the Release workflow); "—" there means no main baseline was available this run. The baseline is main's latest build, not this PR's exact merge-base, so it includes any drift since the branch diverged. Packages with no vitest config are omitted.

@BenGSchulz
BenGSchulz marked this pull request as ready for review October 23, 2026 17:36
Copilot AI balanced review requested due to automatic review settings October 23, 2026 17:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions github-actions Bot added the size:L 100-499 changed lines. label Oct 23, 2026
@BenGSchulz
BenGSchulz merged commit f5e2426 into main Oct 23, 2026
36 of 38 checks passed
@BenGSchulz
BenGSchulz deleted the feat/ai-assist-host-content branch October 23, 2026 20:14

This branch was successfully deployed

No deployments
preview/apollo-vertex — 516ab99a Deployed Oct 22, 2026 by github-actions[bot]
preview/apollo-docs — 516ab99a Deployed Oct 22, 2026 by github-actions[bot]
preview/apollo-design — 516ab99a Deployed Oct 22, 2026 by github-actions[bot]
preview/apollo-landing — 516ab99a Deployed Oct 22, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:apollo-wind size:L 100-499 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants