anthony lio
ca2286dd56
feat(kb): hero refacto ( #53626 )
...
## Problem
- kb home and topic heroes stay blank on load because their canvases
wait for react dom and hydration
- the guide lists fade in row by row so the rows show late (i liked it
at first but now doesn't feel right)
## Solution
- changes the heroes to start from a small head script so the first
frame does not wait for react
- changes the heroes to hydrate only the home search button so a
hydration mismatch cannot remove the running canvases
- removes the stagger from the guide lists
- moves the `GlyphLines` canvas code and `toOpaque`, now `flattenColor`
into modules without react
<!--
## 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
[/kb](https://kb-git-antlio-kb-hero-refacto-supabase.vercel.app/kb ) now
rings should show faster vs prod
2. open
[/kb/topics/auth](https://kb-git-antlio-kb-hero-refacto-supabase.vercel.app/kb/topics/auth ),
reload, and make sure that the grid lines and shapes show directly after
the title
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md )
- [ ] 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-24 09:18:11 +02:00
Ali Waseem
99fd573d1a
feat(kb): add unit test CI, search API tests, and Playwright smoke tests ( #52151 )
...
kb's unit tests weren't run in CI and there were no functional tests.
Adds a CI job for kb unit tests, unit tests for the search API, and a
bare-bones Playwright suite (`e2e/kb`) that runs against the kb Vercel
preview on PRs and against production daily.
Fixes DOCS-1506
2026-10-22 09:14:16 -06:00