This commit is contained in:
alorig
2025-12-01 10:00:51 +05:00
parent d97a96a7c4
commit 9f82a11c56
2 changed files with 125 additions and 1 deletions

View File

@@ -178,6 +178,36 @@ export function createReviewPageConfig(params: {
);
},
},
{
key: 'status',
label: 'Status',
sortable: true,
sortField: 'status',
width: '120px',
render: (value: string, row: Content) => {
const status = value || 'draft';
const statusColors: Record<string, 'gray' | 'blue' | 'green' | 'amber' | 'red'> = {
draft: 'gray',
review: 'blue',
published: 'green',
scheduled: 'amber',
archived: 'red',
};
const color = statusColors[status] || 'gray';
const label = status.charAt(0).toUpperCase() + status.slice(1);
return (
<div className="flex items-center gap-1.5">
<Badge color={color} size="xs" variant="soft">
<span className="text-[11px] font-normal">{label}</span>
</Badge>
{row.external_id && (
<CheckCircleIcon className="w-3.5 h-3.5 text-green-500" title="Published to WordPress" />
)}
</div>
);
},
},
{
key: 'word_count',
label: 'Words',