From be4c29de5addea403e6dd64b3c20fee20fa98c65 Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Fri, 10 Mar 2023 21:29:55 +1100 Subject: [PATCH] adds double click to foreign keys on grid --- studio/components/grid/SupabaseGrid.tsx | 8 ++- .../components/grid/components/grid/Grid.tsx | 46 +++++++++++++++- studio/components/grid/types/grid.ts | 6 +++ .../ForeignRowSelector/ForeignRowSelector.tsx | 11 ++-- .../SidePanelEditor/RowEditor/RowEditor.tsx | 2 +- .../SidePanelEditor/SidePanelEditor.tsx | 53 +++++++++++++++---- .../TableGridEditor/TableGridEditor.tsx | 39 +++++++++----- studio/pages/project/[ref]/editor/[id].tsx | 29 +++++++++- 8 files changed, 163 insertions(+), 31 deletions(-) diff --git a/studio/components/grid/SupabaseGrid.tsx b/studio/components/grid/SupabaseGrid.tsx index 60d8da7c426..cf57c55dace 100644 --- a/studio/components/grid/SupabaseGrid.tsx +++ b/studio/components/grid/SupabaseGrid.tsx @@ -198,7 +198,13 @@ const SupabaseGridLayout = forwardRef((props onAddColumn={editable ? props.onAddColumn : undefined} headerActions={headerActions} /> - +