idesa oclumn for priamry keywrod and drafts page errro fix

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-15 08:47:24 +00:00
parent 0c02852b06
commit b62350b8e0
5 changed files with 36 additions and 6 deletions

View File

@@ -473,7 +473,6 @@ export const createContentPageConfig = (
),
],
},
},
],
headerMetrics: [
{

View File

@@ -69,6 +69,7 @@ export const createIdeasPageConfig = (
description?: string | null;
content_structure: string;
content_type: string;
primary_focus_keywords?: string | null;
target_keywords?: string | null;
keyword_cluster_id?: number | null;
status: string;
@@ -152,9 +153,19 @@ export const createIdeasPageConfig = (
);
},
},
{
key: 'primary_focus_keywords',
label: 'Primary Keywords',
sortable: false,
render: (value: string) => (
<span className="text-sm font-medium text-gray-700 dark:text-gray-300">
{value || '-'}
</span>
),
},
{
key: 'target_keywords',
label: 'Keywords',
label: 'Covered Keywords',
sortable: false,
render: (value: string) => (
<span className="text-sm text-gray-600 dark:text-gray-400">
@@ -377,10 +388,19 @@ export const createIdeasPageConfig = (
],
},
{
key: 'target_keywords',
label: 'Target Keywords',
key: 'primary_focus_keywords',
label: 'Primary Focus Keywords',
type: 'text',
placeholder: 'Enter keywords (comma-separated)',
placeholder: '1-2 main keywords (comma-separated)',
value: handlers.formData.primary_focus_keywords || '',
onChange: (value: any) =>
handlers.setFormData({ ...handlers.formData, primary_focus_keywords: value }),
},
{
key: 'target_keywords',
label: 'Covered Keywords',
type: 'text',
placeholder: '2-3 supporting keywords (comma-separated)',
value: handlers.formData.target_keywords || '',
onChange: (value: any) =>
handlers.setFormData({ ...handlers.formData, target_keywords: value }),

View File

@@ -87,6 +87,7 @@ export default function Ideas() {
description: '',
content_structure: 'article',
content_type: 'post',
primary_focus_keywords: '',
target_keywords: '',
keyword_cluster_id: null,
status: 'new',
@@ -407,6 +408,7 @@ export default function Ideas() {
description: '',
content_structure: 'article',
content_type: 'post',
primary_focus_keywords: '',
target_keywords: '',
keyword_cluster_id: null,
status: 'new',
@@ -486,6 +488,7 @@ export default function Ideas() {
description: row.description || '',
content_structure: row.content_structure || 'article',
content_type: row.content_type || 'post',
primary_focus_keywords: row.primary_focus_keywords || '',
target_keywords: row.target_keywords || '',
keyword_cluster_id: row.keyword_cluster_id || null,
status: row.status || 'new',

View File

@@ -291,9 +291,15 @@ export default function Content() {
contentTypeOptions,
contentStructureOptions,
contentTypeFilter,
setContentTypeFilter,
contentStructureFilter,
setContentStructureFilter,
sourceFilter,
});
setSourceFilter,
setSearchTerm,
setStatusFilter,
setCurrentPage,
]);
// Calculate header metrics - use totals from API calls (not page data)
// This ensures metrics show correct totals across all pages, not just current page

View File

@@ -1185,6 +1185,7 @@ export interface ContentIdea {
description?: string | null;
content_type: string; // post, page, product, taxonomy
content_structure: string; // article, guide, comparison, review, etc.
primary_focus_keywords?: string | null;
target_keywords?: string | null;
keyword_cluster_id?: number | null;
keyword_cluster_name?: string | null;
@@ -1203,6 +1204,7 @@ export interface ContentIdeaCreateData {
description?: string | null;
content_type?: string;
content_structure?: string;
primary_focus_keywords?: string | null;
target_keywords?: string | null;
keyword_cluster_id?: number | null;
status?: string;