Commit Graph
9308 Commits
Author SHA1 Message Date
Stojan DimitrovskiandIvan Vasilov eed4e29db5 feat: add password strength configs (#19330)
* feat: add password strength configs

* Revert the changes to RadioGroup since they may cause issues in other usecases. Add a string to represent the empty string state for PASSWORD_REQUIRED_CHARACTERS property.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-04 14:26:21 +01:00
Alaister Young 4e48e3c831 chore: remove spinner waterfall on project index page (#19357) 2023-12-04 14:11:45 +01:00
Alaister YoungandIvan Vasilov 0add5640cd chore: remove spinner waterfall on projects page (#19355)
* chore: remove spinner waterfall on projects page

* Fix the shimmering card to look more like the project cards.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-04 13:06:10 +00:00
Kevin Grüneberg d9927f172a fix: reset payment method on org creation error (#19277) 2023-12-04 11:30:53 +01:00
Jonathan Summers-Muir df55638e04 Fix/docs alerts / stephike / images (#19401)
* step hike and alerts fixed

* fix images
2023-12-04 10:48:35 +01:00
Jonathan Summers-Muir c59f7b56c6 Update branching docs warnings (#19400)
* Update branching.mdx

* update images

* update again

* Update branching.mdx
2023-12-04 13:16:22 +08:00
e6006b9653 feat: user impersonation (#18945)
* feat: user impersonation

* refactor

* add anon impersonation

* add user impersonation to graphiql

* thanks Ivan for this one

* add radio buttons

* progress

* working user selector

* adds loading and error states to user selector

* nicer popover button

* default graphiql to use service role key

* styling updates

* fix padding in graphiql

* add service role warning to graphiql

* add user impersonation to realtime inspector

* add feature flag

* use Alert_Shadcn_ instead of old Alert

* Update apps/studio/lib/role-impersonation.ts

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* update title

* Update apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/Icons.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* add constant padding at the bottom of user selector

* update graphiql buttons font size

* make rls warning dismissable

* use text-foreground on rls warning title

* fix no results while impersonating a role

* fix error line number when impersonating a role

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-12-04 04:45:11 +00:00
Tyler e4a8323fe3 docs: change require to import in code sample (#19328)
change require to import in code sample
2023-12-04 13:28:22 +09:00
shinriyoandCharis e4d4fc584e Update with-svelte.mdx (#19398)
It does not use an FQDN for the redirect.
It should be http://localhost:5173/

FQDN do means "Fully" Qualified Domain Name.

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-04 03:24:15 +00:00
7abc9d24c4 Chore/more server actions (#19379)
* First

* Fix the parsing of SQL.

* Get thread data action

* Remove old page

* Wait for data to complete

* SSR everywhere

* Remove unused

* Add monaco settings

* update loaders

* Add sorting

* supress hydration warnings

* Fix profile layout

* more server action action

* fixes

* Update page.tsx

* Update actions.ts

* Update AssistantChatForm.tsx

* init

* add polling

* Update actions.ts

* redirect to message id

* Update page.tsx

* Update page.tsx

* handle run loading states with use client state with valtio

* reduce first load JS

* test action v1

* test action v2

* server action test 3

* test action 4

* test action 5

* test 6

* test 7

* test 7

* test 8

* test 9

* test 10

* test 11

* TEST 12

* TEST 13

* try and make it work

* Update page.tsx

* Update actions.ts

* redirect added in

* Update page.tsx

* Update SchemaFlow.tsx

* Update SchemaFlowHandler.tsx

* 14

* Update SchemaFlow.tsx

* move parse tables to client

* a11y fixes

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-03 21:01:14 -03:30
CropWatchandCharis 95fddcc5fb Update postgres-changes.mdx (#19368)
Fixed spelling mistake

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-02 22:05:53 +00:00
Justin ChavezandCharis 9055176d1b Update downloads.mdx with correct private storage URL (#19375)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-02 22:03:09 +00:00
JamesandCharis 7f773778d7 Add Roboflow to Third-Party Tools in AI & Vectors section (#19272)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-02 10:02:20 -05:00
a5ffe1e693 Chore/remove react query (#19332)
* First

* Fix the parsing of SQL.

* Get thread data action

* Remove old page

* Wait for data to complete

* SSR everywhere

* Remove unused

* Add monaco settings

* update loaders

* Add sorting

* supress hydration warnings

* Fix profile layout

* more server action action

* fixes

* Update page.tsx

* Update actions.ts

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-12-01 15:41:51 -03:30
Jonathan Summers-Muir cabba4400b chore: sitemaps update (#19372) 2023-12-01 17:31:30 +00:00
Ramiro Nuñez Dosio e39215d7b8 Removed duplicate sentence. (#19369) 2023-12-01 14:48:59 +00:00
3483c59e33 Automatic CLI login (#19362)
* Automatic CLI login

* Added images.

* Create Kamil's author and add images.

* Fix filename and other things.

* Update 2023-12-01-automatic-cli-login.mdx

* Fix description.

* Fix video.

* fix blog

* Fix date.

* Updated text based on Stojan's feedback.

* Update apps/www/lib/authors.json

Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>

* Update apps/www/_blog/2023-12-01-automatic-cli-login.mdx

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
2023-12-01 14:16:01 +00:00
Ivan Vasilov 5fed762d1f fix: Remove the become a partner button from the Experts page (#19359)
* Remove all become a partner buttons from the partner page.

* Move the private env vars to env.local.example
2023-12-01 11:48:39 +01:00
Joshen LimandCopple f65c847b54 Chore/rls ai assistant updates (#19325)
* Have rls ai assistant sit in feature preview + shown via feature flag

* Support editing existing policy in new AI assistant panel

* Beef up feature preview

* Shift AI settings modal to components/ui and add AI settings to RLS AI assistant panel

* Update apps/studio/components/interfaces/App/FeaturePreview/RLSAIAssistantPreview.tsx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/studio/components/interfaces/App/FeaturePreview/RLSAIAssistantPreview.tsx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
2023-12-01 11:24:12 +01:00
Thor 雷神 Schaeff 3a41744af8 chore: update docs with new helper types. (#19163)
* chore: update docs with new helper types.

* chore: update naming.
2023-12-01 08:01:21 +00:00
Joshen Lim 8467b847c5 Enforce pg 15 to enable branching (#19354) 2023-12-01 15:57:26 +08:00
Guillem García faf66c0d39 docs: change Local Development href to '/guides/cli/getting-started' (#19336) 2023-11-30 18:56:52 -05:00
Ivan Vasilov f102168588 fix: Ignore other types of statements when parsing the SQL query (#19343)
Allow other types of statements in the SQL query, but only createStatement will be type-safe and taken into consideration.
2023-11-30 18:23:19 -03:30
Joshen LimandJonathan Summers-Muir 6435c945b2 Chore/enabling branching fixes (#19324)
* Close branch modal when navigating to other page

* Remove pitr gate for enabling branching and add strong recommendation instead

* Fix SSL toggle not triggering

* Update EnableBranchingModal.tsx

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-30 20:58:07 +00:00
Jonathan Summers-Muir 903be591de schema visualizer styles moved to UI package (#19313)
* init

* tidy
2023-12-01 04:41:33 +08:00
Ramiro Nuñez Dosio 1dc0fe35e2 Fix typo (#19339) 2023-11-30 18:28:25 +00:00
Oliver Rice b919cc6506 Replace references of dbdev pglet with package for easier terminology (#19337)
remove reference of dbdev pglet and replace with package
2023-11-30 19:13:12 +01:00
Jonathan Summers-MuirandTerry Sutton 5ef9784506 chore: added pattern UI for assistant input (#19294)
* chore: added pattern for input

* migrated whole form over

* Update packages/ui/src/patterns/AssistantChatForm.tsx

* Update packages/ui/src/patterns/AssistantChatForm.tsx

* Update packages/ui/src/patterns/AssistantChatForm.tsx

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-11-30 14:22:39 -03:30
a51cc06f41 Customer Story: Shotgun (#19329)
* Customer Story: Shotgun

* Update apps/www/_customers/shotgun

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/www/_customers/shotgun

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Added avatar and image.

* Add file type

* add shotgun images and clean up

* update article date

* optimize image

* optimize image

* Last changes.

* Fixes.

* fix prettier

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2023-11-30 15:24:26 +00:00
Ivan VasilovandGreg Richardson 33f617a6cc Migrate all apps and packages to use OpenAI v4 lib (#19270)
* Migrate all apps and packages to use OpenAI v4 lib.

* Minor fix.

* refactor: improve types for completion chunks

---------

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
2023-11-30 09:01:51 +00:00
Terry SuttonandCharis 38dfd14c31 Chore/update branching doc (#19116)
* Updates

* update

* Update apps/docs/pages/guides/platform/branching.mdx

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

* Update apps/docs/pages/guides/platform/branching.mdx

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

* Update apps/docs/pages/guides/platform/branching.mdx

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

* Prettier

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-11-30 01:02:45 +00:00
Jonathan Summers-Muir d01e7b5df6 Update index.tsx (#19305) 2023-11-29 20:40:31 -03:30
Terry SuttonandIvan Vasilov 59084e547d Dont assert data existing (#19316)
* Dont assert data existing

* Fix other two occurrences.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-11-30 01:06:17 +02:00
Francesco Sansalvadore 98f5ea35c5 Update PromoToast (#19311)
update PromoToast visual
2023-11-29 23:27:36 +01:00
Joshen LimandCopple f56bfa58cb Chore/enforce pitr for enabling branching (#19303)
* Enforce PITR on dashboard to enable branching

* Add warning if disabling pitr when branching is enabled

* Update apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Prettier

---------

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
2023-11-29 21:14:26 +08:00
Kevin Grüneberg 0c5022c170 chore: bump next / remove unused webpack config (#19300) 2023-11-29 10:57:36 +00:00
Joshen Lim 0fbbb70817 chore: bump simple maps (#19302) 2023-11-29 11:48:37 +01:00
Kevin Grüneberg 2e69df4bb4 chore: bump openapi-typescript (#19299) 2023-11-29 11:17:03 +01:00
1f38fe2012 feat: New Policy Editor (#19166)
* Add two more sizes to the Panel component.

* Add alias for the older openai-api library. The new one is added under the openai name.

* Add API routes

* Add components for the new AI RLS panel.

* Bunch of changes to the AI Policy Editor.

* Add a button for opening the new Policy Editor.

* Add a feature flag for the new editor.

* Add a confirmation modal when closing the panel.

* Fix leftover data when closing the panel.

* Make the copy button work.

* Add the next/swc packages to package-lock.json.

* Merge master

* Scaffold debug sql in rls editor

* Small improvements to policy chat

* Hook up debug to ai assistant panel

* Improve debug UX

* Add debug request badge

* Some styling fix

* Small styling fix

* Another small styling fix

* Shift create new policy ai button + fix error stylign with code editor height

* Add tooltips to apply changes and copy code from assistant message

* Hide assistant button is not platform

* Small lint

* Add default error handlers to all AI RQ mutations

* Small fix

* Remove IS PLATFORM check for rls assistant

* Add placeholder to RLS code editor

* Fix diff + rls code editor

* Add placeholder message after sending prompt

* Small style

* RLSCodeEditor hit tab if empty to populate placeholder text

* Light mode nudeges

* Update logic for when confirmation close modal should show

* Set render overview ruler as false for rls diff editor

* improve chat UX to make it smoother (thank you alaister for your help 🙏)

* Dynamically do keepPreviousData

* Gracefully handle errors for add prompt

* Use animated ai icon while message is loading

* using Sheet component

* Address commernts

* Bit more improvements

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-29 17:12:50 +08:00
Pamela Chia f07fc0bfa3 chore: update privacy policy (#19258)
* chore: update privacy policy

Update new privacy policy and previous version.
Removed services that we stopped using in supabase

* fix: convert cookies table to use purer markdown
2023-11-29 15:15:39 +08:00
Copple a038a1e123 fix broken images (#19287)
* fix broken images

* trying new images

* remove broken
2023-11-28 20:40:42 +00:00
Jonathan Summers-MuirandTerry Sutton d1c65ed77d chore: add non authenticated flow (#19243)
* add a new component for input

* add textArea

* some colors

* rename

* Update page.tsx

* move files

* Update ChatInput.tsx

* Update Header.tsx

* chore:upgrade next14

* Update package-lock.json

* update graphql

* add graphql dep

* Update package.json

* Update package-lock.json

* added server action in

* more actions

* getting actions in everywhere

* Update ConfirmDeleteThreadModal.tsx

* Update Input.tsx

* update modal action

* Bump nextjs in database-new to v14.

* fix build

* trying server hooks

* more experiemntal stuff

* update delete

* shimmering

* update thread UI

* Update actions.ts

* Update actions.ts

* Update Thread.tsx

* Update Input.tsx

* updated

* delete thread updated

* chore: add non authenticated flow

* fix build

* Update page.tsx

* fix builds

* Update package-lock.json

* Update package.json

* Update package-lock.json

* Add login message

* Cleanup

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-11-28 15:35:06 -03:30
Francesco Sansalvadore fa85d9febd Chore x (#19282)
update share copy
2023-11-28 16:32:04 +00:00
T04435 d5340a94a8 docs: fix bug in ssr guide email flow pkce (#19281) 2023-11-28 16:08:27 +00:00
Jonathan Summers-MuirandTerry Sutton fe053fffb1 Chore/server state hooks (#19203)
* add a new component for input

* add textArea

* some colors

* rename

* Update page.tsx

* move files

* Update ChatInput.tsx

* Update Header.tsx

* chore:upgrade next14

* Update package-lock.json

* update graphql

* add graphql dep

* Update package.json

* Update package-lock.json

* added server action in

* more actions

* getting actions in everywhere

* Update ConfirmDeleteThreadModal.tsx

* Update Input.tsx

* update modal action

* Bump nextjs in database-new to v14.

* fix build

* trying server hooks

* more experiemntal stuff

* update delete

* shimmering

* update thread UI

* Update actions.ts

* Update actions.ts

* Update Thread.tsx

* Update Input.tsx

* updated

* delete thread updated

* fix build

* Update package-lock.json

* Update edit thread modal

* fixing build

* reset

* Update package-lock.json

* Update SpreadsheetImport.utils.ts

* reset

* Update package-lock.json

* Update sitemap_www.xml

* pacakge update

* change to node 18

* Fix deleting threads

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-11-28 12:35:44 -03:30
Rodrigo Martins Mansueli 356f1ef654 chore: Update grafana link (#19279)
Update metrics.mdx
2023-11-28 12:59:17 -03:00
Francesco SansalvadoreandJonathan Summers-Muir 7c8ac579a4 Feat x (#19250)
* make dark: selector work again

* create new LWX page and move previous to lw8 folder

* set up initial sign in with github flow

* set up ticket layout

* clean up TicketForm

* connect to lwx_tickets table and sign in with github

* update landing page content

* ticket layout

* share actions

* add prize section

* fix lw7 types

* fix lw7 types

* update content

* update realtime icon color

* lwx og ticket

* cleanup

* fix types in previous lw

* fix ticket copy icon
gst

* add lwx Promo banners

* golden ticket

* lwx-ticket-og

* update announcement banner

* update

* update colors

* update swag prize

* add padding to keyboard image

* update text
gst

* update ticket bg and countdown colons

* clean up

* update lwx cta color

* update functions

* platinum

* update og

* update og

* add og image and update supabase logo

* add ticket customization form

* update meta description

* fix import

* fix import

* bg

* fix realtime

* add hover interaction on lwx shape

* svg loader

* setTimeout on window.open to fix safari

* eager load ticket assets

* eager load background

* use next/link for ticketActions

* design PromoToast

* promoToast in docs

* fix referral link

* fix stuff

* update og functions

* update og functions

* update PT timezone shift

* update ticketing flow layout

* update ticketing flow layout

* prefetch right user link

* toggle ticket customization form

* update og regular bg

* remove lwx title when ticket

* remove edit button on ticket in share page

* optimize og generation function

* asd

* fix www announcement banner

* spacing

* center share link

* update mobile ticket bg

* maybe add logic to hide presence if low traffic

* add lwx favicon

* truncate shareable url

* fix keyboard image ratio

* update discount copywriting

* add keyboard controls to customization form

* update lwx favicon

* update lwx favicon

* update FaviconImports

* update tickets page

* stickers

* Revert "stickers"

This reverts commit d7d7d9beb9.

* update lockfile to fix turbo darwin 64 bug

* stickers

* make x always visible on mobile

* format favicon manifest

* update social sharing text

* fix typo

* update social share text

* remove window.open

* update promo toast info

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-11-28 16:31:14 +01:00
CoppleandCharis 5cdea0d426 Adds a detailed overview for FDWs (#19039)
* Adds a detailed overview for FDWs

* Update apps/docs/pages/guides/database/extensions/wrappers/overview.mdx

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

* Apply suggestions from code review

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

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-11-28 14:04:47 +00:00
Joshen LimandAlaister Young f47a7385ab Assign keys to each side panel editor on the table editor to ensure that input fields have the latest data (#19264)
* Assign keys to each side panel editor on the table editor to ensure that input fields have the latest data

* move rowsPerPage to valtio + more cleanup

* remove sidepanel row optimistic updates

* Change prop for listbox in input field from default value to value

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-11-28 21:24:37 +11:00
Yaoda LiuandCharis 3786aa54fc Update document image-search-openai-clip.mdx (#17621)
* Update document image-search-openai-clip.mdx

Update document for breaking changes.

* Update apps/docs/pages/guides/ai/examples/image-search-openai-clip.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-11-27 18:47:20 -05:00