Commit Graph
215 Commits
Author SHA1 Message Date
Terry Sutton 66f8f7400a Fix copy cell content in sql editor (#18677) 2023-11-02 16:40:21 -02:30
Kevin Grüneberg 11914a55de chore: remove old billing code (#18610) 2023-11-01 10:52:52 +01:00
Joshen Lim 067a4dd4c2 chore/fix-table-editor-no-rows-state (#18604)
* Add comments

* Fix
2023-10-31 06:40:50 +00:00
8057309e51 chore: upgrade next 13 + react 18 (#17839)
* update deps + image codemod (studio)

* update next links (studio)

* update deps

* update links (ui)

* remove next-transpile-modules

* move next-themes dependency

* chore: update ConfirmDialog

* chore: remove old ConfirmModal js file. migrated to TS

* dependency wrangling

* remove empty page

* update next links (www)

* First run bump react-data-grid-v7 beta 4

* fix package-lock.json

* more deps wrangling

* update recharts

* update sentry options

* fix some broken things in www

* studio fixes

* fix graphiql

* fix studio build

* fix menu hydration

* small build error

* update turbo

* fix www typescript errors

* docs image codemod

* links codemod docs

* fix docs typescript errors

* move useConsent to ui to prevent circular deps

* Fix links

* Fix homepage

* Fix links

* move studio/ to apps/

* Revert "move studio/ to apps/"

This reverts commit 1b0a985fcb.

* disable outputFileTracingRoot

* remove outputFileTracingRoot

* fix homepage product cards

* fix PrivacySettings links

* Fix links

* Fix the build for www.

* Minor fixes for JWTGenerator.

* Fix the docs and ui tests.

* Revert codehike back to 0.8.3

* remove ConfirmAlert()

* reenable babel because mobx hates me

* fix blog image and comparison page avatar

* Fix svg errors

* update image synthax

* Fix code hike

* Move the button in a div so that it doesn't inherit its parent height and make the button look weird.

* When components are defined in a component, they get recreated on each render. This makes them unstable in certain cases and causes infinite rerenders.

* Replace the next/head usage with next/script.

* Chore/upgrade next 13 fix table editor (#18431)

* fix table editor styling and fix row deletion logic

* Fix deleting selected rows from header, and fix checkboxes not clearing up

* Fix deleting all rows when filter applied, and fix deleting all rows

* Fix grid size styling issue

* Fix TS error

* Hydration errors

* studio org pages fixes

* fix more studio links

* audit logs fixes

* dropdown icon styling fixes

* fix some images in www

* upgrade to next 14

* try new sentry wrapper for api

* see if this is even invoked

* Revert "see if this is even invoked"

This reverts commit 86c3973ffa.

* Revert "try new sentry wrapper for api"

This reverts commit f67623ebad.

* Revert "upgrade to next 14"

This reverts commit a24dd6131e.

* chore: allow node version 19/20

* Try to fix the LogTable so that it renders with the newer "react-data-grid" version.

* Fix type errors in the log renderer code.

* Fix the replication screen.

* Add the CSS for the GraphiQL.

* Fix SQL editor results rendering

* Lint

* Fix SQL editor results height issue

* Fix auth RLS not invalidating RQ when toggling RLS

* Fix database tables new/edit column regressed

* Fix migrations page empty state if migrations schema not yet created

* Fix API side panel docs temp remove postgrest text for column description PK and FK

* Fix + improve timeout handling in SQL editor

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2023-10-31 05:51:46 +00:00
Ivan Vasilov d0a51a42da Make the button red when running a destructive query (#18493)
Make the button red when running a destructive query.
2023-10-26 11:56:19 +02:00
Joshen LimandAlaister Young 651138a88e Chore/improved error surfacing in sql editor (#18327)
* Improved error surfacing for SQL editor

* Remove unnecessary style

* Improve logic

* Update studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx

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

* Add guard

* Update studio/components/interfaces/SQLEditor/SQLEditor.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-10-19 15:12:14 +08:00
Kevin Grüneberg 6ef8195e8b feat: rework database health report disk space (#18023) 2023-10-18 10:51:27 +02:00
Ivan Vasilov cde1731b43 fix: content param doesn't work in the SQL editor (#18176)
* Fix the content parameter for the SQL editor.

* Add comment.
2023-10-16 16:31:56 +08:00
Greg Richardson 285a299b9b Fix: SQL Editor destructive query false positive (#17965)
fix(sql-editor): destructive query false positive
2023-10-05 16:06:35 -02:30
Ivan Vasilov 7dea89cc35 Drop the _shadcn_ suffix from the the Dropdown component (#17804)
Replaced all occurrences of _shadcn_ for the Dropdown component.
2023-10-03 13:12:34 +02:00
Ivan Vasilov 18c11843ee Dropdowns migration followup (#17730)
* Remove text color from all dropdown items. The color was set by a class but it should be left to be decided by the parent.

* Make the text smaller in all dropdown elements.

(cherry picked from commit 9a71b3f987047ad26de6e5d496ccf53bc559f71d)

* Fix mismatched colors.

* Remove obsolete text-xs.

* Fix the button in the AI SQL editor.
2023-09-29 11:11:33 +00:00
Joshen Lim 430bafecf0 Add debounce to handleEditorChange to fix performance drops in SQL editor (#17749) 2023-09-27 16:19:08 +08:00
Terry Sutton 4500d91f23 Fix snippet not renaming after creation (#17740) 2023-09-27 13:38:49 +08:00
Ivan Vasilov 76db9f27b3 Migrate dropdowns to use the new Dropdown component (#17427)
* Remove unneeded component.

* Update the dropdown content to support size prop (medium by default). Add space-x-2 to the dropdown item. Add flex to DropdownTrigger so that it's more vertically centered.

* Migrate Insert row dropdown in the TableEditor.

* Refactor UserDropdown to use the new Dropdown from shadcn.

* Migrate the ColumnMenu to use the new dropdown.

* Migrate the rest of the dropdowns.

* Remove the size prop and set the w-64 as default.

* Fix build errors.

* More dropdown fixes.

* More fixes.

* More fixes to various dropdowns.

* Remove the flex from the DropdownTrigger and add it in where it's needed.

* Snapshot.

* Remove keys on dropdown separators.

* Fix the dropdown in the SQL editor.

* Minor type fix.

* Remove space-x-2 from DropdownMenuItem and add it to each item where it's needed.

* Remove the space from the dropdown item.

* Fix a build error.

* Fix the item text in some of the dropdowns.

* Remove duplicate CSS from all dropdown items.

* The SubMenuContent text should be lighter to match MenuContent.

* Fix various CSS issues.

* Revert "Remove unneeded component."

This reverts commit ef606f6695.

* Fix migrated CSS classes.

* Last round of feedback fixes.
2023-09-26 15:29:07 +02:00
Ivan Vasilov 6648acacea Migrate CSS classes for light text (#17725)
* Replace all occurences of text-scale-1100 to text-foreground-light.

* Replace all occurences of text-scale-1000 with text-foreground-light.

* Fix double uses of text-foreground-light.
2023-09-26 11:05:28 +02:00
Joshen Lim 7aee78a8b8 Replace all occurences of text-scale-1200 with text-foreground (#17723)
* Replace all occurences of text-scale-1200 with text-foreground

* Fix spelling
2023-09-26 15:53:03 +08:00
Joshen Lim cfb3c658ad Add prettify feature in sql editor 2023-09-14 15:32:04 +08:00
Joshen Lim 42060d2182 Small copy fix on sql editor 2023-09-12 17:15:24 +08:00
Joshen LimandAlaister Young 8dd3732b97 Update studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-09-08 16:07:13 +08:00
Joshen Lim 3ad68d21eb Hide row number while excecuting sql 2023-09-08 16:05:08 +08:00
Joshen Lim b4b43e4f0c Add number of results beside results button in sql editor 2023-09-08 15:36:22 +08:00
Joshen Lim 63f1ce7c46 Add active voice for dbdev sql template title 2023-08-28 14:22:57 +08:00
Alaister Young 62f40b685c Merge branch 'master' into or/dbdev-template 2023-08-28 15:23:40 +10:00
Oliver Rice 685481ab58 add template for dbdev installer 2023-08-25 14:44:29 -05:00
Ivan Vasilov c569429519 Fix the exporting of CSV to handle JSON columns. 2023-08-25 21:16:19 +02:00
Joshen Lim 1d19861c37 Address comments 2023-08-25 12:55:04 +08:00
Joshen Lim 567ba3dbc0 Merge pull request #16582 from supabase/feat/read-only-ui-for-indexes
Implement read only UI for indexes
2023-08-22 14:39:36 +08:00
Joshen Lim 45799b3d91 Implement create index functionality 2023-08-18 17:27:02 +07:00
kishanhitk 8129c64e11 chore: remove logs 2023-08-15 15:46:39 +05:30
kishanhitk b9696c3cc3 feat: remove comments from sql before checking for destructive statement 2023-08-14 22:03:03 +05:30
kishanhitk b4e355c37b chore: add TODO 2023-08-14 19:48:45 +05:30
Greg Richardson a750d52e9b fix: use \s instead of space character in regex 2023-08-11 10:54:51 -05:00
Greg Richardson 72b2053984 fix(sql-editor): regex for destructive operation detection 2023-08-11 10:44:15 -05:00
Greg Richardson 5e075e1755 fix(sql-editor): missing useEffect deps 2023-08-10 12:19:40 -05:00
Joshen Lim b3e0826369 Merge pull request #16378 from supabase/fix/sql-ai-title-gen-flag
Fix: Put SQL AI title gen behind feature/hipaa flags
2023-08-10 16:17:13 +08:00
Joshen Lim 409d6c7d8a Merge pull request #16382 from supabase/fix/refetch-entity-definitions-after-execute
Fix: Refetch entity definitions after SQL execution
2023-08-10 15:57:09 +08:00
Joshen Lim a1cff5989a Merge branch 'master' into fix/sql-ai-title-gen-flag 2023-08-10 15:56:26 +08:00
Joshen Lim 998ba94811 Update studio/components/interfaces/SQLEditor/SQLEditor.tsx 2023-08-10 15:50:25 +08:00
Joshen Lim 6d45a51129 Merge pull request #16377 from supabase/fix/hipaa-addon-check
fix: check for hipaa addons
2023-08-10 15:49:10 +08:00
Greg Richardson bb4436d8bf fix(sql-editor): refetch entity definitions after sql execution 2023-08-09 10:31:03 -05:00
Greg Richardson 86a5ef8f2e fix(sql-editor): put ai title gen behind feature/hipaa flags 2023-08-09 09:41:44 -05:00
Kevin Grüneberg 72be58f858 fix: check for hipaa addons 2023-08-09 16:21:41 +02:00
Ivan Vasilov 53d90cd8d7 Add headers to downloaded CSV. 2023-08-09 14:31:25 +02:00
Ivan Vasilov d32f97d1eb Add handling to escape quotation marks also. 2023-08-09 13:43:49 +02:00
Ivan Vasilov 7190224e5c Fix the CSV download in the SQL editor to escape newlines. 2023-08-09 13:43:49 +02:00
Joshen Lim 1fe4b4527d Remove use of fixedOverflowWidgets 2023-08-09 16:26:42 +08:00
Joshen Lim dfc8793eb3 Disable debug button if running 2023-08-09 14:56:19 +08:00
Joshen Lim d2d3ad35ba Merge pull request #16359 from supabase/fix/ai-sql-editor-fixes
Fix/ai sql editor fixes
2023-08-09 13:27:42 +08:00
Joshen Lim baaca12f13 Update studio/components/interfaces/SQLEditor/RenameQueryModal.tsx 2023-08-09 13:20:41 +08:00
Joshen Lim 36a006968e Improve error message in UtilityTabResuls 2023-08-09 13:11:36 +08:00