Section 1 & 2 - #Migration Run
This commit is contained in:
@@ -90,6 +90,27 @@ export function createApprovedPageConfig(params: {
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'status',
|
||||
label: 'Status',
|
||||
sortable: true,
|
||||
sortField: 'status',
|
||||
width: '130px',
|
||||
render: (value: string, row: Content) => {
|
||||
// Map internal status to user-friendly labels
|
||||
const statusConfig: Record<string, { color: 'success' | 'blue' | 'amber' | 'gray'; label: string }> = {
|
||||
'approved': { color: 'blue', label: 'Ready to Publish' },
|
||||
'published': { color: 'success', label: row.external_id ? 'On Site' : 'Approved' },
|
||||
};
|
||||
const config = statusConfig[value] || { color: 'gray' as const, label: value || '-' };
|
||||
|
||||
return (
|
||||
<Badge color={config.color} size="xs" variant="soft">
|
||||
<span className="text-[11px] font-normal">{config.label}</span>
|
||||
</Badge>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'wordpress_status',
|
||||
label: 'Site Content Status',
|
||||
|
||||
Reference in New Issue
Block a user