mpre ui fixes

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-27 08:00:09 +00:00
parent 4482d2f4c4
commit 034c640601
17 changed files with 352 additions and 158 deletions

View File

@@ -127,7 +127,7 @@ export const createClustersPageConfig = (
}] : []),
{
key: 'keywords_count',
label: 'Keywords',
label: 'KW Count',
sortable: true,
sortField: 'keywords_count',
width: '120px',
@@ -141,17 +141,7 @@ export const createClustersPageConfig = (
sortField: 'ideas_count',
width: '120px',
align: 'center' as const,
render: (value: number) => (
<Badge
color={value > 0 ? 'success' : 'light'}
size="xs"
variant="soft"
>
<span className="text-[11px] font-normal">
{value > 0 ? `${value.toLocaleString()} ideas` : 'No ideas'}
</span>
</Badge>
),
render: (value: number) => value.toLocaleString(),
},
{
key: 'volume',
@@ -244,7 +234,7 @@ export const createClustersPageConfig = (
},
{
key: 'updated_at',
label: 'Updated',
label: 'Modified',
sortable: false, // Backend doesn't support sorting by updated_at
sortField: 'updated_at',
defaultVisible: false,
@@ -253,7 +243,7 @@ export const createClustersPageConfig = (
// Generate Ideas action column - only shows button for status = 'new'
{
key: 'generate_action',
label: 'Actions',
label: 'Generate Ideas',
sortable: false,
width: '120px',
render: (_value: any, row: Cluster) => {