asdasdsa
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user