Revert "123"

This reverts commit 7c4ed6a16c.
This commit is contained in:
alorig
2025-11-28 13:33:18 +05:00
parent 7c4ed6a16c
commit 3fcba76d0b
6 changed files with 899 additions and 5 deletions

View File

@@ -321,6 +321,16 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
},
'/writer/images': {
rowActions: [
{
key: 'publish_wordpress',
label: 'Publish to WordPress',
icon: <ArrowRightIcon className="w-5 h-5" />,
variant: 'success',
shouldShow: (row: any) => {
// Only show if images are generated (complete) - WordPress status is tracked separately
return row.overall_status === 'complete';
},
},
{
key: 'update_status',
label: 'Update Status',
@@ -328,7 +338,14 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
variant: 'primary',
},
],
bulkActions: [],
bulkActions: [
{
key: 'bulk_publish_wordpress',
label: 'Publish Ready to WordPress',
icon: <ArrowRightIcon className="w-5 h-5" />,
variant: 'success',
},
],
},
// Default config (fallback)
default: {