-
Notifications
You must be signed in to change notification settings - Fork 480
feat(edit-content): update command bar to show all workflow actions #35290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
adrianjm-dotCMS
merged 6 commits into
main
from
35034-command-bar-to-show-all-workflow-actions
Apr 16, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
74617b5
refactor(workflow-actions): simplify action rendering and remove grou…
adrianjm-dotCMS 300f2de
fix(workflow-actions): update button rendering logic in tests and com…
adrianjm-dotCMS c72e6a0
feat(workflow-actions): enhance responsive button rendering based on …
adrianjm-dotCMS c9f9389
fix(newEditContentForm): fix e2e test refine save button logic for i…
adrianjm-dotCMS ea4ad0b
refactor(workflow-actions): increase maximum inline actions to four a…
adrianjm-dotCMS 58a360a
Merge branch 'main' into 35034-command-bar-to-show-all-workflow-actions
adrianjm-dotCMS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 23 additions & 21 deletions
44
core-web/libs/ui/src/lib/components/dot-workflow-actions/dot-workflow-actions.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,30 @@ | ||
| @for (action of $groupedActions(); track $index) { | ||
| @let mainAction = action.mainAction; | ||
| @let subActions = action.subActions; | ||
| @if (subActions.length) { | ||
| <p-splitButton | ||
| (onClick)="mainAction?.command({ originalEvent: $event })" | ||
| [disabled]="loading() || disabled()" | ||
| [size]="getButtonSize()" | ||
| [model]="subActions" | ||
| [outlined]="!$first" | ||
| [label]="mainAction.label" /> | ||
| } @else { | ||
| <p-button | ||
| (onClick)="mainAction?.command({ originalEvent: $event })" | ||
| [loading]="loading()" | ||
| [disabled]="disabled()" | ||
| [size]="getButtonSize()" | ||
| [variant]="!$first ? 'outlined' : undefined" | ||
| [label]="mainAction.label" /> | ||
| } | ||
| } @empty { | ||
| @if ($flatActions().length === 0) { | ||
| <p-button | ||
| [loading]="loading()" | ||
| [disabled]="!loading()" | ||
| [size]="getButtonSize()" | ||
| [label]="(loading() ? 'Loading' : 'edit.ema.page.no.workflow.action') | dm" | ||
| data-testId="empty-button" /> | ||
| } @else { | ||
| @if ($overflowActions().length) { | ||
| <p-menu #overflowMenu [model]="$overflowActions()" [popup]="true" appendTo="body" /> | ||
| <p-button | ||
| (onClick)="overflowMenu.toggle($event)" | ||
| [rounded]="true" | ||
| [size]="getButtonSize()" | ||
| [disabled]="loading() || disabled()" | ||
| icon="pi pi-ellipsis-v" | ||
| [variant]="'outlined'" | ||
| data-testId="overflow-button" /> | ||
| } | ||
| @for (action of $visibleActions(); track action.id; let idx = $index; let first = $first) { | ||
| <p-button | ||
| (onClick)="fireAction(action)" | ||
| [loading]="first && loading()" | ||
| [disabled]="loading() || disabled()" | ||
| [size]="getButtonSize()" | ||
| [variant]="getVariant(idx)" | ||
| [label]="action.name" | ||
| [attr.data-testId]="'action-button-' + action.id" /> | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.