As to my research the header passing is already containing the changed cookie (as cookies are part of the header) so the second setting of the cookie becomes unnecessary.
Feature
Adds a full-text search endpoint for docs search, to provide more comprehensive and faster results. Each docs search now performs both FTS and embeddings-based search, and displays results as soon as the first set of results is returned.
Refactor
Slight refactor of the embeddings search to make only one trip to the database, and transfer less content in the JSON. This now uses a different function than the RAG step for Supabase AI.
Bug fix
Fixes a bug where some search results were being filtered out by the cmdk menu.
Removes an obsolete guide. Content is now elsewhere and it messes up search results.
* Init demo world map for read replicas
* Update package.json
* Scaffold and mock data for flow view of project settings infrastructure configuration
* Shift map stuff and install deck.gl to experiment
* Flesh out map view a bit more
* Scaffold deploy new replica panel
* Add restart replica option
* Add animations, shift node generation into utils, attempt to show region nodes
* Experiments
* General improvement to chart and map UI
* Improve some copy writing for restart and drop replica modals
* Simplify loading, error, success states in DatabaseSettings
* Scaffold DB selection in connection string section
* Link replica node to connection string
* Scaffold database selection for SQL editor
* Make DatabaseSelector into a component
* Add database selector to infra activity
* Update
* Hide read replicas UI behind a feature flag
* Update flags
* Update package-lock
---------
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
* Migrate database-new to use server actions.
* Revert the package-lock.json changes, leftover from a rebased commit.
* Add server actions config back
* Cleanup
* Cleanup
* Undo
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
* fix: streamline admonition types
Streamline types available for admonitions:
- Remove `info` and replace with `note`
- Add `deprecation`
Display the type on all admonitions, even if they have a label. Makes it
explicit what level of advice you are looking at (since color and icon
are ambiguous).
* change admonition to use alert under the hood
* fix: enable `useDefineForClassFields` in Studio `tsconfig.json`
Per https://mobx.js.org/installation.html#use-spec-compliant-transpilation-for-class-properties. Needed to switch to SWC.
* fix: remove Studio `.babelrc` to enable SWC
This was tried previously and reverted. I believe that it should work now with `useDefineForClassField` enabled in the previous commit, support for which was added to Next.js in https://github.com/vercel/next.js/pull/36335.
* fix: set Studio `onDemandEntries` options `maxInactiveAge` to 1 day, `pagesBufferLength` to 100
This will keep up to 100 built pages in memory for 1 day, speeding up development. You'd expect that this speed up would come at the cost of memory usage, but in my unscientific testing involving clicking around every page I could get to, with SWC compilation, memory usage maxed out at ~3.3 GB with these options enabled, and no compilation was needed for any revisited pages, whereas without these options, memory usage maxed out at ~4 GB(?!), and revisited pages were compiled once they were out of the buffer. Perhaps the recompilation actually worsens memory usage.
* fix prettier
---------
Co-authored-by: Alaister Young <a@alaisteryoung.com>
* Midway doing something
* Small refactor
* Some mobile responsiveness
* bit fix
* Update name
* One more name
* One more name, again
* Footer and faqs
* Fix
* Style fixes
* Style fixes
* Add titles
* Add CTAs to copy, download or load SQL in supabase
* Styling
* mobile
* Add suggestions
* Add delete action
* Cleanup
* Add delete thread and edit thread modals
* Restore server action
* Fix build error
* Import common theme switcher
* Add file
* Restore thread list
* force revalidating profile path
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* fix: api docs crashed when navigation from graphiql
* Move up hook to avoid it being called conditionally
---------
Co-authored-by: Terry Sutton <saltcod@gmail.com>
* fix: old links on vector marketing page
* Apply suggestions from code review
---------
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>