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