From 680d3442152b05522b418bcbfbcd37a27fc5f899 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 13 Apr 2026 13:11:40 +0200 Subject: [PATCH] feat: enhance user table phone number display with additional fields and filtering --- apps/infoalloggi/package.json | 2 +- apps/infoalloggi/src/components/tables/users-table.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/infoalloggi/package.json b/apps/infoalloggi/package.json index 8550490..1b2c8f9 100644 --- a/apps/infoalloggi/package.json +++ b/apps/infoalloggi/package.json @@ -158,4 +158,4 @@ } } } -} \ No newline at end of file +} diff --git a/apps/infoalloggi/src/components/tables/users-table.tsx b/apps/infoalloggi/src/components/tables/users-table.tsx index 2a6fd69..b6a5b4b 100644 --- a/apps/infoalloggi/src/components/tables/users-table.tsx +++ b/apps/infoalloggi/src/components/tables/users-table.tsx @@ -189,7 +189,9 @@ export const UsersTable = (props: { data: UserWChatInfo[] }) => { }, { - accessorKey: "telefono", + accessorFn: (row) => + `${row.telefono} ${row.nome} ${row.extra_telefono_numero} ${row.extra_telefono_titolo}`, + id: "telefono", // ID is required when using accessorFn header: ({ column }) => ( { ); }, + filterFn: "includesString", }, { accessorKey: "email",