asdasdsa
This commit is contained in:
@@ -134,7 +134,7 @@ export const createClustersPageConfig = (
|
||||
{
|
||||
key: 'ideas_count',
|
||||
label: 'Ideas',
|
||||
sortable: true,
|
||||
sortable: false, // Backend doesn't support sorting by ideas_count
|
||||
sortField: 'ideas_count',
|
||||
width: '120px',
|
||||
render: (value: number) => value.toLocaleString(),
|
||||
@@ -180,7 +180,7 @@ export const createClustersPageConfig = (
|
||||
{
|
||||
key: 'content_count',
|
||||
label: 'Content',
|
||||
sortable: true,
|
||||
sortable: false, // Backend doesn't support sorting by content_count
|
||||
sortField: 'content_count',
|
||||
width: '120px',
|
||||
render: (value: number) => value.toLocaleString(),
|
||||
@@ -220,7 +220,7 @@ export const createClustersPageConfig = (
|
||||
{
|
||||
key: 'mapped_pages',
|
||||
label: 'Mapped Pages',
|
||||
sortable: true,
|
||||
sortable: false, // Backend doesn't support sorting by mapped_pages
|
||||
sortField: 'mapped_pages',
|
||||
defaultVisible: false,
|
||||
width: '120px',
|
||||
@@ -229,7 +229,7 @@ export const createClustersPageConfig = (
|
||||
{
|
||||
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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -144,8 +144,8 @@ export const createKeywordsPageConfig = (
|
||||
columns: [
|
||||
{
|
||||
...keywordColumn,
|
||||
sortable: true,
|
||||
sortField: 'keyword',
|
||||
sortable: false, // Backend doesn't support sorting by keyword field
|
||||
sortField: 'seed_keyword__keyword',
|
||||
},
|
||||
// Sector column - only show when viewing all sectors
|
||||
...(showSectorColumn ? [{
|
||||
@@ -159,19 +159,19 @@ export const createKeywordsPageConfig = (
|
||||
{
|
||||
...volumeColumn,
|
||||
sortable: true,
|
||||
sortField: 'volume',
|
||||
sortField: 'seed_keyword__volume', // Backend expects seed_keyword__volume
|
||||
render: (value: number) => value.toLocaleString(),
|
||||
},
|
||||
{
|
||||
...clusterColumn,
|
||||
sortable: true,
|
||||
sortable: false, // Backend doesn't support sorting by cluster_id
|
||||
sortField: 'cluster_id',
|
||||
render: (_value: string, row: Keyword) => row.cluster_name || '-',
|
||||
},
|
||||
{
|
||||
...difficultyColumn,
|
||||
sortable: true,
|
||||
sortField: 'difficulty',
|
||||
sortField: 'seed_keyword__difficulty', // Backend expects seed_keyword__difficulty
|
||||
align: 'center' as const,
|
||||
render: (value: number) => {
|
||||
const difficultyNum = getDifficultyNumber(value);
|
||||
@@ -198,8 +198,8 @@ export const createKeywordsPageConfig = (
|
||||
},
|
||||
{
|
||||
...intentColumn,
|
||||
sortable: true,
|
||||
sortField: 'intent',
|
||||
sortable: false, // Backend doesn't support sorting by intent
|
||||
sortField: 'seed_keyword__intent',
|
||||
render: (value: string) => {
|
||||
// Map intent values to badge colors
|
||||
// Transactional and Commercial → success (green, like active)
|
||||
|
||||
@@ -149,7 +149,7 @@ export function createPublishedPageConfig(params: {
|
||||
{
|
||||
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) => {
|
||||
@@ -165,7 +165,7 @@ export function createPublishedPageConfig(params: {
|
||||
{
|
||||
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) => {
|
||||
@@ -248,7 +248,7 @@ export function createPublishedPageConfig(params: {
|
||||
{
|
||||
key: 'word_count',
|
||||
label: 'Words',
|
||||
sortable: true,
|
||||
sortable: false, // Backend doesn't support sorting by word_count
|
||||
sortField: 'word_count',
|
||||
numeric: true,
|
||||
width: '100px',
|
||||
|
||||
@@ -136,7 +136,7 @@ export const createTasksPageConfig = (
|
||||
{
|
||||
key: 'cluster_name',
|
||||
label: 'Cluster',
|
||||
sortable: true,
|
||||
sortable: false, // Backend doesn't support sorting by cluster_id
|
||||
sortField: 'cluster_id',
|
||||
width: '200px',
|
||||
render: (_value: string, row: Task) => row.cluster_name || '-',
|
||||
@@ -162,7 +162,7 @@ export const createTasksPageConfig = (
|
||||
{
|
||||
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) => {
|
||||
|
||||
Reference in New Issue
Block a user