feat: printing attributes in cards on dashboard

This commit is contained in:
2025-03-14 11:33:00 +04:00
parent ca80920af6
commit 3e66d6300b
7 changed files with 66 additions and 22 deletions

View File

@@ -41,26 +41,6 @@ const useAttributesTableColumns = ({ selectedAttributes }: Props) => {
accessorKey: "type.name",
size: 120,
},
// {
// header: " ",
// Cell: ({ row }) => {
// const description = row.original.description ? `Описание: ${row.original.description}` : "";
// const info = (
// <Box>
// <Text>Может быть пустым: {row.original.isNullable ? "да" : "нет"}</Text>
// <Text>{defaultValueToStr(row.original.defaultValue, row.original.type.type)}</Text>
// <Text>Синхронизировано в группе: {row.original.isApplicableToGroup ? "да" : "нет"}</Text>
// <Text>{description}</Text>
// </Box>
// );
// return (
// <Tooltip label={info} multiline w={rem(300)}>
// <IconInfoCircle />
// </Tooltip>
// );
// },
// size: 5,
// },
{
header: "Значение по умолчанию",
accessorKey: "defaultValue",
@@ -93,6 +73,16 @@ const useAttributesTableColumns = ({ selectedAttributes }: Props) => {
),
size: 120,
},
{
header: "Вывод на дашборде",
accessorKey: "isShownOnDashboard",
Cell: ({ cell }) => cell.getValue() ? (
<IconCheck />
) : (
<IconX />
),
size: 130,
},
{
header: "Может быть пустым",
accessorKey: "isNullable",