Commit Graph
1005 Commits
Author SHA1 Message Date
Kamil Ogórek 057b2f1705 fix: Bail on audit logs permissions (#28096) 2024-07-19 19:15:52 +00:00
Joshen LimandJordi Enric 91c63be9c9 Surface error from fillTimeseries to the UI (#28086)
* Surface error from fillTimeseries to the UI

* rm consolelog

---------

Co-authored-by: Jordi Enric <37541088+jordienr@users.noreply.github.com>
2024-07-20 00:47:23 +08:00
Joshen Lim 9081324666 Chore/fix oauth app api auth (#28093)
* Fix oauth app api auth

* Fix style

* Update codegen

* Fix

* Fix
2024-07-19 20:20:47 +08:00
Jonathan Summers-MuirandIvan Vasilov f912536db8 [Design system] Feat/sonner (#27382)
* fix toast examples

* add sonner stuff

* new sonner examples added

* updated

* add upload POC

* add

* Update sonner-upload.tsx

* move statusicons

* Minor fix.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-07-19 12:38:42 +02:00
Joshen Lim cb4b0fe6d8 Add set search path for query performance query (#28084)
* Add set search path for query performance query

* more
2024-07-19 18:07:27 +08:00
Joshen Lim 5ce6650481 Set up opt in by slug for PLP (#28080) 2024-07-19 17:38:14 +08:00
Francesco Sansalvadore 1baf027fb1 chore: update pricing page / compute wording (#28017) 2024-07-19 15:39:11 +08:00
Jonathan Summers-MuirandJoshen Lim a4b4167a5b fix: temporary remove default sorting (#28072)
* Update table-rows-query.ts

* Add comment

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-19 11:20:58 +08:00
64e5ba8777 chore: tus optimisations (#28034)
* chore: tus optimisations

* Update apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx

* fix prettier

* remaining time

* fix prettier + change styling

* styling

* remove console.log

* fixed timing

* fix upload progress

* add abort uploads function

* amended chunk-size

* add cancel button

* fix infinity label

* scope aborts to a toast

* abort when cancelled

* fix divide by zero error

* Small style

* eat abort error

---------

Co-authored-by: fenos <fabri.feno@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-19 11:05:58 +08:00
Kang Ming efec5dd114 fix: use gotrue_id instead of email (#28071) 2024-07-19 02:35:41 +08:00
Etienne Stalmans 22d66f4999 chore: update docs and templates with search_path (#28066)
Advisor warns about missing search_path on the handle_new_user function,
which we supply in docs and SQL starter templates.
We have updated this in some docs but haven't pulled it through to everything
2024-07-18 17:54:15 +02:00
Alaister Young 9ea50f6cee fix: new id in content query (#28064) 2024-07-18 10:38:48 +00:00
Kevin GrünebergandThomas Eckl 9d4d1369aa chore: adjust billing for edge function count (#28019)
Co-authored-by: Thomas Eckl <31189692+ecktoteckto@users.noreply.github.com>
2024-07-18 17:12:49 +08:00
Joel LeeandJoshen Lim 530ab69901 feat: add SAML External URL field (#27628)
* feat: add SAML External URL field

* fix: update

* feat: update package-lock.json to mirror master

* fix: patch validation

* fix:  update to default to '' instead of false

* fix: add description

* fix: re-run prettier

* Update UI

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-18 09:15:50 +02:00
Charis abb4cbb982 fix(storage): change replaced character to U+202F (#28046)
The character that was breaking screenshots was the Narrow No-Break Space (U+202F), which is apparently not the same thing as the No-Break Space (U+00A0). (TIL there are 17 different Unicode space separators.)

Tested on local by uploading a screenshot taken with default 12-hour timestamp (which was the broken case before).
2024-07-18 14:05:28 +08:00
Joshen Lim d99c9ea13c Improvement to database extensions UI (#28037)
* Improvement to database extensions UI

* Prettier
2024-07-18 13:58:55 +08:00
Wen Bo XieandKevin Grüneberg f1541878a9 fix: singularize and capitalize Supabase plans (#28052)
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-07-18 04:49:00 +00:00
Joshen Lim 3f01c0a6b2 Fix getAllItemsAlongFolder break (#28047) 2024-07-18 11:27:50 +08:00
Alaister YoungandJoshen Lim 3f0cd49a06 chore: new wrappers 16/07/24 (#28014)
* add paddle wrapper

* add snowflake wrapper

* Small style fixes

* fix editing and deleting wasm wrappers

* use alert for minimum version not met

* update wording

* Minor style fix

* small fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-17 07:10:07 +00:00
Alaister YoungandJoshen Lim b897d51a53 feat: use TUS for file uploads in dashboard (#28030)
* feat: use TUS for file uploads in dashboard

* handle upload progress

* add fallback for mime types

* lowercase extensions

* add note about mime

* Handle file size 0 and make check for nbsp replacement

* Fix NaN in progress

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-17 13:27:00 +08:00
Alaister Young 939de55a21 fix: Slack OIDC enabled badge (#28029)
fix: slack oidc enabled badge
2024-07-17 12:28:08 +08:00
Joshen Lim 17e0c5dbcf Improve snippet organization in SQL Editor (#27881)
* Init changes for sql fodlers

* Added upsert logic in sql-editor-v2 valtio, hooked up with templates and quickstarts

* Do up logic for creating new snippets by typing in /new or by clicking new query button

* Do up logic for updating and deleting snippets

* Do up logic for favourites and shared snippets

* Do up logic for favourites and shared snippets

* Fix

* Fix saving indicator, add empty states for favorites and shared snippets

* Implement sorting

* Some minor QOL improvements

* Minor fix on empty state for private snippets

* Add delete folder mutation

* Implement create and update folder

* Fix reinstate with AI renaming for new snippets under folder

* Support controlled multi select behaviour in private snippets

* Undo changes to tree-view-multi-select

* Support bulk deletes

* Support moving queries + rendering queries in folders

* Support deleting folders and creating a new folder when moving a query

* Fix bug where renaming query removes content

* Add initial loading state in sql editor nav + handle fallback if cannot retrieve content by id

* Fix some spelling

* Fix TS issue in sql folders mutation keys

* Fix toggling favorite

* Lint

* Revert fallback behaviour in ]id] for now

* Fix favorites and shared snippets not showing

* Fix moving currently opened snippet leads to loading

* Support bulk moving

* Improve multi select logic a little

* Nit lint

* Reinstate AI retitling for untitled snippets when running query

* Remove hardcode in useAFlag

* Support creating new snippet in a folder directly

* Fix sharing snippets that are within a folder

* Fix sharing snippets within a folder

* Fix favorite

* Add loading state when fetching folder contents

* Fix favoriting snippets in folders
2024-07-17 12:23:19 +08:00
Joshen Lim 3c53af470d Add flag to check for enterprise plan in invite member modal (#28006)
* Add flag to check for enterprise plan in invite member modal

* Small style fix

* Fix loading state for deleting member modal

* Fix

* Invite member modal to only show projects under the selected organization

* Fix
2024-07-16 15:23:15 +08:00
Martin WilliamandAlaister Young 8cabaec7bb feat: add orientation to studio trigger page ui (#28002)
* feat: add orientation to studio trigger page ui

* increase colSpan for empty state

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-07-16 14:19:11 +08:00
Thomas 4d27aa7035 Display up-to-date customer balance [GEN-10135] (#27999) 2024-07-16 12:10:50 +08:00
Joshen Lim 2662583d7e Add placeholder in database functions editor (#27922)
* Add placeholder in database functions editor

* Address feedback

* Don't show placeholder if language is sql

* Fixes

* Fix
2024-07-15 14:23:59 +08:00
Joshen Lim 914901e779 Swap warehouse endpoints to /platform (#27957) 2024-07-15 11:28:05 +08:00
Joshen Lim 2a818ffc7b Swap all warehouse endpoints to v0 (#27955)
* Swap all warehouse endpoints to v0

* Fix

* Update api.type
2024-07-12 20:34:40 +08:00
Ivan Vasilov 22c5324f0c feat: Use expanding text area in the Ai Assistant (SQL Editor) (#27930)
* Add a new textarea component which autoexpands depending on number of content rows.

* Use the new ExpandingTextArea in the AIAssistantPanel.

* Remove old unused text area.

* Move around some of the props in the ExpandingTextArea.

* Make the value prop mandatory.

* Fix minor stuff in the Design System app.

* Add examples for Expanding Text Area.

* add max height to the expanding text area.

* Add todo comment in database-new app.
2024-07-12 11:32:20 +02:00
Joshen Lim fe4f3fc30c Fix weird margin issue in barchart (#27948) 2024-07-12 16:27:47 +08:00
Joshen Lim 5d0d63284b Support using API schema in create project (#27918)
* Support using API schema in create project

* Fixes
2024-07-12 10:25:34 +08:00
Jordi EnricandJoshen Lim 003cfd6425 feat: warehouse explorer (#27611)
* add basic feature

* rename to datasource

* rename elements in left sidebar

* update copy in titles in left sidebar

* Add optional 'enabled' parameter in useLogsQuery hook

* Update warehouse query state and components

* add template selector for warehouse query builder

* update deprecated input compo

* fix create token and console warnings

* fix type errors

* fix dupped import

* update endpoints and add missing permissions

* update queries with new api path

* fix type errors

* undo last commit

* undo missing file

* fix imports in logs page

* import fixes

* add settings link like in storage menu

* sort imports, fix form submit

* rename access tokens settings section

* align dropdwn

* add overflow to templates dropdown

* add name as defaultvalue to udpate form

* update rm collection dialog

* capitalize

* Update apps/studio/pages/project/[ref]/logs/explorer/index.tsx

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

* fix typo

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-07-11 12:05:44 +02:00
Joshen Lim 728dcdbf74 Fix project status filter (#27923) 2024-07-11 18:05:31 +08:00
Kamil Ogórek d249d5d94d ref: Cleanup vercel_configuration_id metadata (#27857) 2024-07-11 17:00:44 +08:00
Joshen Lim b78eea5176 Support hardening api via custom schema in api settings (#27894)
* Support hardening api via custom schema in api settings

* Update UI based on discussion

* Changes to language

* Update changes

* Remove unnecessary check on pg_graphql extension

* Fix

* Fix
2024-07-11 15:48:06 +08:00
fcd81a8d2f feat: add rate limit otp (#27402)
* feat: add rate limit otp

* Update apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>

* Update apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx

Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>

* fix: update rate limit otps

* Change the p to FormDescription element.

---------

Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-07-10 07:45:38 -07:00
Jordi Enric 879a668c0c Fix local studio logs (#27879)
* fix local studio logs

* rm unused identifier

* rm unused cols frmo query
2024-07-10 14:26:52 +02:00
Joshen Lim f18a0c20b5 Bump supabase js to 2.44.3 (#27898)
Bump supabase js to 22.4.3
2024-07-10 17:30:46 +08:00
Alaister Young 9d06a27e91 chore: update supabase-js (2.44.2) (#27768) 2024-07-10 10:23:05 +02:00
Joshen Lim 5e2c374a4e Replace permissions matrix with links to docs (#27891) 2024-07-10 14:12:16 +08:00
Jonathan Summers-Muir 660b7568c8 Revert "Feat: add critical warning modal for removing members" (#27888)
Revert "Feat: add critical warning modal for removing members (#27288)"

This reverts commit a14caeb25b.
2024-07-10 01:15:51 +00:00
Monica Khoury a14caeb25b Feat: add critical warning modal for removing members (#27288)
* Feat: add critical warning modal for removing members

* Add alert to the confirmation modal instead

* Prettier
2024-07-10 08:57:53 +08:00
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
Ivan Vasilov bfbec5bc78 feat: Reorder new project panels (#27858)
* Rename advanced options to security options.

* Move the compute billing section in compute size panel.

* Remove extra fragments.

* Remove unneeded divs.
2024-07-09 13:26:06 +02:00
Jordi Enric 9ea696e460 fix logs query in local (#27861) 2024-07-09 11:14:25 +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
Jonathan Summers-Muir 9a8e0b2b63 Truncate project names in popover (#27743)
Update [slug].tsx
2024-07-08 13:00:15 +01: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