Commit Graph
3910 Commits
Author SHA1 Message Date
Joshen Lim c915042250 Fix RQ error handling for views query (#21252) 2024-02-15 17:38:37 +08:00
Joshen Lim 7f084ce27b Improve loading states for project settings (#21254)
* Improve loading states for project settings

* Remove console log
2024-02-15 17:10:59 +08:00
Joshen Lim 39f1fdae2f Format 503 errors in AlertError (#21283)
* Format 503 errors in AlertError

* Small fix
2024-02-15 17:00:14 +08:00
Joshen Lim dd444f54b8 Fix auth logs status filter query (#21279) 2024-02-15 16:02:22 +08:00
Terry Sutton 69e5b1713d Add side panel for user info (#21239) 2024-02-14 08:19:22 -03:30
Joshen Lim 168a48f537 Fix error handling if formatting definition throws error (#21255) 2024-02-14 18:58:45 +08:00
Joshen Lim 64c6ad53ca Show confirm dialog if text editor is edited when clicking on toggle feature preview button (#21251) 2024-02-14 17:28:44 +08:00
Joshen Lim 21aa23ceae Chore/cleanup feature flags 140224 (#21249)
* Clean up auth related feature flags

* Clean up databaseUpgrades flag

* More flags clean upo
2024-02-14 17:17:18 +08:00
Terry Sutton dfe0fe0340 Better storage file renaming (#21231) 2024-02-13 18:13:10 -03:30
Joshen Lim 71305867b2 Chore/fix layout header alignment right buttons (#21225)
* Fix NotificationV2 popover trigger alignment

* Remove unnecessary alt prop on FeedbackDropdown

* Deprecate old NotificationsPopover folder
2024-02-13 23:46:24 +08:00
646657937d Chore/table editor sidepanel revamp (#19977)
* Animate search, cleanup

* Replace icons, finish search, add rls status

* cleanup

* Cleanup

* chore: update styling, a11y and markup for table editor side panel (#21112)

* chore: removed a bunch of unnecessary tags, removed nested buttons for a11y and stopping duplicate onClick events, updated styling of table items to match design.

* fix: input issues

* Update TableEditorMenu.tsx

* chore: added Esc and backspace control

* Stroke width

* Focus states

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-13 09:25:35 -03:30
Joshen Lim ec77b7f305 Fix policies page locked schema notice (#21217) 2024-02-13 17:58:50 +08:00
Joshen Lim cf71d0b1ff Fix SQL editor no overflow for long errors (#21213)
* Fix SQL editor no overflow for long errors

* Remove test
2024-02-13 17:37:13 +08:00
Joshen Lim aa76203400 Fix height issue (#21210)
* Fix height issue

* Add some min-h-screens

* Fix

* Fix

* Revert min-h-screens
2024-02-13 17:36:58 +08:00
Joshen Lim ee0d2b40dc Fix duplicating table not saving description (#21215) 2024-02-13 17:30:02 +08:00
Joshen Lim 6c7b88272a Only show options if usePoolerConnection unchecked (#21214) 2024-02-13 17:24:19 +08:00
Joshen Lim 1d782197f4 Fix view a referencing row in grid not updating schema if FK is in another schema (#21212) 2024-02-13 16:51:31 +08:00
Joshen Lim 63f741bd56 Fix md5 connection string (#21208)
* Fix md5 connection string

* Fix

* Fix
2024-02-13 16:38:01 +08:00
Joshen Lim 0ee75935f7 Support for composite foreign keys in table editor (#21078)
* Init foreign keys manage

* Midway

* Midway

* Implement functionality for new foreign key management flow in table editor

* Deprecate old add and remove foreign key queries

* Lint

* Set editor dirty when managing foreign keys

* Add basic validation in new ForeignKeySelector

* Remove FK management in column editor, deprecate old foreign key selector components

* Add validation on columnm types for foreign keys

* Set column type to foreign key type if new column

* Show appropriate notices for when referenced column doesnt match source column type

* fix

* Remove comment

* Lint

* ColumnEditor swap position of data type and Fk
2024-02-13 10:42:06 +08:00
Faisal b4a1945a82 fix: insert source after from command in log explorer (#21114)
fix: insert source after from command
2024-02-12 20:08:17 +01:00
Jordi Enric 5ca65b4bcd Feat: CRUD custom reports (#21116)
* add CRUD for custom reports

* rm unused import

* rm unused import

* update copy

* fix empty state create report behavior

* fix report metadata not rerendering correctly on change
2024-02-12 19:50:17 +01:00
Charis 95e8375a22 fix: escape/remove double quotes in combobox items to prevent crashing (#21162) 2024-02-12 12:03:32 -05:00
Inian 9042afeeed clarify realtime pricing (#21197)
users werent sure of pricing of broadcast and presence. confirming the pricing is the same across all three
2024-02-12 15:18:03 +00:00
Ivan VasilovandTerry Sutton 5754c23abb feat: Move some components into ui-patterns (#20774)
* Change all imports in the ui package which import via the @ui shortcut.

* Add a new ui-patterns package. Add it to all apps.

* Migrate PrivacySettings from ui to ui-patterns.

* Migrate ConsentToast from ui to ui-patterns.

* Remove providers folder from ui package.

* Move GlassPanel.

* Migrate IconPanel.

* Migrate TweetCard.

* Migrate ThemeImage.

* Remove LWXCountdownBanner.

* Migrate CountdownWidget.

* Migrate SchemaTableNode.

* Migrate ExpandableVideo.

* Migrate ThemeToggle.

* Fix bunch of imports in the docs app.

* Revert some unnecessary changes.

* Expand the README.md.

* Fix the tailwind configs, they were using old folder structure.

* Fix leftover merge conflicts.

* Remove a deleted page in master.

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-02-12 12:44:00 +01:00
Ivan Vasilov 4dac01e378 chore: Migrate Clippy to Nextjs API docs (#20903)
* Add a new function to ai-commands package.

* Add a new API route to all three apps.

* Refactor the Command component to use the new URL.

* Resort the imports.
2024-02-12 10:10:52 +01:00
Ivan Vasilov f868f1f5cf fix: Add the API URL to the studio CSP to make local environment work. (#21159)
Add the API URL to the  studio CSP to make local environment work.
2024-02-10 11:22:58 +08:00
Kevin Grüneberg b73bf7e85a fix: auth hooks templates (#21153) 2024-02-09 23:34:31 +08:00
Jordi Enric 812191b99e Make the logs explorer look & feel very similar to sql editor (#21055)
* make the logs explorer look n feel very similar to sql editor

* add field reference back, fix empty state

* rm m-4

* restore header component for other pages that still use it

* improve placement of ctas

* fix build issues
2024-02-09 11:23:21 +00:00
Mendo 6524901305 Update inviteUserByEmail API usage docs (#21099)
The current usage of this API seems to be stored within `supabase.auth.admin.inviteUserByEmail`, not `supabase.auth.api.inviteUserByEmail`.
2024-02-09 11:01:38 +00:00
Joshen Lim 758f257732 Chore/fix add data in table editor (#21137)
* Fix error handling when adding data to existing table via spreadsheet upload

* Fix error handling when adding data to existing table via text
2024-02-09 17:03:01 +08:00
Jonathan Summers-MuirandJoshen Lim 59d64b9375 chore: update a11y and styles of notifications v2 (#21124)
* chore: update a11y and styles of notifications v2

* background update

* Remove unused import

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-09 14:48:42 +08:00
divit b875a46430 fix: use db_user from api response for connection settings page (#21125)
fix: use db_user from api response
2024-02-09 01:34:25 +05:30
Pamela Chia afe5fb2c4e fix: improve dpa description (#21111) 2024-02-09 00:59:26 +08:00
Bharath byahattiandJoshen Lim cf77510b48 Dashboard-bug-fix: in Enumerated type > Create type > SidePanel Opens… (#21107)
* Dashboard-bug-fix: in Enumerated type > Create type > SidePanel Opens add value field count fixed

* Small refactor

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-08 15:19:53 +08:00
Kevin SeoandJoshen Lim 54f4bd65b1 fix: support page to be mobile responsive (#20999)
* fix: support page to be mobile responsive

* chore: format in prettier

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-08 14:51:20 +08:00
497575b647 fix: prevent scroll when banners are visible in AppLayout components (#21069)
* fix: prevent scroll when banners are visible  in AppLayout components

* Lint + use tailwind

* fix

* Deprecate LayoutWrapper

* Fix import

---------

Co-authored-by: Mohammed Yasin Mulla <mohammedyasin@obmondo.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-08 14:13:18 +08:00
ab42f99be0 Reset state and set enable form actions for add role sidebar. (#20840)
* Reset state and set enable form actions for add role sidebar.

* Update apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx

* Update apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx

* Revert

---------

Co-authored-by: Santosh Pisini <>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-07 21:38:06 +08:00
Kevin Grüneberg 0fdb7ec5dc chore: bump turbo/supabase (#21072) 2024-02-07 21:17:39 +08:00
Joshen Lim 8841a46dce Fix deleting a query thats not saved throwing an error (#21082) 2024-02-07 11:38:01 +00:00
Joshen Limandgithub-tidy-bot 53c5500be4 feat/sql editor support bulk deletes (#21004)
* Revert "Revert "Feat/sql editor support bulk deletes" (#21003)"

This reverts commit 30245c9490.

* ci: Autofix updates from GitHub workflow

* Lint

---------

Co-authored-by: github-tidy-bot <github-tidy-bot@supabase.com>
2024-02-07 18:03:15 +08:00
Francesco Sansalvadore 70b9a6bcc5 Pricing page update (#20744) 2024-02-07 12:59:25 +08:00
Jordi Enric 98dcc2e2d8 Add "Infrastructure" as a title to the navigation menu in logs (#21056)
add the title
2024-02-07 10:32:25 +08:00
Ivan Vasilov a18c11807d fix: Refetch project details when reseting the database password (#21053)
Invalidate the project details (and refetch the connection string) when the user resets the DB password.
2024-02-06 17:15:07 +01:00
Jordi Enric 36996ab0ac fix/logs-kaizen (#21047)
* align items in row headers

* fix col order and flickering
2024-02-06 17:05:14 +01:00
Ivan Vasilov 4efc350bf5 fix: Don't show the tooltip if the ipv4 addon is added (#20935) 2024-02-06 23:02:42 +08:00
Jordi Enric 44b9ce3e5f feat: query performance improvements (#20907)
* very wip

* add expandable rows

* fix table layout, collapsible row, spacing issues

* use new query with filters everywhere

* rm unused queries

* rm unused fn

* improve loading state

* fix text overflowing in role

* rm padding so that table doesn't always need scroll

* fix icon in search input

* add latency to table row heading to clarify what col youre sorting with

* rm unused imports

* run prettier

* align sql with row content

* add syntax highlighting and sort icons

* rm copy btn

* move tailwind dep to correct package, rm unused syntax highlighting, rm unused component
2024-02-06 15:47:22 +01:00
Joshen Lim 351fa698ce Update GET and PATCH pooling config to use supavisor endpoints (#20944)
* Update GET and PATCH pooling config to use supavisor endpoints

* Fix TS warning

* Small fix

* Remove unused import
2024-02-06 15:03:10 +08:00
e81442de56 chore: Migrate TableStore (#20033)
* Add create, update and delete mutations for tables.

* Use the new mutations instead of the table store.

* Fully remove the TableStore from the MetaStore.

* Move the methods from MetaStore into pure functions in SidePanelEditor utils.

* Remove TableStore.

* Refactor the onError callbacks to be on the mutations.

* Convert some of the UIStore invocations.

* Fixed not closing the modal in case of an error. Migrate some uses of uiStore.

* Use onSettled on all RQ hooks.

* Remove the ui param to the create/updateTable functions.

* Add a missing connection string.

* Add progress bar for loading UI for importing rows

* Update apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx

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

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-02-06 14:56:59 +08:00
Alaister YoungandJoshen Lim a4f86bce8f chore: increase react-query stale time (#19465)
* chore: increase react-query stale time

* keep staleTime: 0 for table rows

* use staleTime: 0 for all user sql queries

* use staleTime: 0 for all pg-meta queries

* Some fixes

* fix updating tables

* fix bug while editing column names

* Fix deleting column in database/tables column list not revalidating UI

* Fix updating column in database/tables column list throwing ane rror

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-06 13:47:05 +08:00
Alaister Young 0a470bc40b fix: always set project details (#21038) 2024-02-06 11:22:35 +08:00