Skip to content

feat: A2UI v0.9 Phase 2 — functions, validation, template expansion, two-way binding, actions#81

Merged
blove merged 8 commits into
mainfrom
a2ui-phase2
Apr 9, 2026
Merged

feat: A2UI v0.9 Phase 2 — functions, validation, template expansion, two-way binding, actions#81
blove merged 8 commits into
mainfrom
a2ui-phase2

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 9, 2026

Summary

Makes A2UI surfaces fully interactive:

  • 10 registered functionsformatNumber, formatCurrency, formatDate, pluralize, openUrl, and/or/not replace the Phase 1 [functionName] stubs
  • 5 validation functionsrequired, regex, length, numeric, email with validateChecks() executor
  • Template expansionchildren: { path, componentId } expands over data model arrays with scoped relative-path bindings
  • Two-way data binding — TextField, CheckBox, ChoicePicker emit data model updates on user input via _bindings prop resolution
  • Button actions — server event dispatch via emit(), local openUrl execution, validation-based disable

Test plan

  • 59 @cacheplane/a2ui tests pass (including 9 function tests + 12 validation tests)
  • All chat lib tests pass including template expansion
  • Lint clean

blove and others added 8 commits April 9, 2026 10:04
…and/or/not, openUrl)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…umeric, email)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment Apr 9, 2026 5:16pm

Request Review

@blove blove merged commit a4e30de into main Apr 9, 2026
12 of 13 checks passed
@blove blove deleted the a2ui-phase2 branch May 7, 2026 16:30
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.

1 participant