Repository navigation
Description
Description
Implement workflow action buttons in the Content Drive toolbar for both single and multi-content selection scenarios. The toolbar should display contextually appropriate workflow actions based on the content's current state (archived/unarchived, published/unpublished) and selection type.
This feature will enable users to perform common workflow operations directly from the Content Drive interface without navigating to separate pages, improving the content management experience for both individual items and bulk operations.
Acceptance Criteria
Single Selection Rules
- When content is NOT archived: Hide Unarchive, Delete actions
- When content IS archived: Hide Publish, Unpublish, and Archive actions
- When content is already published: Hide the Publish button (avoid duplication)
- When content is unpublished: Hide the Unpublish button (avoid duplication)
- Edit button should route to either UVE (Universal Visual Editor) or Edit Content based on content type
- New button should NOT be present in the toolbar
- Add button to Rename on Single Selection (Can be a workflow action that changes the title - needs discussion)
- Add Download button on FileAsset/DotAsset
Multi-Selection Rules
- Edit button should NOT be displayed in multi-selection mode
- Actions are narrowed to "all compatible" - only show actions that can be applied to ALL selected items
- Handle empty state scenario: When selected items have no common available actions (e.g., selecting both archived and published content results in no compatible actions), show appropriate empty state
- Apply the same archived/published logic as single selection but intersect across all selected items
- No Rename on Multi Selection
- If the Selection includes a non FileAsset/DotAsset we should hide the Download button
Technical Requirements
- Implement conditional logic for showing/hiding actions based on content state and selection type
- Implement intersection logic for multi-selection to find common available actions
- Ensure proper routing for Edit action in single selection (UVE vs Edit Content)
- Handle empty state gracefully when no common actions are available in multi-selection
- Follow existing UI/UX patterns for toolbar actions
- Implement proper error handling for workflow action failures
- Add appropriate loading states during action execution
- Support bulk operation execution for multi-selection scenarios
UI/UX Requirements
- Follow the Figma design specifications for Content Drive toolbar
- Maintain consistent styling with existing dotCMS UI components
- Ensure accessibility compliance for all action buttons
- Design and implement empty state UI for multi-selection scenarios with no compatible actions
- Show clear visual feedback for bulk operations in progress
Priority
High
Additional Context
-
Reference Documentation: https://dev.dotcms.com/docs/managing-workflows#DefaultActions
-
Figma Design: https://www.figma.com/design/y4zaZ1287q2YClfYBzmPbO/Content-Drive?node-id=1255-108343&t=LW32UFZ7gYunYXL5-1
-
Discussion Thread: https://dotcms.slack.com/archives/C08MTB0RH6D/p1759757527716999
Empty State Example: If a user selects both an archived content item and a published (non-archived) content item, the intersection of available actions would be empty because archived content only allows Unarchive/Delete actions while published content only allows Publish/Unpublish/Archive actions - these sets have no common actions.
The workflow actions should integrate with the existing dotCMS workflow system and respect all current workflow permissions and constraints. The implementation should handle both individual and bulk workflow operations efficiently.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][TASK] Show default workflow actions on Content Drive toolbar for single and multi-selection[/-][+][TASK] Show default workflow actions on Content Drive toolbar[/+]6 remaining items
KevinDavilaDotCMS commentedon Oct 21, 2025
QA Passed
Tested in main:
d8a03f9My comments about text will be resolved in a next PR that is already created, so all good.
2025-10-21.11-47-31.mov
Enhance dot-edit-content layout with view state management and conten… (
feat(CD): show default workflow actions on Content Drive toolbar (#33595
feat(CD): show default workflow actions on Content Drive toolbar (#33595