Commit Graph
80 Commits
Author SHA1 Message Date
Ivan Vasilov 5c6719c8ea Fix the bucket url to handle trailing whitespace (#17095)
* Fix the bucket url to handle trailing whitespace.

* Migrate the bucket CRUD methods to use data/fetchers.

* Revert the validation for bucket names where names with spaces are invalid.

* Revert the mutations refactors.

* Trim trailing whitespace from its name when creating a new bucket.

* Add error message for bucket names and whitespaces.
2023-10-04 08:19:52 +02:00
Ivan Vasilov 7dea89cc35 Drop the _shadcn_ suffix from the the Dropdown component (#17804)
Replaced all occurrences of _shadcn_ for the Dropdown component.
2023-10-03 13:12:34 +02:00
Ivan Vasilov 18c11843ee Dropdowns migration followup (#17730)
* Remove text color from all dropdown items. The color was set by a class but it should be left to be decided by the parent.

* Make the text smaller in all dropdown elements.

(cherry picked from commit 9a71b3f987047ad26de6e5d496ccf53bc559f71d)

* Fix mismatched colors.

* Remove obsolete text-xs.

* Fix the button in the AI SQL editor.
2023-09-29 11:11:33 +00:00
Ivan Vasilov 282b08ba60 Migrate CSS classes for lighter text (#17728)
Change all occurences of text-scale-900 to text-foreground-lighter.
2023-09-27 12:01:25 +08:00
Ivan Vasilov 76db9f27b3 Migrate dropdowns to use the new Dropdown component (#17427)
* Remove unneeded component.

* Update the dropdown content to support size prop (medium by default). Add space-x-2 to the dropdown item. Add flex to DropdownTrigger so that it's more vertically centered.

* Migrate Insert row dropdown in the TableEditor.

* Refactor UserDropdown to use the new Dropdown from shadcn.

* Migrate the ColumnMenu to use the new dropdown.

* Migrate the rest of the dropdowns.

* Remove the size prop and set the w-64 as default.

* Fix build errors.

* More dropdown fixes.

* More fixes.

* More fixes to various dropdowns.

* Remove the flex from the DropdownTrigger and add it in where it's needed.

* Snapshot.

* Remove keys on dropdown separators.

* Fix the dropdown in the SQL editor.

* Minor type fix.

* Remove space-x-2 from DropdownMenuItem and add it to each item where it's needed.

* Remove the space from the dropdown item.

* Fix a build error.

* Fix the item text in some of the dropdowns.

* Remove duplicate CSS from all dropdown items.

* The SubMenuContent text should be lighter to match MenuContent.

* Fix various CSS issues.

* Revert "Remove unneeded component."

This reverts commit ef606f6695.

* Fix migrated CSS classes.

* Last round of feedback fixes.
2023-09-26 15:29:07 +02:00
Ivan Vasilov 6648acacea Migrate CSS classes for light text (#17725)
* Replace all occurences of text-scale-1100 to text-foreground-light.

* Replace all occurences of text-scale-1000 with text-foreground-light.

* Fix double uses of text-foreground-light.
2023-09-26 11:05:28 +02:00
Joshen Lim 7aee78a8b8 Replace all occurences of text-scale-1200 with text-foreground (#17723)
* Replace all occurences of text-scale-1200 with text-foreground

* Fix spelling
2023-09-26 15:53:03 +08:00
Joshen Lim 63332b99e5 Update studio/components/layouts/StorageLayout/StorageLayout.tsx 2023-07-12 17:40:48 +08:00
Joshen Lim 3bc0ea273f Update studio/components/layouts/StorageLayout/StorageLayout.tsx 2023-07-12 17:40:42 +08:00
Joshen Lim ca41a316c1 Fix delete bucket modal not opening 2023-07-12 17:33:02 +08:00
Alaister Young 3bc70549c3 chore: checkPermissions -> useCheckPermissions 2023-06-30 15:15:09 +10:00
Alaister Young 3abe40c890 Merge branch 'master' into chore/orgs-and-projects-to-react-query 2023-06-27 16:46:02 +10:00
Joshen Lim e5bd00c1c0 Add error handling if buckets fetch failed 2023-06-22 13:45:17 +08:00
Joshen Lim e734db1cc2 Fix custom domain url to be used only if active 2023-06-22 13:28:09 +08:00
Joshen Lim fd0abadc6d Deprecate onCopyFileUrlToClipboard in StorageExplorerStore and add a new function at the UI level to consider custom domains 2023-06-21 17:44:10 +08:00
Alaister Young 31091d3fe4 chore: move orgs and projects to react-query 2023-06-20 21:47:10 +10:00
Joshen Lim a8893cb834 Small UI fixes + fix switching projects while on a bucket, doesnt direct to the buckets page 2023-06-20 18:31:26 +08:00
Joshen Lim 26689717a3 Shift create, edit, delete bucket to RQ, and deprecate them from mobx store 2023-06-20 18:02:17 +08:00
Joshen Lim 4a1e18ac65 Shift fetching + reading of buckets to RQ 2023-06-20 11:03:51 +08:00
Jonathan Summers-Muir f68e79ff71 fixed errors with Button from new changes 2023-06-13 17:36:36 +08:00
Joshen Lim 798a46a194 Fix consistency of pause state across pages and prevent subscription changes if project is not active 2023-04-14 14:48:04 +07:00
Joshen Lim 5c8bd6f587 Fix renaming file not updating url when clicking get url in preview pane 2023-04-12 11:52:56 +07:00
Joshen Lim ad7fc7861b Update create bucket to support the 2 new additional params 2023-04-11 12:56:20 +07:00
Joshen Lim 761981095c Remove toggle public modal and add edit bucket modal 2023-04-11 12:28:12 +07:00
Joshen Lim e8b67a5557 Refactor menu items for storage, sql editor and table editor 2023-04-06 22:25:18 +08:00
Terry Sutton 5f865e160c Merge branch 'master' into chore/move-useparams-to-packages 2023-03-31 11:51:43 -02:30
Terry Sutton 1e6477bf11 Move useParams to common packages 2023-03-24 15:16:44 -02:30
Jonathan Summers-Muir c81e0c9098 update radix and tailwind to correct versions. update all tooltips with Portal subcomponent 2023-03-24 14:48:01 +08:00
Joshen Lim e63970b451 Add check permissions across storage explorer components and refactor some files to tsx 2023-02-23 14:28:18 +08:00
Joshen Lim 9a138330b5 Update StorageExplorerStore bucket operations to use API 2023-02-20 17:46:36 +08:00
Joshen Lim e9dd00e4ce Add read only locks for storage and vault 2023-02-10 15:11:40 +08:00
Joshen Lim d150f7def7 mid 2023-02-10 02:01:32 +08:00
Alaister Young 4e43d9d77e Merge branch 'master' into chore/swr-to-react-query-1 2023-01-30 15:08:37 +11:00
Qiao Han 6e037f19e9 chore: use api settings route in all places 2023-01-26 23:18:53 +08:00
Ruggero Tomaselli 8ccbf40079 Fix evaluation of protocol 2023-01-26 23:18:53 +08:00
Alaister Young 7f4a39c7e5 Merge branch 'master' into chore/swr-to-react-query-1 2023-01-23 16:13:37 +11:00
Joshen Lim 8cc319e863 More refactors to reduce props drilldown, and implement expiry options in context menu 2023-01-17 13:26:22 +08:00
Alaister Young e64fb4c608 Merge branch 'master' into chore/swr-to-react-query-1 2023-01-03 18:56:52 +00:00
Joshen Lim b40e6216ab Fix storage side bar text overflow 2022-12-21 21:59:51 +07:00
Joshen Lim 51ec11d3c8 Fix https://sentry.io/organizations/supabase/issues/3663157841 2022-12-20 12:53:29 +07:00
Alaister Young d38c8dc1d5 move useProjectSettings to react-query 2022-11-25 18:52:07 +00:00
Terry Sutton df4ffe706c Merge branch 'master' into chore/reorder-dashboard-nav-menu 2022-10-28 16:17:08 -02:30
Sara Tavaresandgithub-actions[bot] 80d0624262 fix(typos): add github action to prevent typos + fix typos (#9598)
* feat(ci): fix typos

* [create-pull-request] automated change

* Update index.tsx

* Update README.fr.md

* Create .misspell-fixer.ignore

* Update constant.dart

* [create-pull-request] automated change

* Update database.tsx

* [create-pull-request] automated change

* [create-pull-request] automated change

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-10-27 23:32:02 -03:00
Terry Sutton 015e09f890 Heading changes 2022-10-26 15:12:57 -02:30
Terry Sutton 9adbc09c6c Fix database url 2022-10-26 10:09:52 -02:30
Terry Sutton 739e4f5e5b Merge branch 'master' into chore/reorder-dashboard-nav-menu 2022-10-26 10:06:24 -02:30
TzeYiing b295efc48a chore: remove logsRealtime and logsStorage feature flags 2022-10-25 15:54:46 +08:00
Terry Sutton dec6dcd34f Merge branch 'master' into chore/reorder-dashboard-nav-menu 2022-10-18 14:27:20 -02:30
Terry Sutton 5771521bbf Move auth settings to settings layout 2022-10-18 12:46:43 -02:30
Alaister Young 5134861454 fix build 2022-10-13 16:13:14 +11:00