Commit Graph
247 Commits
Author SHA1 Message Date
Joshen LimandAlaister Young 285f19b304 Fix table editor clone column utils (#18608)
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-10-31 07:42:36 +00: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 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
Kishan KumarandIvan Vasilov 6169977cbf feat: add editing support for citext data type in table editor (#17666)
* feat: add editing support for `citext` data type in table editor

* chore: minor refactoring

* feat: add citext in `ColumnType`

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-09-29 10:47:35 +00:00
Ivan Vasilov 282b08ba60 Migrate CSS classes for lighter text (#17728)
Change all occurences of text-scale-900 to text-foreground-lighter.
2023-09-27 12:01:25 +08:00
e7e990f757 refactor: usecallback on copy cell content (#17686)
* refactor: usecallback on copy cell content

* Update studio/components/grid/components/menu/RowContextMenu.tsx

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-09-26 15:16:40 +00: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
Richie McIlroy f5e5b5f0c4 Fix empty state text color in editor (#17521)
Fix text color in editor
2023-09-21 18:54:25 +10:00
Joshen Lim de36c82e37 Bring changes from 14058 and resolve conflicts 2023-09-19 12:48:25 +08:00
Terry Sutton f53f4a2bd2 Merge pull request #17037 from samueldenzil/fix-enter-not-working-in-filter-popup-issue#17025
Fix Enter not-working in filter popup
2023-09-18 16:50:01 -02:30
Joshen Lim 6d0a72492d Add remove filters cta if filters returned no results 2023-09-18 16:04:02 +08:00
Joshen Lim 19ba9cad13 Fix missing default value 2023-09-18 13:14:56 +08:00
Joshen Lim 97bc98aa21 fix empty states of table editor 2023-09-18 13:02:50 +08:00
Alaister Young 63b568a472 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-16 09:05:22 +02:00
Joshen Lim e474839a9a Improve support for viewing data in table editor for readonly entities 2023-09-15 15:04:55 +08:00
Joshen Lim 51e72153ec Implement cascade update support 2023-09-15 13:30:28 +08:00
Joshen Lim 8f7ba1fdc5 Rename FOREIGN_KEY_DELETION_ACTION to FOREIGN_KEY_CASCADE_ACTION 2023-09-14 17:36:00 +08:00
Joshen Lim ecdea366eb Bring changes from 14058 and resolve conflicts 2023-09-13 17:43:12 +08:00
Joshen Lim 5817e8bd8b Only show CTA if table is not protected 2023-09-11 17:52:28 +08:00
Joshen Lim 509a79d19b Improve empty state by adding import CSV cta for empty table in table editor 2023-09-11 17:21:09 +08:00
Alaister Young 01af133bb6 Merge branch 'chore/remove-pg-meta-schema-store' into chore/remove-pg-meta-table-store 2023-09-07 18:05:33 +10:00
samueldenzil f8403376f6 fix-enter-not-working-in-filter-popup 2023-08-30 19:30:14 +05:30
Joshen Lim 6124425e17 Remove and unify monaco editor define theming 2023-08-21 16:19:31 +08:00
Joshen Lim d2e7dddfd1 Small style fixes 2023-08-19 14:28:09 +07:00
Terry Sutton 7a16b4e824 Merge pull request #16470 from alecmerdler/fix-14130-reduce-rls-warning-clutter
Only show RLS warning badge if banner has been dismissed
2023-08-14 22:07:29 -02:30
山田 智之 0247d8f12c fix: Convert to lowercase 2023-08-13 00:09:35 +09:00
Alec Merdler 2ec1d0bd2c Only show RLS warning badge if banner has been dismissed
Addresses #14130 by firing an event when the RLS warning banner
is dismissed, which triggers the RLS warning badge to be visible.
This works across browser tabs and without a page refresh by
using the BroadcastChannel API.
2023-08-11 23:46:00 +01:00
Ivan Vasilov e80ba45a4f Merge pull request #16269 from tomoyukiy/issue-16264
Fix/The edit column should be left aligned
2023-08-07 12:08:56 +02:00
Joshen Lim 8a1bb9b36b Remove all usage of FC part 1 2023-08-07 13:56:43 +08:00
山田 智之 502d80622a Fix/The edit column should be left aligned 2023-08-07 12:29:50 +09:00
Jonathan Summers-Muir 2b3d49af3b chore: update old brand-700 to new brand-400 2023-07-30 17:03:30 +08:00
Jonathan Summers-Muir ab46d23d58 chore: update brand-900 to brand 2023-07-30 16:58:54 +08:00
Joshen Lim 4d1f25d4a6 fix 2023-07-18 11:43:22 +08:00
Joshen Lim a07b762cab Refactor to change mutateAsync to mutate 2023-07-17 17:21:18 +08:00
Joshen Lim 439b356f0c Refactor error handling for table rows mutations 2023-07-11 22:41:55 +08:00
Alaister Young 3bc70549c3 chore: checkPermissions -> useCheckPermissions 2023-06-30 15:15:09 +10:00
Jonathan Summers-Muir f68e79ff71 fixed errors with Button from new changes 2023-06-13 17:36:36 +08:00
Nick Rayburn 0e33a26f3d Fix formatting 2023-05-29 21:28:04 -05:00
Nick Rayburn a7e0f65948 Add JsonFormatter for json columns 2023-05-29 21:17:02 -05:00
Nick Rayburn 9cf3935d7a Dont stringify nil values for JSON editor 2023-05-29 21:16:09 -05:00
Alaister Young b1c03b0bae Merge pull request #9792 from gitstart/fix/table-editor-deleting-pagination-bug
fix: Table editor deleting / pagination bug
2023-05-05 15:49:35 +10:00
Alaister Young 7e9079af22 swaps meta store read methods for react-query 2023-05-03 22:35:45 +10:00
Alaister Young 10e541a2de refactor to valtio table editor state 2023-05-03 16:37:35 +10:00
Joshen Lim f1ce82d538 Remove log 2023-04-25 01:38:55 +08:00
Joshen Lim 1facf00cd5 Remove unnecessary prop 2023-04-25 01:38:50 +08:00
Joshen Lim 0051396499 Prevent setting value to NULL when hitting Enter while highlighting cell in table editor thats of text type and nullable 2023-04-25 01:38:42 +08:00