From c91f89a055f9ed0ff787cde623b57c433e1a0787 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 24 May 2026 16:15:11 +0100 Subject: [PATCH] feat(bases): open detail modal for cards created via per-column '+ New' --- .../components/views/kanban/base-kanban.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/client/src/features/base/components/views/kanban/base-kanban.tsx b/apps/client/src/features/base/components/views/kanban/base-kanban.tsx index 2fa0fcb94..9b5bfdfa5 100644 --- a/apps/client/src/features/base/components/views/kanban/base-kanban.tsx +++ b/apps/client/src/features/base/components/views/kanban/base-kanban.tsx @@ -129,7 +129,7 @@ export function BaseKanban({ ], ); - const handleAddCard = (columnKey: string) => { + const handleAddCard = async (columnKey: string) => { if (!groupByPropertyId) return; const cells = columnKey === NO_VALUE_CHOICE_ID @@ -137,11 +137,16 @@ export function BaseKanban({ : { [groupByPropertyId]: columnKey }; const column = columns.find((c) => c.key === columnKey); const afterRowId = column?.rows[column.rows.length - 1]?.id; - createRowMutation.mutate({ - pageId: base.id, - cells, - afterRowId, - }); + try { + const newRow = await createRowMutation.mutateAsync({ + pageId: base.id, + cells, + afterRowId, + }); + onCardClick(newRow.id); + } catch { + // mutation already shows an error toast. + } }; const handleColumnReorder = useCallback(