metrics adn insihigts

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-15 06:51:14 +00:00
parent cff00f87ff
commit c61cf7c39f
21 changed files with 749 additions and 129 deletions

View File

@@ -476,28 +476,32 @@ export const createKeywordsPageConfig = (
],
headerMetrics: [
{
label: 'Total Keywords',
label: 'Keywords',
value: 0,
accentColor: 'blue' as const,
calculate: (data) => data.totalCount || 0,
tooltip: 'Total keywords added to site wrokflow. Minimum 5 Keywords are needed for clustering.',
},
{
label: 'Mapped',
label: 'Clustered',
value: 0,
accentColor: 'green' as const,
calculate: (data) => data.keywords.filter((k: Keyword) => k.cluster_id).length,
tooltip: 'Keywords grouped into topical clusters. Clustered keywords are ready for content ideation.',
},
{
label: 'Unmapped',
value: 0,
accentColor: 'amber' as const,
calculate: (data) => data.keywords.filter((k: Keyword) => !k.cluster_id).length,
tooltip: 'Unclustered keywords waiting to be organized. Select keywords and use Auto-Cluster to group them.',
},
{
label: 'Total Volume',
label: 'Volume',
value: 0,
accentColor: 'purple' as const,
calculate: (data) => data.keywords.reduce((sum: number, k: Keyword) => sum + (k.volume || 0), 0),
tooltip: 'Total monthly search volume across all keywords. Higher volume = more traffic potential.',
},
],
// bulkActions and rowActions are now global - defined in table-actions.config.ts