feat: enhance user table phone number display with additional fields and filtering

This commit is contained in:
Marco Pedone 2026-04-13 13:11:40 +02:00
parent 4f21773cea
commit 680d344215
2 changed files with 5 additions and 2 deletions

View file

@ -158,4 +158,4 @@
}
}
}
}
}

View file

@ -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 }) => (
<DataTableColumnHeader
column={column}
@ -212,6 +214,7 @@ export const UsersTable = (props: { data: UserWChatInfo[] }) => {
</div>
);
},
filterFn: "includesString",
},
{
accessorKey: "email",