Commit Graph
3261 Commits
Author SHA1 Message Date
Kang Ming 5e83aa3c18 fix: add new slack provider & deprecate old one (#27864) 2024-07-09 12:33:59 -07:00
Ivan Vasilov bba0fabdcc fix: Fix a small loading flicker on the tables page (#27859)
* Remove fetching for schemas because the schema name is referenced everywhere.

* Fix the isSuccess flag to wait for all results.
2024-07-09 13:27:32 +02:00
Pamela ChiaandAlaister Young 8e2ecaaee5 chore: suggest sso at invite members (#27854)
* chore: suggest sso at invite members

* fix: change dialog to info box

* fix: add upgrade button for free n pro plan

* Update apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-07-08 14:19:55 +00:00
Jordi Enric 3cad1a5bf2 Move warehouse access tokens to its own page under settings (#27822)
* move warehouse access tokens to its own page under settings

* add desc

* rm unnecessary imports

* grmmar
2024-07-06 10:18:06 +02:00
Joshen Lim 5aa9c06f7b Support filtering projects by status, only either paused or active (#27818) 2024-07-05 19:05:44 +08:00
Tristan Rhodes 5029e333fd Fixed spelling typo (#27804) 2024-07-04 16:34:31 +00:00
Monica Khoury cb9eff3c0c Fix: convertArgumentTypes parsing bug (#27800)
* Fix: convertArgumentTypes parsing bug

* Fix typecheck error
2024-07-04 12:13:12 -02:30
Jordi Enric 6608f8765b Add labels and grid to sql editor charts (#27787)
* add opts to see labels and grid for better screenshots

* fix format in x axis

* add missing props to default chart config

* fix typeerr

* rm copypasta cleanup tailwind classes and divs
2024-07-04 14:46:32 +02:00
ac96a6ae11 Realtime Inspector adjustments (#27751)
* Realtime Inspector adjustments

* Leave just insert and select

* add new realtime authz docs link (#27755)

* fix: remove using from insert policies

* Add prop to differentiate db from realtime

* Update toast

---------

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>
Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com>
2024-07-04 09:45:18 -02:30
Bobbie Soedirgo 6955ccb0c8 fix(studio): reenable pg_prewarm and pgstattuple (#27669)
We've since reenabled it on the platform: https://github.com/supabase/postgres/pull/893/files
2024-07-04 15:58:33 +08:00
Alaister Young 89fdea4e2d chore: fix mispellings (#27793) 2024-07-04 09:37:18 +02:00
Joshen LimandAlaister Young e0ae4942f4 Optimize table editor count (#27612)
* Optimize table editor count

* Add additional logic on when to enforce exact count

* Update apps/studio/data/table-rows/table-rows-count-query.ts

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

* Reset enforceExactCount whenever a filter is applied

* Update showing exact row count warning logic

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-07-04 15:27:01 +08:00
Alaister YoungandKevin Grüneberg 70da0f1d1d chore: cleanup packages (#27770)
* chore: cleanup packages

- Avoid circular imports
- Export API-types as types
- pg-format without depending on Node internal Buffer (not browser-compatible)
- Avoid importing from barrel files in ui dir

* chore: avoid barrel file imports in studio (#27771)

* chore: avoid barrel file imports

- Removes some unused imports
- Avoids barrel file import for faster builds + less memory

* add eslint rule

* type fixes

* delete layouts barrel

* delete components/grid barrel file

* delete components/grid/utils barrel file

* delete components/grid/components/common barrel file

* delete components/grid/components/editor barrel file

* delete components/grid/components/formatter barrel file

* delete components/grid/components/grid barrel file

* delete components/grid/components/header/filter barrel file

* remote components/grid/store barrel file

* remove components/interfaces/Auth/Policies barrel file

* delete components/interfaces/Settings/Logs barrel file

* delete components/ui/CodeEditor barrel file

* delete components/ui/Forms barrel file

* delete components/ui/Shimmers barrel file

* delete data/analytics barrel file

* delete hooks barrel file

* cleanup lib/common/fetch barrel file

* final * barral files cleanup

* global react-data-grid styles

* remove console.log

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>

* fix build

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-07-04 14:48:10 +08:00
hallidayo 78ce111a21 feat: flutter dashboard example (#27758)
flutter dashboard example
2024-07-03 16:32:59 -02:30
Long HoangandCharis dbd19c8f61 chore: update http error codes (#27775)
* chore: update http error codes

* chore: add note about dashboard access

* chore: mention status code 402 explicitly to not leave ambiguity

* Update apps/docs/content/guides/platform/http-status-codes.mdx

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

* Update apps/docs/content/guides/platform/http-status-codes.mdx

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

* Update apps/docs/content/guides/platform/http-status-codes.mdx

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

* Update apps/docs/content/guides/platform/billing-faq.mdx

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

* Update apps/docs/content/guides/platform/http-status-codes.mdx

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

* fix: correct typo

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-07-03 23:17:11 +08:00
Joshen Lim 54320ddb73 Chore/support showing all entities in database tables page (#27749)
* Support showing views in database tables page

* Support showing materialized views in database tables page

* Support showing foreign tables in database tables page

* Prevent deleting non table entities in database/tables, consistent with table editor

* Fix invalidation logic when deleting tables in database/tables
2024-07-03 14:40:45 +08:00
hallidayoandTerry Sutton b7fbcd7ef8 feat: sql query spacebar search (#27663)
spacebar search enabled

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-07-02 09:04:53 -02:30
Joshen Lim 59c8b9449f Chore/fix storage upload folder logic (#27744)
* Don't replace backslash with underscore when uploading files

* Ignore .DS_Store files when uploading folders
2024-07-02 18:28:13 +08:00
Paul CioancaandJoshen Lim 90d9d6cb1e chore: only display compute addons if cloud provider supports them (#27599)
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-02 10:02:56 +00:00
Joshen Lim d4116e9bfc Reinstate old org invite flow endpoints (#27681) 2024-07-02 10:54:05 +08:00
Kevin Grüneberg 6cd8519cff chore: change invoice date format (#27672) 2024-07-01 21:05:55 +08:00
1127c4ba88 Project Level Permissions (#27347)
* fix: update Permission params

* fix: upgrade check permission hook to support project level role

* fix: usePermissionsLoaded

* fix: Permission params can be undefined

* Scaffold new access management UI

* Add validation

* Update roles view

* Add tooltip

* Add button to apply role to all projects

* Update UI to select projects first instead of roles

* Merge master update UI

* Midway trying to implementation project level perms API

* First pass implementating updating project level permissions

* Add client side validation for assigning/removing roles

* Midway implementing new invites

* Integrate most of the project level permissions functionality

* fix: filter out org-level permissions before checking

* Add relevant UI guards in org level pages for project role POV

* Minor refactors

* Small refactors

* More fixes

* Moar refactors

* More fixes

* More fixes

* Refactor update role logic and smack some test cases on it

* Fixes

* Fix type issue

* Fix type

* more fixes, refactors, adding checks...

* MORE fixes

* Add perms checking for replicas

* Add ButtonTooltip component and use them to prevent repetition of pointer events auto for buttons with tooltips

* Convert all buttons with tooltips to use ButtonTooltip

* refactor

* PRettier

* Small fix

* Remove commented out code in organization-invitation-accept-mutation

* fix: switch to use the platform oauth authorizations routes

* Add perms checking for org audit logs and org oauth apps

* PRettier

* Fix incorrect URL for oauth app flow

* Fix incorrect URL for oauth app flow

* Fix

* Add perms checking for warehouse related UI

* Update roles helper icon

* remove unused lib

* Update package lock... again

* Update package lock... again

* Smalllll update

* Update some checks

* Add gate for project level permissions

* Last fix

* update codegen

* Update warehouse endpoint routes

* Fix

---------

Co-authored-by: phamhieu <phamhieu1998@gmail.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-07-01 17:59:54 +08:00
Long Hoang 72794b5698 chore: update fair use references (#27668)
* chore: update fair use references

* fix: sync package lock
2024-07-01 06:41:44 +00:00
angelico d47de9d0b9 chore: have an update for when a post upgrade backup is in progress (#27591)
* chore: have an update for when a post upgrade backup is in progress

* chore: update wording

* fix: prettier
2024-07-01 14:29:46 +08:00
Kamil Ogórek 603461545c ref: Open GitHub and Vercel integrations links in new tabs (#27620) 2024-07-01 13:48:18 +08:00
Monica Khoury 3957343713 Fix: project dropdown url for security advisor route (#27598) 2024-06-28 13:11:06 -02:30
hallidayoandIvan Vasilov b92072d8d4 feat: ionic react connect example (#27573)
ionic react connect example

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-06-28 15:27:13 +02:00
a2dc897d05 docs: swift guide for connect (#27541)
* connect swift guide for studio

* remove Model wording

Co-authored-by: Guilherme Souza <grsouza@pm.me>

* Update apps/studio/components/interfaces/Home/Connect/content/swift/supabaseswift/content.tsx

Co-authored-by: Guilherme Souza <grsouza@pm.me>

* changed to newer components

Co-authored-by: Guilherme Souza <grsouza@pm.me>

* Fix a merge conflict.

---------

Co-authored-by: Guilherme Souza <grsouza@pm.me>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-06-28 15:09:27 +02:00
389feea6c8 🐛 fix: wrap column around quotes for creating index sql command (#27499)
* 🐛 fix: wrap column around quotes for creating index sql command

* Fix the package.lock.

---------

Co-authored-by: Girish Savlesha <girish.savlesh@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-06-28 12:47:35 +00:00
Jan Tennert 0677592b84 feat: connect Kotlin example (#27313)
* Add Kotlin connect

* fix key

* Fix some mistakes

* Update content.tsx
2024-06-28 12:49:37 +02:00
TheOtherBrian1 d89097d5c7 Renamed Sveltekit Variable from SUPABASE_KEY to SUPABASE_ANON_KEY (#27332) 2024-06-28 12:37:25 +02:00
Austin TranandTerry Sutton 81306cabee feat: add advisors for self hosted (#27325)
* feat: add advisors for self hosted

* prettier fix

* prettier

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-06-27 11:22:06 -02:30
Joshen Lim f094813b3e Add some sentry filters (#27588)
* Add some sentry filters

* Add some sentry filters

* Add ? in copyCellValue
2024-06-27 19:39:39 +08:00
Joshen Lim 02b09e6232 Remove usage of id for projects or org where unnecessary (#27583) 2024-06-27 16:53:42 +08:00
Terry SuttonandJoshen Lim 55077a5cec Chore/add lint (#27572)
* Handle lint 17

* Update icons

* Remove usage of id property from Project where not needed

* Update package lock

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-27 14:09:33 +08:00
Jonathan Summers-Muir a130e804c8 [dashboard] chore: tidy Connect button (#27489)
* chore: tidy Connect button

* Update Connect.tsx
2024-06-26 09:02:20 -02:30
Ivan VasilovandJoshen Lim ee8f901bfd feat: RLS policies for realtime channels (#27490)
* Add queries and mutations for realtime channels.

* Change the layout, add a link for policies and modal for creating a channel.

* Add a page for policies.

* Add templates for realtime tables.

* Fix the spacing in the PolicyDetails component. Add better types.

* Pass templateData to the template generating functions.

* Various CSS fixes.

* Add components for rendering the realtime policies page.

* Fix the editing policy flow.

* Fix refetching when adding or deleting policies.

* Minor various fixes.

* Remove an old console.log.

* More fixes for templates.

* Make the realtime policies open by default when clicking on realtime.

* Update the realtime policy templates.

* Use a dropdown button for the three types of policies.

* Fix a copy-paste mistake.

* Fix icons.

* Fix the toast.

* Clean up the previous components.

* Clean up more unneeded code.

* Remove templateData prop.

* Remove unneeded queries and mutations.

* More cleanup.

* Reuse the components from the Auth Policies.

* Minor fixes for the new components.

* Add a feature flag for AuthZ.

* Revert some changes.

* Fix a build error.

* Fix all definitions.

* Fix an issue with copying large lines which from templates which are word-wrapped.

* Addressed various comments by Joshen.

* Revert the UI changes in the Policy Editor.

* Update the template names.

* Small style fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-26 13:27:29 +02:00
Joshen Lim 553f2aa7fc Trim column name in table editor when updating column (#27522)
* Trim column name in table editor when updating column

* Address comment

* Address comment
2024-06-26 19:03:35 +08:00
Joshen Lim 3530c022ec Support filtering by entity types in table editor (#27555)
* Support filtering by entity types in table editor

* Address feedback

* Small language change
2024-06-26 18:21:49 +08:00
Joshen Lim 45e9f39ae5 Small alignment fix in UtilityPanel (#27529) 2024-06-26 17:58:41 +08:00
Joshen Lim 140fbebaee Connection strings to be prefixed with postgresql:// instead of postgres:// (#27533) 2024-06-26 17:35:01 +08:00
Joshen Lim ae8dafd0a4 Chore/optimizations for table editor query (#27553)
* Optimize table editor select query when cutting off column values

* Fix auto limit logic to consider offset
2024-06-26 17:15:20 +08:00
Kevin Grüneberg 15efe26730 fix: EU tax ids for Orb (#27539) 2024-06-26 16:20:42 +08:00
Kevin Grüneberg 9aa4baf48f chore: project addon text adjustments for Orb (#27532) 2024-06-26 16:05:44 +08:00
Terry Sutton e225efec66 Chore/fix limit bug (#27540)
Match uppercase limit
2024-06-25 14:01:30 -02:30
Ivan VasilovandJoshen Lim 02b3d50207 feat: Support private channels in the realtime inspector (#27362)
* Add the new realtime js library under an alias.

* Add a isChannelPrivate property to realtime config.

* Use the aliased realtime-js library to connect to the realtime server.

* Add a new switch to enable users to connect to a private channel.

* Hide the public/private switch behind a feature flag.

* Fix an import.

* Add description to the switch.

* Small updates, add documentation button in choose channel popover

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-25 14:49:52 +02:00
Terry Sutton e0510c4f95 Chore/add change email instructions (#27093)
* Add instructions for changing email

* Check users account type

* Lists
2024-06-25 10:13:31 -02:30
Terry Sutton f667deaaea Chore/longer toast time (#27506)
Feedback toast disappears before it can be read
2024-06-25 08:50:37 -02:30
Joshen Lim 683b8f87bc Tiny copy change for database password (#27521) 2024-06-25 18:23:04 +08:00
Alaister Young c918aea9ee chore: new project statuses (#27213)
* chore: new project statuses

* add restarting layout

* add restore failed state

* update project cards

* update wording

* fix ts errors

* address feedback

* add pause failed state
2024-06-24 16:06:58 +08:00