Commit Graph
40517 Commits
Author SHA1 Message Date
Kyle KukshtelandCharis Lam 43cd5cc772 Update image-transformations.mdx (#18991)
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2023-11-27 20:58:44 +00:00
Viktor Eriksson 7a68149d15 Update README.md with instructions for Vite instead of Create React App (#19082) 2023-11-27 20:48:00 +00:00
Ivan Vasilov e32b146bc1 chore: Bump the OpenAI lib version to v4 in the docs app (#19253)
Bump the OpenAI lib version to v4 in the docs app.
2023-11-27 21:23:05 +01:00
Charis ba3ba81434 feat: add full text search to docs (#19112)
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.
2023-11-27 14:32:22 -05:00
Oliver Rice f5f039ed05 Docs: Rename serverless apis to data apis (#19256)
* serverless apis -> data apis

* capitalization fix
2023-11-27 12:04:48 -06:00
Bobby Galli 7ef690dcc4 docs: update auth-apple.mdx (#19257)
fix typo loose should be lose
2023-11-27 17:33:25 +00:00
Beng Eu 89fb7142c5 Remove maximum version constraint for npm and node engines (#19251)
No need to get in the way of people using newer versions unless there really proves to be some incompatibility.
2023-11-27 11:42:15 +01:00
Inian b4fac0e449 Update CODEOWNERS (#19247) 2023-11-27 16:54:43 +08:00
dependabot[bot] 5d3faf8fcf chore(deps): bump postcss from 8.4.29 to 8.4.31 (#19245)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.29 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.29...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 12:32:13 +05:30
Jonathan Summers-Muir 10da88171b Update branching popover alignment (#19025)
Update BranchingWaitlistPopover.tsx
2023-11-27 13:46:32 +08:00
Joshen LimandJonathan Summers-Muir 3620ca8ebe RR Scaffolding Work (#18658)
* 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>
2023-11-27 12:50:19 +08:00
wave-light 81e146f26b Update README.md (#19103)
Correct the example endpoint to `/oak-server/greet`
2023-11-26 22:08:36 -05:00
David Tucker 36844a007f Update code error in docs for JS client (#19233)
Update supabase_js_v2.yml

Docs: Fixed missing comma in code example
2023-11-26 23:31:05 +00:00
Vincent Ip, probably 433e728006 docs: variable should be let as it is reassigned (#19217) 2023-11-26 14:34:35 +01:00
Terry SuttonandJonathan Summers-Muir 385d9a9e61 Faqs updates (#19208)
* Faqs updates

* Add file

* Apply suggestions from code review

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-25 06:27:50 +00:00
bdf6b6968b Feat/auth0 vs (#19197)
* feat: adds auth0 vs page

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-25 08:16:48 +08:00
egor 2ecd98393e docs: enhance branching - remote development part (#19196) 2023-11-24 19:19:53 +00:00
Charis 8d57664509 fix const that should be let in svelte example (#19206) 2023-11-24 14:19:27 -05:00
efab162ff9 Chore/server actions (#19200)
* 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>
2023-11-24 13:15:43 -03:30
Jonathan Summers-Muir 7ce355222b Chore/next14 database design (#19190)
Bump nextjs in database-new to v14.
2023-11-24 17:05:36 +01:00
Charis 268c6016ee restyle admonitions to match alerts and streamline types (#19186)
* 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
2023-11-24 10:41:37 -05:00
Jonathan Summers-Muir afd18c0e81 Chore/db design input component (#19191)
* add a new component for input

* add textArea

* some colors

* rename

* Update page.tsx

* move files

* Update ChatInput.tsx

* Update Header.tsx
2023-11-24 16:15:28 +01:00
Stojan Dimitrovski e7b6b1fe94 feat: add auth single session per user config behind feature flag (#19144) 2023-11-24 13:28:58 +01:00
likendev e93afc3575 fix: table editor new column input field (#17970)
Issue #17969

* added padding to the right to prevent the icon blocking the input field
2023-11-24 11:44:25 +00:00
Joel LeeandLong Hoang 682f367c2f chore: update Linkedin oauth docs to push back deprecation date (#19189)
* Update auth-linkedin.mdx

* Update auth-linkedin.mdx

* Update apps/docs/pages/guides/auth/social-login/auth-linkedin.mdx

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>

---------

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>
2023-11-24 19:14:29 +08:00
Beng EuandAlaister Young 744c61c1d7 Speed up Studio development via SWC and keeping built pages in memory for longer (#19192)
* 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>
2023-11-24 11:34:44 +01:00
Kevin Grüneberg 68b3552cb3 chore: remove unused next-transpile-modules dep (#19194) 2023-11-24 10:03:36 +00:00
cc64b6e291 Fix button padding with icon (#19188)
* Fix button padding with icon

* Apply suggestions from code review

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>

* The proper fix

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-11-24 14:35:33 +08:00
Terry SuttonandJoshen Lim 4c20bb0d52 Chore/db visualizer 3 (#19177)
* 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>
2023-11-24 13:48:14 +08:00
CharisandCopple 941d32dcdb docs: add contributing guide for docs (#19146)
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
2023-11-23 15:01:12 -05:00
Stefan Dasbach 0303e92c6a Fix declaration scope of headers (#19181)
Fix declaration scope of headers

`headers` is undefined in the final return in `loader` because `headers` is declared within the nested `if` block.
2023-11-23 18:58:21 +00:00
Ivan Vasilov 64a766a5fb fix: Update the studio dockerfile with the new folder structure (#19179)
* Fix issues caused by moving the studio app.

* Add *.env.* to the dockerignore.
2023-11-23 18:45:22 +01:00
Kamil Ogórek 572cb683fe fix: Pass searchParams during SignInWithSSO rendering (#19171) 2023-11-23 16:48:09 +01:00
Kamil Ogórek c340b55e9d fix: Do not trigger useEffect if user is not logged in for CLI sessions (#19174) 2023-11-23 14:19:50 +01:00
Jonathan Summers-MuirandDiv Arora 734872d8a5 Update migrating-and-upgrading-projects.mdx (#19167)
* Update migrating-and-upgrading-projects.mdx

* Update migrating-and-upgrading-projects.mdx

---------

Co-authored-by: Div Arora <darora@users.noreply.github.com>
2023-11-23 10:06:24 +00:00
Terry SuttonandJonathan Summers-Muir 9af8f5cd54 Feat/db new login 2 (#19153)
* Add supabase backend

* add ssr

* Add thread name to supabase

* Update supabase.ts

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-23 14:13:02 +08:00
Bobbie SoedirgoandCharis 20174e751c docs: editing a cronjob (#19140)
* docs: editing a cronjob

* Update apps/docs/pages/guides/database/extensions/pg_cron.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-11-23 05:26:40 +00:00
Greg Richardson f99e82f5bf Fix: embedding match query in blog post to correctly utilize index (#19136)
fix(blog): embedding match query to correctly utilize index
2023-11-22 13:58:07 -07:00
fbfe910c22 Initial work on database.new visualizer (#19027)
* Initial commit.

* Remove bunch of unneeded deps.

* Fix the providers.

* Minor fixes to make the themes work.

* Fix prettier errors.

* Add default constraint.

* Midway styling

* General styling improvements

* More styling stuff

* Bit more styling

* Bit more pizzazz

* Scaffold all threads modal

* Small style fix

* Ensure loading state persist in new page until redirect

* Fix

* Test';

* Add basic validation

* Fix

* Remove console logs

* Hide show all threads button

* chore: style the blocks

* fix: stroke width

* add some shadow

* stroke width

* Update TableNode.tsx

* Swap hide chat for hide code

* more sidebar styling

* Resolve conflicts

* Some style fixeds

* Some style fixeds

* mock profile

* update user dorpdown

* Update globals.css

* Chore/db new layouts and url params (#19142)

* chore: layouts

* Fix + clean up

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>

* Fix header

* Scaffold profile and conversations

* Some quick styling

* Update apps/database-new/.env.local.example

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
2023-11-22 12:31:32 -03:30
Austin Tran 3fef9c8f8c fix: freeze column on a table causes it to crash (#19127) 2023-11-22 09:37:36 -03:30
Alaister Young 2794a7bd08 fix: make base path redirect non-permanent (#19139) 2023-11-22 20:19:38 +11:00
Alaister Young 301504009f chore: change default region to usw1 (#19138) 2023-11-22 20:19:16 +11:00
Chris Gwilliams 96b01e6428 Add note on disk downsizing when updating (#19018) 2023-11-22 17:05:24 +08:00
Joshen Lim ee75aae0f8 Allow access to db backups page while project is restoring, but disable restore button if project is restoring (#19126) 2023-11-22 14:29:49 +08:00
anngbaum ce37e937b3 docs: update vector sorting to ensure index gets used (#19133)
* docs: update vector sorting to ensure index gets used

* tweak language
2023-11-22 01:37:04 +00:00
Austin TranandTerry Sutton e66e721ad1 fix: api docs crashed when navigation from graphiql (#19118)
* 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>
2023-11-21 16:14:33 -03:30
Ant WilsonandJonathan Summers-Muir a5a89031c4 fix: old links on vector marketing page (#19094)
* fix: old links on vector marketing page

* Apply suggestions from code review

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-21 18:14:58 +00:00
Stojan Dimitrovski 4782f7955f docs: explain user sessions and session timeouts (#19128) 2023-11-21 18:52:33 +01:00
Monica Khoury 90d930db43 Docs: fix link in LangChain doc (#19131)
Fix link in LangChain doc
2023-11-21 18:16:46 +01:00
Inian 805e4c9d9c fix: clarify only paid projects are backed up (#19119) 2023-11-22 00:00:07 +08:00