Commit Graph
410 Commits
Author SHA1 Message Date
Jonathan Summers-MuirandIvan Vasilov e1bbdd0ca7 feat: add resizable inner sidebar (#21548)
* init

* update import names

* Update resizable.tsx

* resizable bg now goes lighter on drag

* only resizable for table editor and sql editor

* Update ProjectLayout.tsx

* Update index.tsx

* Remove unneeded console.log.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-02-26 18:50:44 +08:00
Jonathan Summers-Muir 7c7b10d83d chore: nav icons updated (#21551)
out with the old, in with the new
2024-02-26 18:10:26 +08:00
Joshen Lim 72d00070f3 Expose Shadcnui toast components from UI and partially implement in storage explorer (#21308)
* Expose Shadcnui toast components from UI and partially implement in storage explorer

* Fix
2024-02-26 16:59:49 +08:00
Jonathan Summers-MuirandIvan Vasilov d8ae6de7a8 feat: add new Icons package for custom made icons (#21477)
* feat: add new Icons package

* Create README.md

* add more icons

* add "Home" icon and "Postgres" icon

* reduce helpers

* remove old files

* make dev deps

* Delete package-lock.json

* Update README.md

* add to packages for other apps

* remove from db.design

* Update README.md

* Move the build-icons package in the packages folder.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-02-26 09:40:56 +01:00
Ivan Vasilov b4e768b74f fix: Migrate SQL editor and Log explrorer to use ShadCN Resizable (#21454)
* Add resizable component to ui package.

* Migrate the LogExplorer to use the new resizable component.

* Migrate the SQL editor to use the new component.

* Remove react-split.
2024-02-26 09:39:23 +01:00
Joshen Lim dcdc3cd230 Fix table editor unable to update PK after renaming table (#21285)
* Fix table editor unable to update PK after renaming table

* Lint
2024-02-26 06:21:42 +00:00
Alaister Young 05edf56f55 fix: browser jwt generation (#21544) 2024-02-26 15:50:29 +11:00
Kevin Grüneberg 052dc6c53f chore: bump Stripe deps (#21541) 2024-02-26 02:54:58 +00:00
Charlie Coppinger 321594b3be fix: introduce missing sveltekit icon causing an error in a connections component (#21540)
duplicate svelte icon using sveltekit filename
2024-02-26 02:16:22 +00:00
Vivekkumar JaviyaandChris Gwilliams 1e4e612146 Fix : The Svelte's image isn' t displayed in the docs #21341 (#21346)
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Co-authored-by: Chris Gwilliams <517923+encima@users.noreply.github.com>
2024-02-23 14:14:06 +00:00
Jonathan Summers-Muir f2d5368683 fix: update brand colors in SQL editor AI (#21483)
* update brand colors

* Update SQLEditor.tsx

* Update SQLEditor.tsx

* Update SQLEditor.tsx
2024-02-23 14:53:46 +01:00
Dane Miller 79c291f31d fix: dark mode icon for remix icon on the connector dropdown (#21397)
fix: fix dark mode icon for remix icon on the connector dropdown
2024-02-23 13:53:29 +00:00
Jonathan Summers-Muir 13ea35f631 a11y updates on table editor entity items (#21482)
a11y updates on entity items. fixed bg-selection issue
2024-02-23 14:50:46 +01:00
hallidayoandTerry Sutton b510595abf feat: connect - expo react native (#21350)
* add react native expo for connect

* Update apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-02-23 10:02:20 -03:30
Kevin Grüneberg bc8e4374a7 fix: dev vulnerabilities (#21474) 2024-02-23 12:32:55 +01:00
Joshen Lim d1ab275bea Chore/read replica final touches (#21420)
* Add validation for max replicas check

* Small UI fixes

* Add useMemo for edges

* Fix nodes not shwoing up when switching between map and flow view

* Fix logs explorer copy button

* Add edge changes to useEffect

* Bump wait duration when creating replica

* Sync database selector and use pooler checkbox states across panels on settings database

* Fix InstanceConfiguration not showing any nodes

* Sort databases in DatabaseSelector to have primary first

* Logs explorer border fotter

* Add database selector for edge logs

* Make buttons more concise in logs

* Clean up

* Fix

* Fix home page empty empty state

* Attempt to support pooler logs

* minor qol fix for database selector

* Update shared-data pgbouncer to supavisor

* small fix
2024-02-23 18:08:06 +08:00
Joshen Lim 021cbf2eb5 Fix safari height issue (#21442) 2024-02-22 18:14:55 +08:00
Joshen Lim 7556a3181c Update error handling for table editor RQs (#21443) 2024-02-22 16:29:10 +08:00
Charis becefdad8b fix: local studio doesn't have organization (#21416) 2024-02-21 18:39:52 -05:00
Joshen Lim fc405ce035 Chore/expose load balancer api endpoint in api settings (#21314)
* Expose load balancer API endpoint in API settings

* Add load balancer as a node in infrastructure config

* Add load balancer node to infra config

* Fix
2024-02-21 16:58:15 +08:00
Ivan VasilovandJoshen Lim b025cc3810 fix: Add server-side fetching and filtering to the Table Selector in the realtime inspector (#21256)
* Rename the TableSchema to FilterTable.

* Fix the button state when filtering by table.

* Refactor the FilterTable to support searching for tables.

* Update apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Fix the style for the error alert.

* Fix a variable name.

* Small style fixes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-21 16:11:44 +08:00
Terry SuttonandJoshen Lim bdd3ad76ad Chore/show impersonator in views (#21401)
* Show role impersonation in views and tables

* Small fixes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-21 15:34:33 +08:00
Joshen Lim fe7e66615f Fix SQL editor highlighting wrong line if have selection (#21288) 2024-02-21 15:05:12 +08:00
Joshen Lim 632f8f95f4 Chore/pooler strings for read replicas (#21383)
* Midway

* Show respective pooler parameters based on selected database

* Add optional params to DatabaseSelector to de-async state between connection string and connection params on database settings page

* remove badge
2024-02-21 14:50:53 +08:00
Joshen LimandIvan Vasilov adced655e7 Chore/sort projects alphabetically on home page (#21392)
* Sort projects alphabetically on home page

* Add search functionality on home page

* Minor fixes.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-02-21 14:43:58 +08:00
Joshen Lim 8af291101d Fix foreign key management bugs (#21381) 2024-02-21 14:34:12 +08:00
Dane Miller 7adfb21cb7 feat: add remix to connector dropdown (#21373) 2024-02-20 12:35:03 +00:00
Kamil Ogórek c7c8263f81 fix(ui): Update vercel-icon.svg to support both color modes (#21262) 2024-02-20 12:54:15 +01:00
Kevin Grüneberg 6d717ab76a fix: hide no project warning for enterprise (#21387) 2024-02-20 11:56:19 +01:00
Ivan Vasilov d07a820440 feat: Pro+ users can choose compute size during project creation (#21292) 2024-02-20 16:19:26 +08:00
Jonathan Summers-Muir 41fe4a993b fix: moved useeffect for theme provider (#21378) 2024-02-20 14:56:46 +08:00
Jonathan Summers-Muir 954b831a77 fix: theme switcher in account page (#21377) 2024-02-20 04:46:29 +00:00
Terry SuttonandIvan Vasilov b4fa734c85 Chore/use completions api (#20246)
* Start

* Refactor code and remove unused imports

* Refactor SchemaFlowHandler and UserChat components

* Refactor code and remove unused files

* Refactor Thread component and remove CurrentThreadName import

* Remove oldest_messages view from supabase.ts

* Refactor supabase.ts file

* Hook up loading state ChatInput component and remove old route handlers

* Add updated prompt

* Refactor chat form component and remove unused code

* Make the suspense work when fetching messages.

* Small refactor in the chat assistant form component.

* Experimenting with streaming responses. WIP.

* Move all components to thread_id/message_id folder.

* Massive refactor but uses Nextjs app router properly.

* Add a conditional submit which is used if the user haven't been logged in.

* Add a typecheck command to db-new app.

* Minor fixes.

* Bunch of minor fixes.

* Clean up more code.

* Refactor the AssistantChatForm to use the new React forms features.

* Run fitView after 50 milliseconds because it didn't run in some cases.

* Style and flow nudges

* Prettier

* Delete old file

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-02-19 15:52:58 -03:30
IljaandTerry Sutton 02e7e9cf87 Add astro, temporarily (revised) (#21331)
* Add astro, temporarily

* Move content file

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-02-19 11:48:02 -03:30
Ivan Vasilov 66ae36e005 feat: Playwright tests (#21083)
* initial commit for testing the github action.

* Improvements to the Github action.

* Add docker caching.

* Fix an issue in the github action.

* Another fix for the action.

* Just delete the db after the tests.

* Add a supabase app to the playwright-tests.

* Delete .env.testing.

* Remove the docker image caching from the Playwright github action.

* Add a README.md.

* Add an example test for the table editor.

* Ignore the generated keys.json.

* Add commands for running and writing tests.

* Remove Auth tests.

* Only show the react-query tool when not in test mode.

* Add data-testids to the buttons and use them in the test.

* Handle a case where SUPABASE_URL isn't defined.

* Fix the button test id.

* Remove some dependency.

* Try setting a timeout for an action.

* Add timeout to another action.

* Add some timeouts before the save button.

* Add some timeout before clicking save.

* Enable the video recording only during local testing.

* Minor fixes.

* Expand the README.
2024-02-19 12:12:54 +01:00
Jordi Enric 29e447b153 Fix settings/infrastructure compute instance data (#21363)
try to make code a bit less confusing and prone to bugs
2024-02-19 11:42:45 +01:00
Mohammed Yasin MullaandChris Gwilliams 78a1a35ede style: center the checkbox to the text (#21335)
Co-authored-by: Chris Gwilliams <517923+encima@users.noreply.github.com>
2024-02-19 10:09:56 +01:00
Kevin Grüneberg efda654789 chore: sign impersonation JWT with browser crypto (#20212) 2024-02-19 15:16:42 +08:00
Ivan VasilovandJoshen Lim 630eeefa93 fix: Minor papercut fixes in the studio (#21319)
* Fix small issues with the tables and keys.

* Refactor the TimezoneSelection with shadcn components.

* Dont pass active to the NavMenuItem.

* Fix the double hash in the _ page.

* Fix an error where an input received an undefined as value.

* Fix increase retention period in PITR disabled incorrectly

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-19 13:34:24 +08:00
Rodrigo Mansueli 520e8970b6 Update Logs.constants.ts (#21325)
Fix outdated template

Add template to help with egress investigation
2024-02-16 15:08:06 -03:30
Jordi Enric b8b37c6193 fix overflow in logs explorer (#21323)
fix overflow
2024-02-16 19:26:14 +01:00
Fabrizio 1f1d1ad3bf chore(storage): allow 50GB upgrade self-serve (#21220) 2024-02-16 22:50:32 +08:00
hallidayo d75a2a814f fix: alert description overflow (#21138)
* added word break on the description

* changed to break-words
2024-02-16 10:58:13 +00:00
Joshen Lim 1b5f35983e Make region names consistent between settings and project creation (#20760)
* Make region names consistent between settings and project creation

* Add flag
2024-02-16 17:17:31 +08:00
Joshen Lim f36c1b6706 Refocus sql editor after closing destructive query modal (#20759) 2024-02-16 14:30:43 +08:00
754ee55cd0 chore: update themes and add dark-new theme set (#20865)
* chore: update themes and add dark-new theme set

* chore: update

* add deep dark css theme

* fix issue with wrong class

* chore: add `bg-studio` as a custom remapped color for studio background

* updated surface classes to use a surface-75.

* update backgrounds and borders

* Update CardButton.tsx

* Update NavigationIconButton.tsx

* chore: add theme selection

* Update package.json

* Update index.ts

* Update package.json

* update alias

* Update ThemeSettings.tsx

* chore: split up theme support

* remove old code

* Update index.ts

* add back in

* Update ThemeSettingsOld.tsx

* fix issue with system theme leaking through

* reset themes

* update imports

* packagelock updated

* Update ThemeSettingsWithPreferredTheme.tsx

* Update system.svg

* Update NavigationIconButton.tsx

* Update NavigationBar.tsx

* update

* Update light.css

* updated some colors

* light mode updated

* hacked

* prettier

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2024-02-15 16:56:18 +01:00
cc008ef983 Feat/homepage connect modal combined (#20328)
* First

* Update

* Move connection string panel to its own component

* Add connection strings

* Format button

* Add dummy files to get logic working

* Add mdx packages

* add file handling and change logic

* Support connections

* Fix icons, add direct and graphql

* Remove mdx stuff

* Add pooler toggle

* Fix child logic

* Fix grandchild logic

* Refactor data object

* Move back to dialog ui

* Refactor to shadcn tabs

* Find the files

* Wire up icons

* Loop over connection types

* Reformat file paths

* Remove from project home

* fix tab rendering issue

* Check for unique keys

* Add new libs

* comment

* Add direct connection ui

* Get project connection strings

* Cleanup

* Add project keys

* Add types file

* Undo update

* Add next app files

* Add files

* Add next pages files

* Add nuxt

* Fix env vars

* Add rest of frameworks, graphql and orms

* Add orms

* Fix types

* Add guide links

* Run prettier

* Separate graphql

* Move ui

* Move direct connection to first position

* Move to single files

* Update styling

* Fix locations

* Fix next content

* Fix dialog close button, add proper light mode theme

* Fix dialog style issues

* CleanupA

* Pin to top

* Feat/homepage connect modal combined  styling update (#21079)

* chore: update styling. also moved useStates as it was sort of duplicated

* Cleanup

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>

* Close pooler modal

* Make the db connection panel blend in

* Allow for DatabaseSelector

* Dont open by default

* Some fixes

* Set min height to loader

* Fix

* Small styling fixes for table editor sort filter popover

* Make connect button stand out

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-15 09:25:17 -03:30
Jordi Enric cf1264f614 fix window undefined error when ssr some pages (#21295)
fix
2024-02-15 12:52:57 +00:00
Terry SuttonandJoshen Lim 46051bce17 Chore/table editor header simplification (#18366)
* start

* Update

* Types

* Passhref

* Cleanup

* Update

* Fix

* Updates

* Updates

* Enable RLS from table editor

* Cleanup

* Filter current table policies

* Fix missing footer

* Duplicate role picker

* Remove rls banner

* Add tooltip for rls enabled, but no policies

* Fix footer positioning

* Prettier

* Change wording

* Update button style

* Cleanup

* Small update

* Fix Auth policies button number bg color

* Fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-02-15 09:10:30 -03:30
Ivan Vasilov 4c7ff74a00 fix: Update the types in api.d.ts. (#21287)
* Update the types in api.d.ts.

* Send zero for integration id.
2024-02-15 13:01:12 +01:00