Files
supabase/apps/docs
Anthony Lio 63e52e119a feat(docs): ask ai enhancements (#52774)
## Problem

- the ask ai answer in the docs search dialog come in bursts
- the result is text that jumps by whole phrases and then stops, and
each new line moves the scroll position with a jump
- the copy button of an answer is always visible, a question has no copy
button

## Solution

- changes the answer to show a part of the waiting text on each
animation frame, so a burst of chunks shows at a steady rate
- adds a fade from a small blur to each new paragraph, list item and
source chip, and the source chips enter one after another
- changes the auto-scroll to move smoothly to each new line, and both
animations stop when the user sets reduced motion
- changes the copy buttons to show on hover, on keyboard focus and on
touch screens, and adds a copy button to each question

| before | after |
| -------|------|
| <video
src="https://github.com/user-attachments/assets/87f6710a-8174-460d-b343-90d19757d673"
/> | <video
src="https://github.com/user-attachments/assets/50bdbec3-d553-4ab3-96bb-2bf30c403815"
/> |

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open [/docs](https://supabase.com/docs) and
[/docs](https://docs-git-antlio-feat-ask-ai-streaming-supabase.vercel.app/docs)
side by side
2. press `Cmd+I` on each page, and ask `how do I set up row level
security?`
3. make sure that the preview answer shows at a steady rate, and that
each new paragraph fades in
4. make sure that the preview source chips enter one after another when
the answer completes
5. move the pointer over the answer and over the question, and make sure
that each copy button shows
6. click the copy button of the question, and make sure that the
clipboard has the question text

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-05 12:33:07 +00:00
..
2026-07-01 12:59:00 +02:00
2026-11-04 17:15:44 -07:00

Supabase Docs

This directory contains the Next.js app for supabase.com/docs.

Guides live in content/ as MDX. Reference pages are generated from the specs in spec/: OpenAPI, SDKSpec, ConfigSpec, and CLISpec. Some sections come from other repositories.

Where to go