🐛 fix(protocol-form): Swap 'description' and 'user_agent' columns for improved clarity in the table
This commit is contained in:
parent
36812aebdb
commit
f1aef989fb
@ -170,21 +170,12 @@ export function ProtocolForm() {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'description',
|
accessorKey: 'user_agent',
|
||||||
header: t('table.columns.description'),
|
header: 'User-Agent',
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => (
|
||||||
<TooltipProvider>
|
<div className='text-muted-foreground max-w-[150px] truncate font-mono text-sm'>
|
||||||
<Tooltip>
|
{row.original.user_agent}
|
||||||
<TooltipTrigger>
|
</div>
|
||||||
<div className='text-muted-foreground max-w-[200px] truncate text-sm'>
|
|
||||||
{row.original.description}
|
|
||||||
</div>
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipContent className='max-w-xs'>
|
|
||||||
<p>{row.original.description}</p>
|
|
||||||
</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
</TooltipProvider>
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -217,12 +208,21 @@ export function ProtocolForm() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'user_agent',
|
accessorKey: 'description',
|
||||||
header: 'User-Agent',
|
header: t('table.columns.description'),
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => (
|
||||||
<div className='text-muted-foreground max-w-[150px] truncate font-mono text-sm'>
|
<TooltipProvider>
|
||||||
{row.original.user_agent}
|
<Tooltip>
|
||||||
</div>
|
<TooltipTrigger>
|
||||||
|
<div className='text-muted-foreground max-w-[200px] truncate text-sm'>
|
||||||
|
{row.original.description}
|
||||||
|
</div>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent className='max-w-xs'>
|
||||||
|
<p>{row.original.description}</p>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@ -312,11 +312,6 @@ export function ProtocolForm() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handlePreview = (application: API.SubscribeApplication) => {
|
|
||||||
setPreviewApplicationId(application.id);
|
|
||||||
setPreviewOpen(true);
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ProTable<API.SubscribeApplication, Record<string, unknown>>
|
<ProTable<API.SubscribeApplication, Record<string, unknown>>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user