Commit Graph
10944 Commits
Author SHA1 Message Date
Jacint VargaandCharis 07bfcfbc3c docs: updated with-expo-react-native.mdx (#26705)
The `react-native-url-polyfill` is not needed in Expo anymore since SDK 50 (the latest SDK is 51).

You can read more about it here:  https://docs.expo.dev/versions/unversioned/sdk/url/

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:37:44 +00:00
f00fandCharis c4f90f68cc Update uuid-ossp.mdx (#26965)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:28:57 +00:00
ryuandCharis e259e4f2f6 docs: improve routing examples with Hono (#26933)
* docs: fix routing examples with Hono

* Update apps/docs/content/guides/functions/routing.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:26:51 +00:00
Michael ChicheandCharis e9750aa07c Update custom-claims-and-role-based-access-control-rbac.mdx (#26948)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:22:00 +00:00
eecff51ecf docs: Added missing dashboard generated types alternative (#26961)
* Add section on generating types from Supabase dashboard

* Added whitespace

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

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:20:44 +00:00
Punith G 4e7ff2a245 docs: wrap url and anon key strings in quotes for flutter connection example (#26939)
docs: wrap url and anon key strings in quotes
2024-06-03 23:33:45 +00:00
Liam BirkinandCharis 7527f3a71d docs: Fix broken link (#26972)
fix broken link

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-03 23:33:28 +00:00
Jimin (Aaron) SonandFrancesco Sansalvadore 18b72f3756 fix(www/components): does not match other buttons and styles (#26922)
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2024-06-03 18:12:01 +02:00
Jordi EnricandTerry Sutton 7c1d83e910 add panel to show selected log in logs explorer, and some ui fixes (#26925)
* add panel to show selected log in logs explorer, and some ui fixes

* fix type error

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-06-03 17:31:44 +02:00
Alaister Young 8e47d317fa chore: pg-meta functions (#26881)
* start pg-meta functions

* pg meta create function

* pg meta database functions update and delete

* fix ts

* update execute sql error type

* update execute sql error type

* remove duplicate database functions query
2024-06-03 23:21:19 +08:00
O-AdityaandCharis Lam 1775dd17de Fix #26802: Implement client-side only JWT secret generation (#26831)
* Fix #26802: Implement client-side only JWT secret generation

* generate random string with getRandomValues

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-06-03 14:56:55 +00:00
Jordi Enric 4e394de864 add link to configuration docs, simplify text. (#23437) 2024-06-03 16:54:11 +02:00
Jonathan Summers-Muir 5e6a3438eb [Design System] chore: add scroll example of Navigation Menu (#26974)
* init

* Update navigation-menu.mdx

* Update navigation-menu.tsx
2024-06-03 16:40:32 +02:00
Joshen LimandAlaister Young 4637140e72 Fix downgrade network error causing UI crash (#26919)
* Fix downgrade network error causing UI crash

* Ensure that all try blocks have at least a catch block and not an empty finally block

* Update apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx

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

* Update

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-06-03 11:08:39 +08:00
Thor 雷神 SchaeffandCharis 1a571a2368 docs: edgy bedrock. (#26909)
* docs: edgy bedrock.

* fix: nav.

* 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>
2024-06-01 22:28:39 +08:00
Jordi Enric aa84f7f60b fix warehouse rows & update UI for event detail (#26891)
* ui fixes, rendering data in warehouse table fixed

* reduce padding in header

* rm test of copy button since it was moved elsewhere
2024-05-31 20:59:28 +02:00
hallidayo e252b4ec00 feat: creating/editing enums margin (#26843)
top and bottom margin
2024-05-31 18:05:49 +00:00
Wen Bo XieandJoshen Lim cd930f5a2f feat: add IPv4 add on direct conn notice (#26903)
* feat: add IPv4 add on direct conn notice

* feat: add session mode warning

* fix: remove statement from Supavisor-related types

* Revert change in api types file

* Revert change in api types file

* Update API types file via codegen

* Smol feex

* Temp lint fix

* Fix

* fix: include serverless mention

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-05-31 17:07:25 +00:00
Imran GardeziandCharis d2bd47a32a Adds documentation for edge-functions quickstart set up with Intellij IDEA (#26911)
* Adds documentation for edge-functions quickstart set up with intellij idea

* update copy

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-31 17:00:55 +00:00
Dan RylandandCharis 92b7a33b49 fix: switch undefined variable ref from countries to todos (#26743)
* fix: switch variable ref from countries to todos

* fix: duplicate const

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-31 16:24:17 +00:00
Charis 4c9c96a159 fix(sveltekit ssr docs): createBrowserClient use (#26872)
In the abbreviated SvelteKit SSR instructions, `createBrowserClient` is
used in hybrid code that runs on both the server and client, with
changes in the configuration depending on where it's run. That's just
confusing, because the name implies it should not run on the server.

Change it to match the full SvelteKit SSR tutorial, which selectively
runs `createBrowserClient` or `createServerClient` depending on the
current environment.
2024-05-31 11:43:29 -04:00
Alaister Young c8c52bbca9 feat: disable project upgrade (#26920) 2024-05-31 17:10:47 +08:00
Bobbie Soedirgo ea9cfb921a docs(js): add example for deleting a record and returning it (#26855)
* docs(js): add example for deleting a record and returning it

* docs(js): clarify response object

Make it more obvious that `status` and `statusText` comes from the whole
response object, not from `data` or `error`
2024-05-31 16:53:44 +08:00
Bobbie Soedirgo b90ddcef21 docs(js): add example on setting timeout (#26825) 2024-05-31 16:53:34 +08:00
Alaister Young 54046046b0 feat: disable project restarts (#26918)
* feat: disable project restarts

* invert
2024-05-31 08:46:50 +00:00
Joshen Lim 14526f1b96 Update storage settings max file upload size (#26916) 2024-05-31 16:13:42 +08:00
Kang Ming ac7922b84c docs: update auth docs (#26878)
* docs: fix broken links

* docs: update auth docs
2024-05-31 16:07:43 +08:00
Lakshan Perera 15bd61ab25 fix: links and formatting in Edge Functions status codes guide (#26907)
fix: links in Edge Functions status codes doc
2024-05-31 09:33:46 +02:00
Jon Meyers d376fee166 Move embedded video to ToC (#26905)
move embedded video to toc
2024-05-31 14:55:06 +08:00
Joshen Lim 6df893bfc7 Fix icon size in storage settings (#26912) 2024-05-31 14:48:27 +08:00
Joshen Lim 0d7137209c Chore/sentry fixes 280524 (#26828)
* UpgradeToPro remove project ref and org slug props

* Add check in Docs/ResourceContent

* Add conditional for accessing query property in QueryPerformanceGrid

* Add fallback value for lastPage in notifications-v2-query

* Simplify logic for finding api key in TerminalInstructions, EdgeFunctionDetails, [ref]/api/index

* Minor fixes and refactors

* Fix type issues
2024-05-31 10:52:18 +08:00
Joshen Lim 97853287f3 Add empty state for auth hooks page (#26889)
* Add empty state for auth hooks page

* Remove unused imports
2024-05-31 10:02:55 +08:00
Wen Bo Xie 282db663ec docs: add physical to backup type table (#26876) 2024-05-30 18:58:26 -07:00
Hieu d855bfb3f8 feat: automate mgmt api spec update (#26655)
* fix: correct mgmt api naming

* feat: new command to generate mgmt api sections

* feat: sort section items

* chore: tidy up

* fix: add generate sections to the default command

* feat: add gha to auto update mgmt api docs

* chore: tidy up

* fix: operationId logic to support self-hosting references

* chore: update latest mgmt api specs

* chore: update latest mgmt api specs
2024-05-31 08:53:19 +07:00
Lakshan Perera a133a111d2 Some updates to Edge Functions guides (#26877)
* chore: link to Sentry guide from Debugging section

* chore: Change Edge Function Quickstart to Get started

This section isn't much of a quickstart. Updated the first guide title
to "Create an Edge Function"

* chore: moved Edge Functions limits to a separate page

* chore: added a page on HTTP Status codes Edge Functions can return
2024-05-30 16:56:32 -02:30
Kevin Grüneberg 6fedc2a7bf chore: more clear read replica costs (#26883) 2024-05-30 19:43:38 +08:00
angelicoandDiv Arora f697169c7f chore: updates to Read Replica documentation (#26813)
* chore: docs on selectively restarting a Read Replica

* chore: updates to read replica docs

* fix: failing GHAs

* chore: add read replica related fields to logConstants

* chore: add docs on read replica logging

* chore: prettier

* fix: spelling errors

* Update apps/docs/content/guides/platform/read-replicas.mdx

Co-authored-by: Div Arora <darora@users.noreply.github.com>

* Update apps/docs/content/guides/platform/read-replicas.mdx

Co-authored-by: Div Arora <darora@users.noreply.github.com>

* chore: elaborate on how `Init failed` can happen

* chore: elaborate on replication lag

* fix: the the

* chore: prettier

---------

Co-authored-by: Div Arora <darora@users.noreply.github.com>
2024-05-30 18:47:55 +08:00
Francesco Sansalvadore 7f42a81dce Chore/custom html elements cleanup (#26836)
* clean up CustomHTMLElements duplication

* save file

* docs --passWithNoTests

* update CustomHTMLElements.utils.test file to tsx
2024-05-30 10:45:57 +02:00
Francesco Sansalvadore b88adfef46 fix contentlayer build errors (#26822)
* move contentlayer/generated order in tsconfig

* temporarily fix contentLayer build bug

* temporarily fix contentLayer build bug

* temporarily fix contentLayer build bug

* revert dep update

* contentLayer

* revert contentLayer tsconfig change

* contentLayer postbuild

* update contentLayer script path

* change directory in content:fix www script

* content:fix in turbo package.json

* n_modules

* edit node_modules from script

* remove sitemap gen

* remove tsconfig change

* remove package.json change
2024-05-30 16:12:54 +08:00
Felix GablerandThor 雷神 Schaeff 2a7bc47057 Update docs to maybe optimize RBAC functions performance (#22894)
docs: optimize RBAC functions performance

Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com>
2024-05-30 08:07:07 +00:00
Inian 94c1973752 fix sql in pg_graphql example (#26880) 2024-05-30 15:47:52 +08:00
Alaister YoungandHan Qiao 193ce3ba8d fix(studio): jwt secret for self-hosted (#26858)
* fix(studio): jwt secret for self-hosted

* update jwt secret variable name in postgrest config files

* fix: add jwt secret to self hosted studio (#26859)

* fix: add jwt secret to self hosted

* chore: rename env var

---------

Co-authored-by: Han Qiao <sweatybridge@gmail.com>
2024-05-30 05:53:23 +00:00
Jordi Enric 483492564d disable warehouse tenant query when ff is disabled (#26873)
* disable warehouse tenant query when ff is disabled

* rm unecessary check

* disable warehouse queries when warehouse flag is off or not in warehouse querytype

* fix useeffect forcing query to refetch when disabled
2024-05-30 01:30:43 +02:00
Ivan Vasilov e1cf9d61ae fix: Fix the sort feature in the Table editor (#26865)
* Expand the Sort type with a table property.

* Add a qualifier for the sort when sending a fetch table query.

* Fix the tests.
2024-05-29 17:02:54 -02:30
Tyler 3deeeb4988 docs: Add response and params to the storage reference docs for Flutter (#26815)
* docs: Add response and params to the storage reference docs for Flutter

* update storage response language to dart

* revert the sample response type to json
2024-05-30 03:26:08 +09:00
Chris Caruso 7d8e2a49eb Update humans.txt (#26862)
Updating humans.txt new line for Chris Caruso
2024-05-29 12:13:50 -05:00
764d10986d vitest & msw integration (#26303)
* Fix tests in tests/unit, tests/components and files under tests, looking into tests/pages

* Fix tests under pages/projects root

* Fix

* Comment out broken tests that im stuck with

* Fix api-report.test

* Fix storage-report-test

* chore: fix some tests

* chore: remove logging

* Fix LogsPreviewer.test.js

* Fix most of logs-query-test

* Skip broken tests instead of false positiving them

* Replace jest with vitest

* Rename all *.test.js to *.test.ts

* Configure vitest to work with jsx

* fix vitest issues, fix tests, skip broken tests, add msw, add next-router-mock

* uncomment file

* add tests for msw and nrm

* Fix failing tests

* fix tests in RowEditor

* fix datepicker tests

* fix type errors and comment out tests that need some refactoring

* leave 1 test so test script works

* rm clog and aaaaa

* rename script

* move msw to studio

* add pckg json which i forgot in last commit

* rm consolelog

* move vitest ui dep

* Move next-router-mock to studio.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: TzeYiing <ty@tzeyiing.com>
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-05-29 17:31:20 +02:00
0a0f2260f9 Chore/gracefully handle large text or json in table editor (#26792)
* Support rendering large text/jsons in grid

* Support rendering large json in side panel, and large text in grid

* Support rendering large text in side panel

* Fix

* Update comment

* Fix the editValue type for json fields.

* Fix

* Update blur value

* Fix

* Feex

* Padding bump

* Small refactor

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-05-29 17:10:07 +08:00
Jonathan Summers-Muir 81b1dc2161 [Dashboard] Postgrest API settings renamed to "Data API" settings. now using react-hook-form (#26793)
* init layouts in project settings

* Update general.tsx

* update gap

* Update Scaffold.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* spacing issues

* now added a enabled switch

* Revert "now added a enabled switch"

This reverts commit f22050302a.

* Update PostgrestConfig.tsx

* Update project-postgrest-config-update-mutation.ts

* add bottom padding

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update multi-select.tsx

* Update multi-select.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx
2024-05-29 17:01:56 +08:00
9fd85e76fb feature: warehouse (#23714)
* add event collection ui, queries, routing

* fix alignment issue

* renaming

* wip

* feat: initial data hooks and integration with feature flagging

* update with naming, correct mocks, etc

* feat: add source crud integration

* mock data, fix form, add motion to drawer

* feat: optimize warehouse fetch behaviour

* feat: add in valid query

* chore: ermove collection mocks

* feat: optimize tenant fetching

* cleanup + update openapi client + fix fetch calls

* cleanup imporst

* on delete success, redirect to main logs page

* fix dropdown event propagating to link and opening page

* Refactor code to use useParams and useRouter in CreateWarehouseCollection.tsx, WarehouseCollectionDetail.tsx, and LogsLayout.tsx

* clean warehouse query

* warehouse access tokens create, list

* add warehouse access token revokal

* fix access tokens table, fix access tokens revoke feature

* format date in access tokens table

* fix some state issues and warnings in access tokens forms

* warehouse/feat: introduction when creating event collections (#23244)

feat: add introduction for event collections

* warehouse/feat: rename headers and nav items (#23243)

* feat: rename headers

* feat: use feature flag for navigation bar

* move header name flag to component

* fix typeerror in create collection query

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>

* ui fixes, rm deprecated icons

* render table with events

* fix typeerror results arr

* add pagination

* some ui fixes

* fix loading states, format dates, test connection dialog

* patch type errors

* Fix access token selection in TestCollectionDialog and update column name in WarehouseAccessTokens

* rm unused querytype

* rm unused querytype in logtable

* patch type errors in warhouse collection mutations

* rm unused component

* mr unused import

* show connection dialog in staging

* fix Run btn now showing up

* fix undef argument

* show pagination only when there are results

* fix issues in connection dialog, improve ux

* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseAccessToken.tsx

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>

* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseAccessToken.tsx

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>

* fix infinite render loop, adapt component to render log metadata on log selection

* rm unused import, prevent ui from breaking when some data may be missing from an event

* update WAT create mutation to use template

* follow mutation template in delete access token mutation

* refactor naming, improve code in some areas

* rm unused mocks for msw

* skip tests - this will get fixed on the vitest PR

* Update apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx

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

* fix loading compo

* rm unused import

* use correct alert title

* rm unnecessary div

* fix layout in projectpaused alert

* fix type err, refactor to new method

* rm observer

* rm observer

* refactor warehouse collections update

* use correct get method, comment out so it doesnt err

* use correct method

* fix formatting issues

* ref imports

* ref imports

* clean up imports

* clean imports

* clean imports

* rename props

* destructure props

* cleanup imports

* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseCollection.tsx

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>

* ref scale class

* cleanup divs

* Update apps/studio/components/interfaces/DataWarehouse/TestCollectionDialog.tsx

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>

* refactor to rhf

* reuse types, cleanup, refactor to react query hooks instead of el events

* refactor table component to handle empty state

* Update TestCollectionDialog to use unique keys for SelectItem components

* Update TestCollectionDialog to use unique keys for SelectItem components

* Update TestCollectionDialog to use unique keys for SelectItem components

* fix empty state ui

* use destructured queries

* rename query types

* Update apps/studio/components/interfaces/DataWarehouse/WarehouseAccessTokens.tsx

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>

* chore: Refactor WarehouseCollectionDetail component

* rm unused imports

* rename loadolder

* rm typcast

* rhf in create token

* improve err handling

* refactor to rhf, refactor queries, use cn utils, cleanup

* fix loading logselection

* add correct type to warehouse access tokens query

* use correct types in err & clean unused types

* toggle token in curl exampel

* use product empty state component in warehouse

* add client side validation of collection name, temp fix

* add New badge

* update testcolldialog

* cleanup unnecessary div and rm double border

* code style fixes

* handle err

* code style fix

* add correct type

* add correct err type

* fix type error

* fix type err

* fix missing type

---------

Co-authored-by: TzeYiing <ty@tzeyiing.com>
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-05-29 10:32:46 +02:00