[PR #4735] [MERGED] docs: add ai chat assistant for better-auth docs #5556

Closed
opened 2026-03-13 12:27:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4735
Author: @Kinfe123
Created: 9/17/2025
Status: Merged
Merged: 9/22/2025
Merged by: @himself65

Base: canaryHead: feat/chat-ui-assistance


📝 Commits (10+)

📊 Changes

8 files changed (+854 additions, -49 deletions)

View changed files

docs/app/api/ai-chat/route.ts (+85 -0)
📝 docs/app/global.css (+73 -0)
docs/components/ai-chat-modal.tsx (+426 -0)
docs/components/ask-ai-button.tsx (+52 -0)
docs/components/markdown-renderer.tsx (+120 -0)
📝 docs/components/search-dialog.tsx (+55 -25)
📝 docs/package.json (+6 -0)
📝 pnpm-lock.yaml (+37 -24)

📄 Description

Summary by cubic

Add a chat assistant to the Better-Auth docs with a modal UI and a server route that proxies questions to Gurubase. Integrates with the search dialog and adds markdown/code styling for readable answers.

  • New Features

    • Added POST /api/ai-chat proxy (sessions, optional streaming, friendly errors).
    • New modal chat UI with typing simulation, markdown rendering, code highlighting, and Enter/Shift+Enter support.
    • Added an Ask button in the search dialog to open the assistant.
    • Updated docs styles for markdown (headings, lists, tables, code) and a streaming cursor.
  • Dependencies

    • Added: @better-auth/utils, @radix-ui/react-icons, framer-motion, geist, react-use-measure, mini-svg-data-uri.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4735 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 9/17/2025 **Status:** ✅ Merged **Merged:** 9/22/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/chat-ui-assistance` --- ### 📝 Commits (10+) - [`ad637f3`](https://github.com/better-auth/better-auth/commit/ad637f385548012b5bea50de057addf5cd36a45a) feat: chat ui assistant - [`248aff1`](https://github.com/better-auth/better-auth/commit/248aff1bc56b2b3bbc53e6bce334e76492c7c177) lint - [`c18d77f`](https://github.com/better-auth/better-auth/commit/c18d77f556153773b880dd59396415d81decd3af) lint - [`1d51126`](https://github.com/better-auth/better-auth/commit/1d5112685b3531c46c5975614bd8f829b3fc5b22) update - [`87d41e3`](https://github.com/better-auth/better-auth/commit/87d41e3529356e1bc6490365efa97eabe89efd86) update - [`f1eaf25`](https://github.com/better-auth/better-auth/commit/f1eaf25f4440f4f8cf99843ce3ae5ce69442d359) onclick update - [`31f3bd5`](https://github.com/better-auth/better-auth/commit/31f3bd5b0b753ccc0c2fbed96f9fe2722dbbba67) update - [`2b543e1`](https://github.com/better-auth/better-auth/commit/2b543e16a99585349ba46539f05c382acd8f445e) lint - [`28f818c`](https://github.com/better-auth/better-auth/commit/28f818c18e4c4cf5b89a92d647320ee40f154135) overflow issue - [`9c9413a`](https://github.com/better-auth/better-auth/commit/9c9413a87538757ccd0b97263fa41e72b7738796) update ### 📊 Changes **8 files changed** (+854 additions, -49 deletions) <details> <summary>View changed files</summary> ➕ `docs/app/api/ai-chat/route.ts` (+85 -0) 📝 `docs/app/global.css` (+73 -0) ➕ `docs/components/ai-chat-modal.tsx` (+426 -0) ➕ `docs/components/ask-ai-button.tsx` (+52 -0) ➕ `docs/components/markdown-renderer.tsx` (+120 -0) 📝 `docs/components/search-dialog.tsx` (+55 -25) 📝 `docs/package.json` (+6 -0) 📝 `pnpm-lock.yaml` (+37 -24) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add a chat assistant to the Better-Auth docs with a modal UI and a server route that proxies questions to Gurubase. Integrates with the search dialog and adds markdown/code styling for readable answers. - New Features - Added POST /api/ai-chat proxy (sessions, optional streaming, friendly errors). - New modal chat UI with typing simulation, markdown rendering, code highlighting, and Enter/Shift+Enter support. - Added an Ask button in the search dialog to open the assistant. - Updated docs styles for markdown (headings, lists, tables, code) and a streaming cursor. - Dependencies - Added: @better-auth/utils, @radix-ui/react-icons, framer-motion, geist, react-use-measure, mini-svg-data-uri. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:27:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5556