Skip to content

feat: enhance ChatLayout with onClear callback#86

Merged
olliethedev merged 2 commits intomainfrom
chore/improve-ai-chat-ui
Mar 11, 2026
Merged

feat: enhance ChatLayout with onClear callback#86
olliethedev merged 2 commits intomainfrom
chore/improve-ai-chat-ui

Conversation

@olliethedev
Copy link
Collaborator

@olliethedev olliethedev commented Mar 11, 2026

Summary

  • improve clear chat button functionality
  • update docs

Type of change

  • Bug fix
  • New plugin
  • Feature / enhancement to an existing plugin
  • Documentation
  • Chore / refactor / tooling

Checklist

  • pnpm build passes
  • pnpm typecheck passes
  • pnpm lint passes
  • Tests added or updated (unit and/or E2E)
  • Docs updated (docs/content/docs/) if consumer-facing types or behavior changed
  • All three example apps updated if a plugin was added or changed
  • New plugin: submission checklist in CONTRIBUTING.md completed

Note

Low Risk
Low risk: adds an optional UI callback and a conditional button; existing behavior is unchanged unless onClear is provided.

Overview
Adds an optional onClear callback to ChatLayout so consumers can clear any persisted messages when the user hits the trash/clear action; the widget clear button now triggers onClear before resetting, and the full-page header shows a clear button only when onClear is provided.

Bumps @btst/stack to 2.6.2 and significantly expands/clarifies the better-auth-ui plugin docs (feature list, route table, override options, and per-page customization examples).

Written by Cursor Bugbot for commit fc1423f. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Mar 11, 2026

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

Project Deployment Actions Updated (UTC)
better-stack-docs Ready Ready Preview, Comment Mar 11, 2026 4:50pm

Request Review

@github-actions
Copy link
Contributor

Shadcn registry updated — registry JSON files were rebuilt and committed to this branch.

@olliethedev olliethedev merged commit bdb18d6 into main Mar 11, 2026
2 checks passed
@olliethedev olliethedev deleted the chore/improve-ai-chat-ui branch March 11, 2026 19:19
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