Repository navigation
Description
Description
Ship the Action Center: a dialog for running bulk workflow actions over a multi-item selection in Content Drive, restricted to one action per execution.
It opens from the toolbar once more than one contentlet is selected, replacing the flat workflow-action buttons with a single "Action Center" button. The dialog has two sections:
Quick Actions — system actions fired over the whole eligible selection in one request via POST /api/v1/workflow/actions/default/fire/{systemAction}, which accepts a contentlet list. Counts are derived client-side from row state (live, archived) that the grid already has; an action that applies to nothing in the selection is omitted rather than shown as (0).
Workflow Actions — one collapsible panel per workflow scheme from POST /api/v1/workflow/contentlet/actions/bulk, with real per-action eligibility counts (the backend aggregates on the wfstep field, so counts are per-action, not per-selection). Fired via PUT /api/v1/workflow/contentlet/actions/bulk/fire.
On the single-action restriction. The design mock shows checkboxes, implying several bulk actions triggered together. This ticket deliberately ships single-select. A contentlet occupies exactly one workflow step at a time — workflow_task carries UNIQUE (webasset, language_id) and its status column holds a single step id — so firing one action moves the contentlet to nextStep and invalidates the other actions' preconditions and counts. Whether multiple actions can be offered at all is the subject of the linked spike.
Acceptance Criteria
- An "Action Center" button appears in the Content Drive toolbar when more than one contentlet is selected, replacing the flat workflow-action buttons
- Folders may be selected but are excluded from every request, and the dialog states how many were ignored
- Quick Actions lists Publish, Unpublish, Archive, Unarchive and Delete, each with the number of selected contentlets it applies to
- A quick action that applies to zero selected contentlets is not listed at all
- Executing a quick action fires a single request for the whole eligible selection and reports the outcome
- Workflow Actions shows one collapsible panel per scheme, with the scheme's contentlet count and each action's own eligibility count
- Only one workflow action can be selected at a time, and Execute is enabled only for the scheme that owns the current selection
- Collapsing a scheme clears its pending selection, so Execute cannot stay armed for a hidden panel
- Actions that need extra input (push publish, move target path, assign/comment) are visibly disabled with an explanation
- An action whose count is an upper bound (
conditionPresent— the backend does not evaluate the action's Velocity condition when aggregating) is marked as approximate - After a successful execution the grid refreshes, the selection clears and the dialog closes, because counts go stale as soon as an action runs
-
skippedCount/skipReasonis surfaced when contentlets are skipped for not being on a scheme that owns the action - Empty state when no scheme exposes actions; inline error when the lookup fails
- Behaves correctly on Community, where System Workflow is the only scheme that can exist
- Dialog has a custom header (title + selected count) and footer, and the body is the only scrollable region
- Unit tests cover the eligibility/count mapping and the dialog's execute paths
Explicitly out of scope (tracked separately):
- Multiple actions selected and run together — see the linked spike
- Per-item drill-down with execution results — separate ticket
- Lock / Unlock and Add to Bundle — neither has a bulk REST endpoint (see Additional Context)
- SSE progress streaming via
POST /api/v1/workflow/contentlet/actions/_bulkfire
Priority
High
Additional Context
Endpoints used — all already exist, so this is frontend-only work:
| Purpose | Endpoint |
|---|---|
| Discover actions + counts | POST /api/v1/workflow/contentlet/actions/bulk |
| Fire a workflow action | PUT /api/v1/workflow/contentlet/actions/bulk/fire |
| Fire a system action over many items | POST /api/v1/workflow/actions/default/fire/{systemAction} |
Note that contentletIds on these endpoints holds contentlet inodes, not identifiers, despite the property name — the backend documents this explicitly.
Why Lock/Unlock and Add to Bundle are excluded. LOCK/UNLOCK are not SystemAction values and only single-item PUT /api/v1/content/_lock|_unlock/{inode} exist; the legacy JSP drives bulk unlock through a Struts command (full_unlock_list → EditContentletAction._batchUnlock) that loops server-side. Add to Bundle is only reachable through the legacy RemotePublishAjaxAction servlet. Both would need either a client-side N-call loop or new endpoints — worth their own ticket rather than baking workarounds into this one.
Why System Workflow stays visible. Hiding it would remove bulk Copy entirely (Copy has no system-action mapping, so the workflow list is its only route) and would leave the section permanently empty on Community. The system-action mapping is also per content type, so hiding one scheme would not reliably de-duplicate Publish anyway.
Reference implementation. The same feature exists in the legacy content-search portlet at dotCMS/src/main/webapp/html/portlet/ext/contentlet/view_bulk_actions_inc.jsp. It hits the same endpoints, is also one-action-per-click, and treats a Velocity condition as a reason to prompt before firing rather than firing blind.
Draft branch: draft-content-drive-action-center — a working implementation with unit tests and lint passing.
Note on the parent epic: #33999 describes surfacing workflow actions as secondary buttons in the command bar with an overflow menu. The Action Center dialog is a different shape from that description, so the epic body may need updating to match the current direction.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Jul 30, 2026
PRs linked to this issue
ihoffmann-dot commentedon Aug 6, 2026
QA Passed
Build:
9307301 / Staging-TrunkVideo
0806.mp4
[-]Content Drive Action Center: bulk workflow actions with one action per execution[/-][+]Workflow Center: bulk workflow actions with one action per execution[/+]