This commit is contained in:
IGNY8 VPS (Salman)
2025-12-15 10:31:20 +00:00
parent 1ef4bb7db6
commit 7fb2a9309e
10 changed files with 352 additions and 248 deletions

View File

@@ -116,7 +116,7 @@ export const createIdeasPageConfig = (
{
key: 'content_structure',
label: 'Structure',
sortable: true,
sortable: false, // Backend doesn't support sorting by content_structure
sortField: 'content_structure',
width: '130px',
render: (value: string) => {
@@ -134,7 +134,7 @@ export const createIdeasPageConfig = (
{
key: 'content_type',
label: 'Type',
sortable: true,
sortable: false, // Backend doesn't support sorting by content_type
sortField: 'content_type',
width: '110px',
render: (value: string) => {
@@ -161,14 +161,14 @@ export const createIdeasPageConfig = (
{
key: 'keyword_cluster_name',
label: 'Cluster',
sortable: true,
sortable: false, // Backend doesn't support sorting by keyword_cluster_id
sortField: 'keyword_cluster_id',
width: '200px',
render: (_value: string, row: ContentIdea) => row.keyword_cluster_name || '-',
},
{
...statusColumn,
sortable: true,
sortable: false, // Backend doesn't support sorting by status
sortField: 'status',
render: (value: string) => {
const statusColors: Record<string, 'success' | 'amber' | 'info'> = {
@@ -202,7 +202,7 @@ export const createIdeasPageConfig = (
{
key: 'updated_at',
label: 'Updated',
sortable: true,
sortable: false, // Backend doesn't support sorting by updated_at
sortField: 'updated_at',
defaultVisible: false,
render: (value: string) => formatRelativeDate(value),