Commit Graph
3910 Commits
Author SHA1 Message Date
Joshen LimandAlaister Young 0509bc37d5 Chore/branching update requirements (#19670)
* Update requirements to enable branching

* Remove panel query when closing subscripton plan panel

* Update apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPlanNotice.tsx

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

* Lint

* Lint

* Update

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-12-14 13:49:06 +08:00
Joshen LimandAlaister Young 3f1a1d1130 Chore/deprecate triggers store (#19712)
* Replace all usage of meta.triggers with react query

* Deprecate and remove ttriggers mobx store

* Fix

* Update apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-12-14 12:04:02 +07:00
Joshen Lim 8913bd992b Fix create trigger (#19711) 2023-12-14 10:36:52 +07:00
Joshen Lim 6298e1e14b Chore/deprecate publications store (#19655)
* Hide RLS assistant features for orgs with HIPAA

* Replace all usage of meta.publications with react query

* Deprecate publications store from meta store mobx, shift updateTableRealtime logic to SidePanelEditor

* Address comments
2023-12-14 10:21:25 +07:00
Kang Ming 963c902f1b fix: update copy & icons in auth settings page (#19710)
* fix: add hcaptcha and cloudflare icons

* fix: update copy
2023-12-13 18:08:55 -08:00
Kang Ming 5894b0480e fix: update basic auth settings form (#19708)
* fix: allow formfield to not have an icon

* fix: convert radio buttons to formfields
2023-12-13 16:59:52 -08:00
Ivan Vasilov a72f60ff61 chore: Remove unused stores (#19637)
* Remove DatabaseStore and AppStore.

* Remove ForeignTableStore.

* Remove MaterializedViewStore.

* Cleanup FunctionsStore.

* Remove project functions store.

* Fix a misspell error on master.

* Remove columns, policies and functions stores from the meta store.
2023-12-13 15:37:25 +01:00
Terry Sutton 99bfdb8354 Move connection string panel to its own component (#19647) 2023-12-13 09:17:15 -03:30
Kevin Grüneberg 590e74fd1e chore: improve tooltips for usage breakdowns (#19662) 2023-12-13 13:13:00 +01:00
Kevin Grüneberg 20fbbdbf95 fix: do not show plan exceeded for compute (#19661) 2023-12-13 13:12:50 +01:00
Ivan Vasilov 8be7d08b6a chore: Migrate all .js files in studio to .ts (#19601)
* Change the config to only allow TS files.

* Rename bunch of files from js to ts.

* Add better types to some files.

* Rename the big StorageExplorerStore but with no-check flag.
2023-12-13 12:17:15 +01:00
Ivan Vasilov 8879dd273a fix: Fix max connections label (#19627)
* Convert the SQL query to react-query. Minor refactor.

* Make the widget better in case of a API call failure.
2023-12-13 11:20:47 +01:00
Joshen Lim 39728bac04 Update denyUrls for sentry client config (#19657)
* Update denyUrls for sentry client config

* Update

* Update
2023-12-13 16:12:15 +07:00
Joshen Lim 453c769963 Chore/sql editor ai self host (#19649)
* Remove feature flag for sqlEditorSupabaseAI

* Skip hipaa addon check for self hosted
2023-12-13 14:27:08 +07:00
Joshen Lim 74a9deb103 Hide RLS assistant features for orgs with HIPAA (#19650) 2023-12-13 14:11:15 +07:00
Joshen LimandAlaister Young 04c19a0d62 Chore/refactor db extensions to rq (#19622)
* Init db extensions to RQ

* Shift all extensions to RQ

* Deprecate extensions meta store

* Address comments

* Address comment

* Address comment

* Update apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx

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

* Remove connection string check for entity-types-query and database-triggers-query

* Remove connection string checks

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-12-13 12:02:20 +07:00
Kang MingandJoshen Lim e9a6a40625 feat: add identity linking config (#19615)
* refactor: linkedin config

* docs: update admonitions

* fix: broken docs link in linkedin provider

* feat: add manual linking toggle

* Link to docs for manual linking APIs

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-12-12 10:12:51 -08:00
Austin TranandTerry Sutton afa8f5ad9a fix: Unable to export data from the table to CSV (#19436)
* fix: Unable to export data from the table to CSV

* Update apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx

* Prettier

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-12-12 10:55:11 -03:30
Joshen Lim 7d04868760 Chore/rr improvements (#19584)
* Add CTA to database selector

* Refactor

* Refactor rendering of tooltips to use Marker component instead of superimposing html on svg

* lol tiny fix

* More style fix

* Address comments
2023-12-12 15:07:18 +07:00
Alaister Young c347bb0d71 chore: improve database webhooks page loading experience (#19619) 2023-12-12 17:36:26 +11:00
Alaister Young 920621d1e1 chore: improve database pages loading (#19525)
* chore: improve database pages loading first few pages

* improves database roles loading

* improve loading on replications page

* improve backups, hooks and wrappers loading
2023-12-12 15:40:43 +11:00
cac702231c Flynn (#19599)
* Blog draft 1

* Updates

* Update images

* Prettier

* Edits

* Edits

* author update

* Apply suggestions from code review

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

* minor grammar

* first pass

* smol tweaks

* smol edits

* final edits

* Adds clarity

* more iteration of the product naming

* Add thumbs

* Updates

* Spelling

* Spelling

* build item

* update cta text

* set up d1

* d1 image

* blog post link

* add dynamic import

* add yt video

* update scroll top

* add x space

* x space target blank

* update promo banners

* Add yt video

* add Zoomable image to latest blog post

* Add github discussion links

* add hackathon

* improve main stage mobile card

* add latest post to nav

* New images

* update promo titles

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-12-11 12:22:21 -03:30
Kevin Grüneberg 928bc56596 fix: skip free project limit when unpausing on paid plan (#19593)
* fix: skip free project limit when unpausing on paid plan

* Update ProjectPausedState.tsx
2023-12-11 21:27:15 +07:00
Ivan VasilovandTerry Sutton eb83b51d98 fix: Add some more instructions to the AI Editor (#19507)
* Add some more instructions to the AI Editor.

* More updates to the suggestion instructions.

* Add spacing to policy details

* Monaco settings

* Copy changes to check when clicked

* Spelling

* More instructions for the AI.

* Make the error panel wrap text. Calculate the height of the editor dynamically.

* Add a comment.

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-12-11 11:20:04 +01:00
Joshen Lim 18840b5e3b Chore/column editor show types from extensions schema (#19580)
* Show types from extensions schema in table editor

* Shift postgres types to RQ

* Deprecate types store in mobx

* Address feedback

* Update label
2023-12-11 15:11:23 +07:00
Alaister Young 35e5b6b87b chore: make returning optional for insert/update queries (#19463)
* chore: make returning optional for insert/update queries

* use arrow function for SupabaseGridLayout

* add success toasts
2023-12-11 08:04:49 +00:00
2f21a7426a feat: add auth hooks starter templates (#19349)
* feat: add mfa initial template

* feat: update template

* fix: add whitespace and general template

* Apply suggestions from code review

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

* fix: add grants to all templates

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
2023-12-11 15:45:06 +08:00
Alaister Young 49219d4b88 chore: add role impersonation on views (#19581) 2023-12-11 17:52:48 +11:00
Alaister Young 9d8e8b068f chore: move role impersonation state into a context (#19510)
* chore: move role impersonation state into a context

* clean up ProjectContext.tsx imports

* move isRoleImpersonationEnabled to only relevant queries
2023-12-11 16:32:11 +11:00
Pamela Chia a88ad43f2d chore: update DPA (#19536) 2023-12-10 10:11:29 +01:00
Joshen Lim 033c9d28de Fix SQL editor connection string (#19523) 2023-12-08 15:14:10 +08:00
Joshen Lim 539c2bbace feat/rr-functionality (#19466)
* Implement read, create, delete replicas

* Long poll replica statuses if any one of them is coming up

* Support querying replicas in SQL editor

* Add optimistic rendering for setting up and removing replicas

* Small style fix for database selector in SQL editor

* Small fix

* Add Alerts around PITR and PG upgrades RE read replicas

* Small fixes after testing flag off

* Add UI guards to check that project has PITR before deploying replica

* Fix

* Address feedback

* Fix

* Update replicas RQ to enable based on flag
2023-12-08 13:41:35 +08:00
Kevin Grüneberg ae8ce04f16 chore: .env file pull for www (#19511) 2023-12-07 14:58:34 +01:00
Jonathan Summers-MuirandIvan Vasilov 05c674e2a7 Realtime inspector icons colors (#19402)
* colors

* Fix leftover issues from merging from master.

* Fix the schema/table selectors loading states to eliminate layout shifts.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-07 13:51:16 +00:00
Stojan Dimitrovski 44694ef6de feat: add beta auth hooks UI (#19312)
feat: add beta hooks UI
2023-12-07 14:30:30 +01:00
Joshen Lim 40ca7e09bd Branching remove incorrect modal warning (#19496)
* Branching remove incorrect modal warning

* Update warning wording
2023-12-07 09:58:54 +00:00
Ivan Vasilov 7da3151829 fix: Feedback fixes for the RLS Editor (#19469)
* Update the wording on few places.

* Update instructions for AI when generating policies.

* Format the SQL in the suggestion blocks to have uppercased keywords.

* Add padding before each code block.

* Word wrap the code in the diff editor.

* Remove unused component.

* Remove the added instruction.

* Add tab instructions.
2023-12-07 10:44:55 +01:00
Alaister Young 1b0b606616 fix: add missing supabase database roles (#19461)
* fix: add missing supabase database roles

* Update apps/studio/components/interfaces/Database/Roles/Roles.constants.ts
2023-12-07 13:41:50 +08:00
Terry Sutton 83a748021a Fix trigger toggle (#19485) 2023-12-06 14:49:20 -03:30
Alaister Young c5d79f458f fix: install vercel integration button incorrect asChild (#19471) 2023-12-06 16:47:58 +01:00
Ivan Vasilov efa055f068 fix: RLS Editor with Streaming AI - second attempt (#19462)
* Reapply all changes from the reverted PR.

* Move the API route to pages folder.

* Turn off outputFileTracing.
2023-12-06 15:54:22 +01:00
Terry SuttonandAlaister Young 64e563000b Chore/new org button (#19437)
* Add new org button

* Check project count before rendering

* Update

* Update apps/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-12-06 10:16:25 -03:30
Alaister Young 42164183f2 fix: add missing asChild props (#19456)
* fix: add missing asChild props

* move csvlink outside of dropdown trigger

* fix incorrect merge
2023-12-06 21:11:32 +11:00
Kevin Grüneberg 6468437375 chore: adjust logic for new project screen (#19449) 2023-12-06 10:10:04 +01:00
Alaister Young 49ac7d8975 chore: improve loading on table editor index page (#19454)
* chore: improve loading on table editor index page

* fix margin on no results

* make TableEditorLayout non-blocking by default

* change no search results text
2023-12-06 07:17:46 +00:00
Joshen Lim 76a9be105b Minor color fix for feature preview panel (#19455) 2023-12-06 07:00:21 +00:00
Kevin Grüneberg d6b7c1b7ba Revert "feat: Add streaming responses to the new RLS Editor (#19304)" (#19439)
This reverts commit a2b01e0bc5.
2023-12-05 16:50:26 +00:00
Kevin Grüneberg fc5d389a9f feat: rework usage overview (#19434)
- Added a quick indicator about over-usage on non-usage-based plans (free or pro with spend cap) at the top of the subscription page
- Removed the usage summary from upcoming invoice (replacement on the usage page)
- Added a new usage summary on the organization usage page
- Per-project breakdown for usage
- Displays costs for over-usage on usage-based plans
- Improved scrolling behaviour for anchors on usage page
- Metrics with higher usage/costs will be sorted to the top
- Insights into compute usage in summary
- Removed duplicate typing and rely on API types for usage DTO
- Usage can now be retrieved for a custom period and not just the current billing cycle
- Usage can be filtered by project
2023-12-05 16:50:02 +01:00
Stojan Dimitrovski b9c305d49d feat: add hibp leaked password protection (#19416) 2023-12-05 16:22:25 +01:00
Ivan Vasilov a2b01e0bc5 feat: Add streaming responses to the new RLS Editor (#19304)
* Add vercel/ai. Commit additional next types.

* Add a API route in /app for streaming responses.

* Make the components work with streaming response.

* Add a dummy page to /app folder to fix a linking bug.

* Fix the dummy page.

* Fix the dummy page again.

* Add an empty layout to the app folder.

* Make the code snippets in the chat read-only.

* Remove queries and mutations for suggest.

* Reset the chat when closing the panel.

* Make the AI instructions a bit better.

* Don't render empty code blocks.

* Try to use remark for rendering the code. Style fixes for CodeBlock in AI assistant panel.

* Fix the styling of the definitions when sending them to OpenAI.

* Fix the css styling of the messages and code blocks.

* Move the suggest API route from app to pages folder.

* Revert the change for app API routes.

* Make the API route look like the rest of the API routes.

* Use Pre instead of Code because the <code> tags aren't working if between spans.

* Minor leftovers.

* Revert to using app route handlers.

* Change the wording on the diff header.

* Add nextjs types.

* Fix a missing import.

* Move AssistantChatForm back to db-new.

* Fix a build error.

* Rename the suggest route to assistant.

* Fix Joshen's comments.
2023-12-05 16:05:02 +01:00