Skip to content

Version Packages - #543

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tailor-platform/app-shell@1.15.1

Patch Changes

  • 48f9f90: Rebuild the form/composer pattern on Form + Field. It was the only form/* pattern with neither — a bare Card of controls with an onClick submit — which left it inconsistent with its four siblings and short of three things a composer actually needs.

    The body now sits in a Field.Root with a sr-only Field.Label (a real label instead of aria-label, so error and description wiring stays available), Send is type="submit" so validation gates it, and server rejections — moderation, rate limit, thread closed — route through Form's errors prop into Field.Error rather than a toast, landing next to the text the user still has.

    The body stays controlled: it is read during render to gate Send and to swap the placeholder, which a submit-time handler cannot do. The pattern doc now says so explicitly, because this is the one form/* pattern where field state is load-bearing rather than redundant — elsewhere onFormSubmit reads registered Field.Roots and mirroring values into state is the anti-pattern.

    Also fixes a data-loss path in the reference implementation: it cleared the body unconditionally, losing the user's text when a submit failed. It now clears only on success.

@github-actions
github-actions Bot requested a review from a team as a code owner September 17, 2026 06:26
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.

0 participants