Commit Graph
28090 Commits
Author SHA1 Message Date
Jonathan Summers-Muir f428ce5ef9 Chore/update careers list (#26735)
* add surface-75 for dark

* Update index.tsx

* Update index.tsx

* Update index.tsx
2024-05-27 12:02:52 +08:00
Terry Sutton 24f9b54db1 Chore/lint gridheaderactions (#26750)
Adjust logic for GridHeaderActions
2024-05-24 18:00:56 -02:30
Jon Meyers 068d822568 Add indexing video embed to database docs page (#26745)
add indexing video embed
2024-05-24 17:23:36 +02:00
Jonathan Summers-Muir 3b99dad9a1 [Design System] Feat: BeforeLabel / AfterLabel props for <FormItemLayout/> and <InfoTooltip/> documented (#26712)
* init

* Update package.json

* Update index.tsx
2024-05-24 09:40:15 +00:00
Jonathan Summers-Muir ec760d4e97 add Admonition to Design System (#26710)
* add Admonition to Design System

* added notices about FormLabel

* Update label.mdx
2024-05-24 09:21:41 +00:00
Joshen LimandJonathan Summers-Muir 73d77a2fd8 Fix text confirmation modal not resetting input field (#26696)
* Fix text confirmation modal not resetting input field

* Remove usage for undeclared variable folderName

* Update dependency array to reset form in text confirmation modal to be confirmString instead

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-05-24 17:18:31 +08:00
Francesco Sansalvadore 511e7c728c docs: fix broken links (#26711)
* fix rest api docs nav links

* remove unused data-apis page
2024-05-24 11:09:11 +02:00
Jonathan Summers-Muir 84255343be [Design system] Update changelog.mdx (#26736)
Update changelog.mdx
2024-05-24 17:08:15 +08:00
Joshen LimandAlaister Young 0c81551110 RQ convert mutateAsync calls to mutate where possible, otherwise add try finally blocks (#26737)
* RQ convert mutateAsync calls to mutate where possible, otherwise add try finally blocks

* Skip eligibility query if project status is coming up

* Small UI update to replicas side panel

* Update apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx

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

* Add error handling in CIDR

* Prettier lint

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-05-24 16:58:49 +08:00
Jonathan Summers-Muir 6dff3a7369 [Design System] feat: Multi Select (#26719)
* chore: deprecate old files. add new one with first story

* init multi select

* docs

* Update multi-select.mdx

* deprecation notices

* Delete MultiSelect.stories.tsx
2024-05-24 15:54:51 +08:00
Francesco Sansalvadore d1037d95ba remove announcements (#26613)
* remove ga announcements

* remove commented badge
2024-05-24 09:29:07 +02:00
Francesco SansalvadoreandJonathan Summers-Muir 9c4eb2c2eb docs icons inconsistencies (#26715)
* fix docs inconsistent icons

* remove redundant and old icons

* revert links change

* fix prev link

* Apply suggestions from code review

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-05-24 07:04:22 +00:00
Francesco SansalvadoreandJonathan Summers-Muir 4bc3a231e3 contentlayer2 in www + dynamic latest blog posts (#26611)
* add contentlayer2 to www

* remove authorURL from blog post meta

* latest blog posts in Developers dropdown menu

* parse blog slug in contentlayer

* change next config plugins order

* contentlayer build in www package.json

* contentlayer2

* contentlayer2 build on typecheck in www

* remove comment

* Update package-lock.json

* revert npm package version

* Update package-lock.json

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-05-24 07:02:47 +00:00
Jonathan Summers-Muir 0acd2afa80 add surface-75 for dark (#26734) 2024-05-24 14:33:25 +08:00
aa90e578ca Chore/show unlock icon next to view entities (#23238)
* Show unlock icon next to views and foreign tables

* Temp header actions for all entities

* Add warnings for views and foreign tables

* Add labels for each entity type

* Cleanup

* Unneeded comma

* Remove unneeded useEffect

* Check lints on the entities menu too

* Pass exposed schemas to lint query

* Type cleanup

* Update

* Update lint, add 0016

* Fix materialized view logic

* Cleanup

* Grab lint count

* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx

Co-authored-by: Inian <inian1234@gmail.com>

* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx

Co-authored-by: Inian <inian1234@gmail.com>

* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx

Co-authored-by: Inian <inian1234@gmail.com>

* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx

Co-authored-by: Inian <inian1234@gmail.com>

* Language changes

* Use lints for gridheaderactions

* Types cleanup

---------

Co-authored-by: Inian <inian1234@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-05-23 16:52:03 -02:30
Mohammed Yasin MullaandCharis 2dc39a75a0 refactor: change the content of .env.local file of code block to all… (#26671)
refactor: change the content of .env.local file of code block  to allow the environment variables to be used in the Expo app directly without installing any 3rd party library & also refactored the utils/supabase.ts file to use the process.env formate while createing the client

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-23 18:08:04 +00:00
Charis 9c03be41e4 enhance(ref docs): add params and returns for realtime and storage (#26687) 2024-05-23 13:09:17 -04:00
Terry SuttonandIvan Vasilov 607a6930c5 move linting to api (#26341)
* Start

* Fix type issues.

* Remove client side lints

* Fix error handler

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-05-23 14:34:29 -02:30
8643c2549e Feat [atom component] stacked radio group / card radio group (#26612)
* init site

* add nav menu

* add props table component

* init all the examples

• also includes moving a bunch of ./ui files to ./ui-patterns

* update package

• might need to remove some of these

* Update rehype-component.ts

* move nav

* more changes

* add new source information to contentlayer

* fix copy buttons

* add text-confirm. start new concept of "fragments"

* move base path. add homepage. add theme selection

* added colors

* add form-item-layout

* temporary fix code blocks in light mode. they currently don't switch theme to theme

* start adding code themes

* Update dark.json

* update code block themes

* fix animations

* add cdmk search

* export registry of icons in ./icons package

* add comments

* add icon copy stuff

* Update icons.tsx

* more docs

* more docs. cleaned up colors and icons docs

* Update theming.mdx

* add more docs

* update

* add package

* Update tailwind.config.js

* update content

* Update drawer-demo.tsx

* Update aspect-ratio-demo.tsx

* add new blocks

* Update source-panel.tsx

* Update source-panel.tsx

* Update source-panel.tsx

* add new source block

* Update source-panel.tsx

* Update _app.tsx

* Update page.tsx

* Delete layout-old.tsx

* remove old themes

* remove old ui registry

* comment out nav items

* Update package-lock.json

* Update AssistantChatForm.tsx

* move back

* move again

* update

* Update index.tsx

* Update package-lock.json

* Update package-lock.json

* Update package-lock.json

* update package

* udpate prettier

* fix tag issues

* Update package-lock.json

* update to contentlayer2

* update package-lock.json

* fix type errors

* ignore spelling

* feat: add RadioGroupStacked

* feat: add `slot` behaviour to `<FormItem/>`

* sneaky add in better line highlighting

* add RadioGroupCard

* update colors

* Update package-lock.json

* Update avoid-typos.yml

* Update navigation-menu-demo.tsx

* Add a redirect from / to the base path.

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-05-23 17:44:45 +02:00
Terry Sutton 4ea0698cf3 Chore/add backup warning (#26704)
* Show warning that storage objects arent backed up

* Move alert to own component
2024-05-23 13:03:43 -02:30
Ivan Vasilov 71f860b28d fix: Use beforeSend hook in Sentry to check for telemetry consent (#26700)
* Add a beforeSend hook to sentry client config.

* Remove the canSendTelemetry function and all its uses.

* Use captureException for capturing unhandled error messages.
2024-05-23 17:04:27 +02:00
Guilherme Souza bd96a70ef0 chore(docs): add google sign-in guide for Swift (#26674) 2024-05-23 11:14:57 -03:00
Kamil OgórekandAlaister Young d590ec1ccc Add note regarding branching being disabled for GitHub integration panel (#26707)
* Add note regarding branching being disabled for GitHub integration panel

* tweak styling

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-05-23 12:24:08 +00:00
Jonathan Summers-Muir 0b46eed4c1 [Design system] Update homepage links (#26706)
update links
2024-05-23 13:58:47 +02:00
Jonathan Summers-Muir 803aa04645 Update site.ts (#26702) 2024-05-23 11:20:33 +00:00
Kamil Ogórek d6ed076ef2 feat: Allow for configuring branch limit per connection (#26394) 2024-05-23 11:04:01 +00:00
Aditya KarandFrancesco Sansalvadore 1395f09855 Fixed : Spacing for Simple APIs (#26495)
* Fixed : Spacing for Simple APIs

* fix : Typo -mb-48

* fixed the issue in auth page as well

* Update apps/www/pages/auth/Auth.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* modified apps/www/pages/database/Database.tsx | removed className='mb-48'

* Update apps/www/pages/database/Database.tsx

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2024-05-23 13:00:39 +02:00
Kevin Grüneberg f6fe8238d8 chore: switch to new slug based invoice endpoints (#26693) 2024-05-23 18:51:31 +08:00
Kamil Ogórek 22b651ab3e feat: Show Logs button in branching table (#26385) 2024-05-23 12:21:34 +02:00
Thomas 707f2fce4e fix/various improvements to Free plan downgrade [GEN-8955] (#26670) 2024-05-23 12:14:28 +02:00
b8243e06d8 Feat/design system site (#26586)
* init site

* add nav menu

* add props table component

* init all the examples

• also includes moving a bunch of ./ui files to ./ui-patterns

* update package

• might need to remove some of these

* Update rehype-component.ts

* move nav

* more changes

* add new source information to contentlayer

* fix copy buttons

* add text-confirm. start new concept of "fragments"

* move base path. add homepage. add theme selection

* added colors

* add form-item-layout

* temporary fix code blocks in light mode. they currently don't switch theme to theme

* start adding code themes

* Update dark.json

* update code block themes

* fix animations

* add cdmk search

* export registry of icons in ./icons package

* add comments

* add icon copy stuff

* Update icons.tsx

* more docs

* more docs. cleaned up colors and icons docs

* Update theming.mdx

* add more docs

* update

* add package

* Update tailwind.config.js

* update content

* Update drawer-demo.tsx

* Update aspect-ratio-demo.tsx

* add new blocks

* Update source-panel.tsx

* Update source-panel.tsx

* Update source-panel.tsx

* add new source block

* Update source-panel.tsx

* Update _app.tsx

* Update page.tsx

* Delete layout-old.tsx

* remove old themes

* remove old ui registry

* comment out nav items

* Update package-lock.json

* Update AssistantChatForm.tsx

* move back

* move again

* update

* Update index.tsx

* Update package-lock.json

* Update package-lock.json

* Update package-lock.json

* update package

* udpate prettier

* fix tag issues

* Update package-lock.json

* update to contentlayer2

* update package-lock.json

* fix type errors

* ignore spelling

* Update avoid-typos.yml

* Update avoid-typos.yml

* Update package-lock.json

* Use ui type definitions.

* move tsconfig base stuff. fix content layer issue

* Update package-lock.json

* Update package-lock.json

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-05-23 17:39:56 +08:00
Monica Khoury cd43912a2f Chore: block multiple account deletion requests (#26304)
* Chore: block multiple account deletion requests

* add key to LOCAL_STORAGE_KEYS
2024-05-23 09:02:47 +00:00
Monica Khoury 702539a4db Chore: change support category for Account Deletions request (#26675)
Change support category for Account Deletions request
2024-05-23 11:26:57 +03:00
Joshen Lim 5d5a5d57b6 Support viewing postgrest logs for replicas (#26692)
* Support viewing postgrest logs for replicas

* Fix
2024-05-23 15:52:52 +08:00
Joshen Lim 706ff040dc Update pool size warning (#26694)
* Update pool size warning

* Update warning if session mode is selected

* Update warning if session mode is selected

* Set warning
2024-05-23 15:46:54 +08:00
Jonathan Summers-Muir 8ce8a80a3c fix: local builds for ./www for community (#26596)
* add missing env var

* fix: build issues with misnamed tags

* Update .env.local.example
2024-05-23 06:56:44 +00:00
Joshen Lim 35506d8550 Allow dropping replica irregardless of status (#26691)
* Allow dropping replica irregardless of status

* Prettier lint
2024-05-23 14:37:36 +08:00
TheOtherBrian1andCharis a5785afba6 Add note about security definer views (#26571)
* Add note about security definer views

* expand acronym

* Update apps/docs/content/guides/database/tables.mdx

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

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-23 03:38:42 +00:00
Charis 3c196e3bf5 enhance(refs): add params and return examples for database and auth (#26676)
enhance(refs): add params and return types

Add params and return types for database and auth functions in
supabase-js library.
2024-05-22 19:55:00 -04:00
Jordi Enric ac83ab8e9e fix icon size and color (#26662) 2024-05-22 22:09:04 +02:00
Charis 2caf5ba564 enhance(docs): reorg google auth guide (web) (#25969)
* enhance(docs): reorg google auth guide (web)

* revert: sign in capitalization
2024-05-22 18:38:23 +00:00
Greg RichardsonandCharis 3f1df65bba SQL to REST translator (#25978)
* feat: sql-to-rest poc

* feat: sql-to-supabase-js poc

* chore: upgrade to libpg-query@15

* feat: sql-to-rest docs tool

* docs(sql-to-rest): add introduction

* docs: wording improvements

* fix: theme

* chore: tailwind placeholder

* feat(sql-to-rest): limit, offset, and range

* feat(sql-to-rest): sort by

* fix(sql-to-rest): ui theme

* feat(sql-to-rest): casts

* feat(sql-to-rest): dynamic faqs in ui

* feat(sql-to-rest): improve ui responsiveness

* feat(sql-to-rest): more advanced faqs in ui

* feat(sql-to-rest): http and curl syntax highlighting

* feat(sql-to-rest): baseUrl in http/curl rendering

* docs(sql-to-rest): clarification on curl flags

* feat(sql-to-rest): more faqs

* refactor(sql-to-rest): split faqs into own file

* refactor(sql-to-rest): move formatters to sql-to-rest package

* docs(sql-to-rest): move page to new tools section

* feat(sql-to-rest): joins and resource embeddings

* chore(sql-to-rest): rename 'convert' to 'translate'

* feat(sql-to-rest): add faqs

* feat(sql-to-rest): ui improvements

* feat(sql-to-rest): faq title adjustment

* feat(sql-to-rest): link to client lib docs

* feat(sql-to-rest): assumptions

* feat(sql-to-rest): friendly 'not supported yet' errors

* feat(sql-to-rest): json columns

* feat(sql-to-rest): remove curl -G flag if unused

* feat(sql-to-rest): better error handling

* chore: revert accidental rls ai work

* fix: build errors

* fix(sql-to-rest): theme

* feat(sql-to-rest): change base url

* feat(sql-to-rest): basic aggregate poc

* feat(sql-to-rest): group by

* feat(sql-to-rest): more group by checks

* feat(sql-to-rest): count(*) special case

* fix(sql-to-rest): tests

* feat(sql-to-rest): faq on 'and' operator

* fix(sql-to-rest): error messages

* fix(sql-to-rest): multiple filters on same column

* refactor(sql-to-rest): error hints

* feat(sql-to-rest): match and imatch

* feat(sql-to-rest): in operator

* feat(sql-to-rest): parsing error hints

* feat(sql-to-rest): default language to curl

* feat(sql-to-rest): format on cmd+s

* feat(sql-to-rest): format initial value

* fix(sql-to-rest): turn off tab query group

* feat(sql-to-rest): improve wording in error messages

* feat(sql-to-rest): animated code blocks

* feat(sql-to-rest): more error hints

* fix(sql-to-rest): strip primary relation prefix from columns

* feat(sql-to-rest): json column in order by clause

* feat(sql-to-rest): validate all referenced relations exist in from clause

* refactor(sql-to-rest): split core sql-to-rest lib into separate repo

* feat(sql-to-rest): upgrade to v0.1.1

* feat(sql-to-rest): upgrade to v0.1.2

* feat(sql-to-rest): upgrade to v0.1.4

* chore: upgrade libpg-query

* feat: update 'create a pr' link

* fix: app builds

* fix: prettier

* fix: typecheck

* fix: studio tests

* chore: remove console.log

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

* docs(sql-to-rest): remove broken link to client libraries

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-22 12:37:01 -06:00
Olivier 6bf236cce2 Update hybrid-search.mdx fix column name on documents table, fixes #26364 (#26365)
* Update hybrid-search.mdx fix column name on documents table

The function uses `doc_vector` but table is setup with `embedding` so changed it to `doc_vector`

* Update col description in hybrid-search.mdx

* Update hybrid-search.mdx

back to `embedding` as col name
2024-05-22 18:36:28 +00:00
Charis 69c1988965 fix: replace non-word chars in uploaded filenames (#26022)
fix: replace non-word chars in uploaded filenames

Storage maintains a list of allowed characters, which excludes some
characters used automatically by OSes for naming files (e.g., Mac
default screenshot naming). To preempt errors, replace any characters
that aren't alphanumerics, underscores, hyphens, or periods with
underscores.

See: https://forum.obsidian.md/t/unable-to-attach-screenshot-images-in-macos-14-0-when-wikilinks-turned-off-urlencode-u-202f-char/68410/6
2024-05-22 12:11:18 -04:00
Jordi Enric 9ded715346 fix crash in security advisor (#26658) 2024-05-22 10:56:35 -02:30
Monica KhouryandTerry Sutton adcf22c9aa Chore: Reorder support form fields for better user flow and clarity (#26473)
* Reorder support form fields for better user flow and clarity

* Modify subscription information box

* Modify whats shown after ticket submission

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-05-22 09:18:01 -02:30
Ivan Vasilov 79dbfd1ccc fix: Add sourcemaps and error stacks in Sentry errors (#26474)
* Use Sentry Error boundary.

* Add a button for throwing error to test the sentry error boundary.

* trigger an error during rendering.

* Move the throwing of error.

* Fix the error boundary state.

* Try to throw an error from the project list.

* Revert to using react error boundary.

* Minor fixes.

* Add an example page for throwing an exception to be caught by Sentry. Remove the error filter from the Sentry client config.

* Remove config for allowing errors only from our code.

* When capturing an exception with Sentry, add a tag if the exception is in the boundary.

* Minor fixes.

* Remove testing code.

* Move forgotten code.

* Add a function for anonymized user id.

* Set the sentry user id by anonymizing the actual user id.

* Don't send Sentry reports if the user hasn't consented to the telemetry.

* Add a helper function whether the studio can send telemetry data.

* Reuse the helper function in the _app file.
2024-05-22 10:35:15 +00:00
Pamela Chia ea40c7c99f chore: fix sentry policy (#26616) 2024-05-22 11:31:17 +02:00
Jordi Enric a9aa3acf72 Sentry: capture message on support form err (#26656)
capture message on support form err
2024-05-22 10:05:18 +02:00
Thibault CHAUSSONandCharis f5324af575 📝 Update pg_cron documentation with examples for calling function (#26186)
📝  Update pg_cron documentation with examples for calling database functions and stored procedures

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-22 02:08:52 +00:00