feat: Implement WordPress publishing and unpublishing actions

- Added conditional visibility for table actions based on content state (published/draft).
- Introduced `publishContent` and `unpublishContent` API functions for handling WordPress integration.
- Updated `Content` component to manage publish/unpublish actions with appropriate error handling and success notifications.
- Refactored `PostEditor` to remove deprecated SEO fields and consolidate taxonomy management.
- Enhanced `TablePageTemplate` to filter row actions based on visibility conditions.
- Updated backend API to support publishing and unpublishing content with proper status updates and external references.
This commit is contained in:
alorig
2025-11-26 01:24:58 +05:00
parent ba842d8332
commit 53ea0c34ce
13 changed files with 1249 additions and 417 deletions

View File

@@ -1012,7 +1012,9 @@ export default function TablePageTemplate({
placement="right"
className="w-48 p-2"
>
{rowActions.map((action) => {
{rowActions
.filter((action) => !action.shouldShow || action.shouldShow(row))
.map((action) => {
const isEdit = action.key === 'edit';
const isDelete = action.key === 'delete';
const isExport = action.key === 'export';