Section 3-8 - #MIgration Runs -

Multiple Migfeat: Update publishing terminology and add publishing settings

- Changed references from "WordPress" to "Site" across multiple components for consistency.
- Introduced a new "Publishing" tab in Site Settings to manage automatic content approval and publishing behavior.
- Added publishing settings model to the backend with fields for auto-approval, auto-publish, and publishing limits.
- Implemented Celery tasks for scheduling and processing automated content publishing.
- Enhanced Writer Dashboard to include metrics for content published to the site and scheduled for publishing.
This commit is contained in:
IGNY8 VPS (Salman)
2026-01-01 07:10:03 +00:00
parent f81fffc9a6
commit 0340016932
21 changed files with 1200 additions and 36 deletions

View File

@@ -202,7 +202,7 @@ export function createReviewPageConfig(params: {
<span className="text-[11px] font-normal">{label}</span>
</Badge>
{row.external_id && (
<CheckCircleIcon className="w-3.5 h-3.5 text-success-500" title="Published to WordPress" />
<CheckCircleIcon className="w-3.5 h-3.5 text-success-500" title="Published to Site" />
)}
</div>
);

View File

@@ -251,7 +251,7 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
{
key: 'view_on_wordpress',
label: 'View on WordPress',
label: 'View on Site',
icon: <CheckCircleIcon className="w-5 h-5 text-brand-500" />,
variant: 'secondary',
shouldShow: (row: any) => !!row.external_id, // Only show if published
@@ -334,14 +334,14 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
},
{
key: 'publish_wordpress',
label: 'Publish to WordPress',
label: 'Publish to Site',
icon: <ArrowRightIcon className="w-5 h-5" />,
variant: 'success',
shouldShow: (row: any) => !row.external_id, // Only show if not published
},
{
key: 'view_on_wordpress',
label: 'View on WordPress',
label: 'View on Site',
icon: <CheckCircleIcon className="w-5 h-5 text-brand-500" />,
variant: 'secondary',
shouldShow: (row: any) => !!row.external_id, // Only show if published
@@ -350,7 +350,7 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
bulkActions: [
{
key: 'bulk_publish_wordpress',
label: 'Publish to WordPress',
label: 'Publish to Site',
icon: <ArrowRightIcon className="w-4 h-4" />,
variant: 'success',
},
@@ -389,7 +389,7 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
},
{
key: 'publish_wordpress',
label: 'Publish to WordPress',
label: 'Publish to Site',
icon: <ArrowRightIcon className="w-5 h-5" />,
variant: 'primary',
},
@@ -403,7 +403,7 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
},
{
key: 'bulk_publish_wordpress',
label: 'Publish to WordPress',
label: 'Publish to Site',
icon: <ArrowRightIcon className="w-5 h-5" />,
variant: 'primary',
},