Commit Graph
2745 Commits
Author SHA1 Message Date
Charis ec94638e9f feat: snippet commands (#28573)
Add commands to studio cmd k for searching and running snippets (doesn't actually run them directly cause that would take a lot of duplicated logic, just links to sql editor with them loaded)
2024-08-14 10:32:04 -04:00
Jordi Enric 7832296332 fix sort bug in fk select (#28629)
fix sort bug
2024-08-14 13:24:13 +02:00
Ivan VasilovandJoshen Lim b73317fc67 feat: Pricing for TPA (#28454)
* Don't set fixed height on the generateSecret button in hooks sheet.

* Block two of the TPA providers on free plan orgs.

* Fix some copy. Add more explanation about the pricing.

* Update copy

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-14 11:01:58 +02:00
Joshen LimandAlaister Young 1fdba0ec58 Chore/composite foreign key fixes (#28585)
* Fix inability to update composite foreign key values in RowEditor

* Fix unable to view referencing record in table editor if FK column is also PK

* Update apps/studio/state/table-editor.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-08-14 16:19:53 +08:00
Ziinc a692a30932 docs: add pricing adjustment for log drains / auth features (#28375)
- Added Multi-Factor Auth - TOTP
- Added Multi-Factor Auth - Phone
- Added Third-Party MAUs
- Added Log Drains
- Changed PITR pricing to clarify per month pricing and retention 
- Added Log Drain to bandwidth tooltips/info
- Added Auth user data ownership
2024-08-14 15:02:36 +08:00
Div Arora 8ebcbdd158 chore: minor typo (#28616) 2024-08-14 11:08:08 +08:00
Joshen Lim 8f35d30624 Refactor icons from ui to lucide part 1 (#28581)
* Refactor icons from ui to lucide

* Fix
2024-08-13 21:33:20 +08:00
Joshen Lim 5869005d85 Fix limit in sql editor (#28582) 2024-08-13 14:55:01 +08:00
Joshen Lim 058698e6e8 Chore/auth policies page fixes (#28579)
* Use ButtonTooltip component for create policy CTAs

* Use ButtonTooltip component in PolicyRow

* Remove use of old tooltip component in PolicyRow

* Update Auth policies to allow read only to access edit policy UI but prevent saving from there

* Fix
2024-08-13 14:04:01 +08:00
Joshen Lim 60447a2f75 Style fixes for invite member button modal (#28548)
* Style fixes for invite member button modal

* Fix

* Use filter prop in Command component

* Fix

* Minor
2024-08-13 13:54:43 +08:00
Peter 5e6921679b fix: typo in tooltip for advisor (#28563)
fix: typo in the tooltip for security advisor
2024-08-12 11:49:34 -05:00
Joshen Lim 84e62cb63c Add guard in CellDetailPanel (#28550) 2024-08-12 22:19:30 +08:00
Alaister Young f2e0cd390d fix: CLS preview link (#28552) 2024-08-12 14:06:48 +02:00
a4a7190837 fix: add MFA (Phone) config and TOTP Config (#28303)
* fix: add MFA toggles for testing

* fix: update dummy frontend

* fix: update page

* fix: update to use separate states

* fix: add function to do mapping of enabled to underlying config

* fix: update message copy

* fix: update with callout

* Cleanup unneeded changes.

* Add code for checking if the user has upgraded Phone MFA.

* fix: update types

* fix: show warning on enabled

* fix: update message copy

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

* Fix prettier error.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
2024-08-12 19:21:12 +08:00
Jordi Enric c76c3c4237 LogDrains: add description and gzip (#28551) 2024-08-12 13:20:37 +02:00
Joshen Lim 355aee7d76 SQL Editor support opening cell into side panel for read only detailed view (#28547)
* SQL Editor support opening cell into side panel for detailed view

* Refactor context menu in SQL editor to use ui lib

* Fix

* Fix for NULL values
2024-08-12 17:16:59 +08:00
Joshen Lim 7b44654fa8 Support deleting project in restore failed state (#28504)
* Support deleting project in restore failed state

* Add descrip5tion
2024-08-12 15:45:24 +08:00
Stojan DimitrovskiandIvan Vasilov 08b162e9e3 feat: put firebase auth tpa behind feature flag (#28511)
* feat: put firebase auth tpa behind feature flag

* Minor reordering of the components.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-08-09 18:06:01 +02:00
Terry Sutton bee6afe899 Chore/update local lints (#28421)
* Update lints

* Add new lint type, update api types

* Update lints again

* Update types
2024-08-09 12:07:10 -02:30
Ivan Vasilov d6a33be225 feat: Make the AI panel in the SQL Editor resizable (#28506)
* Fix a "A component is `contentEditable` and contains `children` managed by React." error. Reexport ResizableHandle from react-resizable-panels. Add correct display name for text area.

* Change the AI panel to be resizable.
2024-08-09 16:23:14 +02:00
Terry Sutton 036c777127 Revert "feat(studio): check column types in imported spreadsheet (#17… (#28509)
Revert "feat(studio): check column types in imported spreadsheet (#17072)"

This reverts commit 8456108fb1.
2024-08-09 10:31:15 -02:30
Jonathan Summers-Muir 14618ec41f [dashboard] fix: auth policies button (#28499)
* Update GridHeaderActions.tsx

* Update GridHeaderActions.tsx
2024-08-09 15:14:47 +08:00
Charis 84732ff44c feat: add new command menu to studio (#28432)
Add new command menu to studio. Ports over commands from old menu (with some minor reorganization), then adds:
- Branch switcher
- Project switcher
2024-08-08 16:42:07 -04:00
8456108fb1 feat(studio): check column types in imported spreadsheet (#17072)
* feat(studio): check column types in imported spreadsheet

* refactor: more checks on check inferred column type

* fix: spreadsheet import type check not working because selectedtable is undefined

* rebuild

---------

Co-authored-by: Ryan Martin <rmrt1n@users.noreply.github.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-08-08 13:49:32 -02:30
Kalp ChaudharyandTerry Sutton bf07977b7c issue #21609 added padding right to input component which has "Set to… (#21679)
* issue #21609 added padding right to input component which has "Set to NULL" btn

added padding right to input component that has "Set to NULL" and "Select Record" btn.

Reason: Btns are set to absolute so its good to just give padding to input component.

* Remove input class

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-08-08 12:32:10 -02:30
OmarandTerry Sutton 17384f19f3 Add code snippet to Prisma docs example (#26269)
Add code to create a client

Adding code snippet for client generation.

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-08-08 12:01:34 -02:30
Joshen Lim 1bb86bf705 Only render RestrictionBanner if user is logged in (#28479) 2024-08-08 18:15:43 +08:00
Joshen Lim 4a632125b5 Chore/fix realtime inspector not being able to select latest message if previous latest message was selected (#28471)
* Fix realtime inspector not being able to select latest message if previous latest message was selected

* Lint
2024-08-08 16:57:41 +08:00
Joshen Lim d8003ab0b4 Small UI fixes to extension card (#28470)
* Small UI fixes to extension card

* Revert  padding change to ScaffoldContainer

* Revert change in LayoutHeader

* Pretty
2024-08-08 15:46:30 +08:00
Joshen Lim 0a2e944b06 Various refactors + improvements to project dropdown in invite member modal (#28468) 2024-08-08 14:57:22 +08:00
Joshen Lim 4e3b2daabe Use expanding text area fort RLS assistant (#28444)
* Use expanding text area fort RLS assistant

* Use AssistantChatForm in SQL editor AI assistant

* Use AssistantChatForm in RLS AI assistant

* Fix expanding text area height change

* Clean up
2024-08-08 12:45:45 +08:00
Joshen Lim 557f2ef87e Auth policies dont show warning if schema is protected (#28442) 2024-08-08 10:56:45 +08:00
Thomas df5017f84d fix: fix invoice status label tooltip for invoices in status 'issued' 2024-08-07 15:35:41 +02:00
Joshen Lim 1e2699d7bb Support copy cell content in logs explorer (#28439) 2024-08-07 17:54:32 +08:00
Joshen Lim a3ecf36c65 Show correct number of private snippets for SQL folders (#28411)
* Show correct number of private snippets for SQL folders

* Ensure that private snippet count is updated when sharing / unsharing queries

* Fix snippets caching issuie

* Fix move query modal showing more than just the project's folders
2024-08-07 17:38:17 +08:00
Filipe Cabaço d5fa457bce realtime: Remove realtime authorization flag (#28437)
realtime: Remove realtime authorization flag
2024-08-07 09:47:49 +01:00
Ivan VasilovandJoshen Lim 8f3fb284e3 fix: Fix a bug when updating a row which contains truncated values (#28419)
* Add helper function to check if a value is truncated.

* Fix the validation and generation of payload to not include truncated values.

* Remove console log

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-07 14:33:52 +08:00
Jordi Enric 151eccdcee adds log drains pricing section (#28425)
* update descriptions

* add pricing section

* fix docs link
2024-08-06 19:30:14 +00:00
Terry Sutton 1be7cc4820 Refine lint warning on homepage (#28424)
* Refine lint warning on homepage

* Remove unused
2024-08-06 16:33:20 -02:30
Terry Sutton eb2679110a Chore/connect alignment (#28422)
Fix alignment
2024-08-06 13:25:38 -02:30
Wen Bo Xie 1378ef2e7e fix: update no policies warning to 0 results (#27631) 2024-08-06 10:25:55 -02:30
Jordi Enric b97f3a34fb rename endpoint to http endpoint (#28418) 2024-08-06 11:40:29 +00:00
Alaister YoungandJoshen Lim 0fe5938484 fix: remove unnecessary condition in MemberRow (#28287)
* fix: remove unnecessary condition in MemberRow

* Don't show tooltip for role is 0 projects

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-06 17:29:53 +08:00
Kevin Grüneberg 757de39a26 fix: billing breakdown anchor for TP MAU (#28413) 2024-08-06 10:54:26 +02:00
Kevin Grüneberg 2db6bca58d feat: support for new billable metrics (#28399) 2024-08-06 15:43:04 +08:00
Terry SuttonandJoshen Lim 55acb7214f Chore/null setting (#27443)
* Confirm before setting cell to null

* Small fixes

* New prop for ignoring outside clicks

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-06 10:35:38 +08:00
Jordi Enric 4671c91c8a log drain fixes 2: the return of the fix (#28392) 2024-08-05 21:46:33 +02:00
Terry SuttonandJoshen Lim fee07c5d36 Chore/show lints on project homepage (#23424)
* Move auth lints to query

* Add exmaple components

* Cleanup

* Add sidebar badge

* type issue

* Remove home warning

* Add loader state

* Small style changes

* Small lint

* Only show navbar dot if we have lints

* Revalidate the lint query when sql editor snippets run

* Fix imports

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-08-05 10:49:19 -02:30
hallidayo deb8618187 feat: studio - example project tabs (#27262)
* example project tabs

* imports and alignment changes

* tabs alignment to the left
2024-08-05 09:57:25 -02:30
Joshen Lim 6a265a3289 Chore/fix autodocs stored procedure menu (#28385)
* Fix highlighted state in nav bar for V1 auto docs when selecting a store procedure

* Fix RPC parameters in V2 auto docs

* Replace database functions create function button cta with ButtonTooltip
2024-08-05 17:11:17 +08:00