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)
* 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>
* 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>
* 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
* 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>
* feat: put firebase auth tpa behind feature flag
* Minor reordering of the components.
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
* 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.
* 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>
* 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>
* 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
* 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
* 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>
* fix: remove unnecessary condition in MemberRow
* Don't show tooltip for role is 0 projects
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* Confirm before setting cell to null
* Small fixes
* New prop for ignoring outside clicks
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* 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>
* 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