Skip to content

[appkit plugin] [4/x] Add @databricks/chat-ui package#386

Open
hubertzub-db wants to merge 4 commits intodatabricks:mainfrom
hubertzub-db:stack/agent-plugin-p4
Open

[appkit plugin] [4/x] Add @databricks/chat-ui package#386
hubertzub-db wants to merge 4 commits intodatabricks:mainfrom
hubertzub-db:stack/agent-plugin-p4

Conversation

@hubertzub-db
Copy link

@hubertzub-db hubertzub-db commented Mar 19, 2026

🥞 Stacked PR


Summary

Adds a standalone React component library at integrations/chat-ui, extracted from AppKit UI's agent-chat components.

What it ships:

  • SimpleAgentChat — drop-in chat widget wired to POST /invocations with SSE streaming (Responses API format)
  • useAgentChat — headless hook for consumers who want full control over rendering
  • Supporting components (AgentChatMessage, AgentChatPart) and types

Styling approach:

  • Components use Tailwind utility classes internally with Shadcn-compatible theme tokens
  • Ships compiled CSS (dist/styles.css) with all utilities + a default light theme via CSS variables — consumers without Tailwind just import "@databricks/chat-ui/styles.css"
  • Consumers with their own Tailwind/Shadcn setup can skip the CSS import and use their existing theme
  • Scoped reset via [data-chat-ui] attribute avoids leaking preflight styles into the host page

Dependencies:

  • react / react-dom as peer dependencies
  • @radix-ui/react-slot, class-variance-authority, clsx, tailwind-merge as runtime dependencies (inlined Button/Card primitives)
  • No dependency on @databricks/appkit or @databricks/appkit-ui — fully self-contained

@hubertzub-db hubertzub-db force-pushed the stack/agent-plugin-p4 branch from 05a1cc8 to 83a0259 Compare March 19, 2026 14:10
@hubertzub-db hubertzub-db changed the title simple chatui [appkit] Add @databricks/chat-ui package Mar 19, 2026
@hubertzub-db hubertzub-db changed the title [appkit] Add @databricks/chat-ui package [appkit plugin] Add @databricks/chat-ui package Mar 19, 2026
Copy link
Collaborator

@bbqiu bbqiu left a comment

Choose a reason for hiding this comment

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

lgtm given things are very temporary (we will soon replace with e2e-chatbot-app-next)

@hubertzub-db hubertzub-db force-pushed the stack/agent-plugin-p4 branch 9 times, most recently from fb15c97 to 80ce1a0 Compare March 20, 2026 13:58
@hubertzub-db hubertzub-db changed the title [appkit plugin] Add @databricks/chat-ui package [appkit plugin] [4/x] Add @databricks/chat-ui package Mar 23, 2026
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
Add per-package pnpm-lock.yaml and CI/release workflows with
explicit pnpm version and cache-dependency-path.
@hubertzub-db hubertzub-db force-pushed the stack/agent-plugin-p4 branch from 80ce1a0 to 988e88e Compare March 23, 2026 07:56
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.

2 participants