Commit 5d35245
authored
feat(edit-content): update command bar to show all workflow actions (#35290)
## Summary
Closes #35034 and #31321
- Replaces the split-button pattern in `dot-workflow-actions` with
individual inline buttons, making all workflow actions discoverable
- First action (rightmost): default solid button — second: outlined —
third: text; actions beyond 3 collapse into an overflow popup menu
(`p-menu` with `appendTo="body"`)
- SEPARATOR actions are filtered out automatically
- Removed `groupActions` and `SplitButton` — component is now purely
computed-signal driven
## IMAGES
BEFORE
<img width="1586" height="743" alt="Screenshot 2026-04-14 at 2 37 36 PM"
src="https://github.com/user-attachments/assets/a45b6b40-53d4-436f-ad2c-10179e26148b"
/>
NOW
<img width="1272" height="693" alt="Screenshot 2026-04-14 at 2 37 42 PM"
src="https://github.com/user-attachments/assets/75b6ea9b-df9b-472c-8e06-0348fbf12ce8"
/>
## Test plan
- [ ] Verify workflow actions render as individual buttons (not hidden
in a split button)
- [ ] Verify first action is primary, second outlined, third text
- [ ] Verify overflow menu appears when there are more than 3 actions
- [ ] Verify clicking overflow menu items fires the correct action
- [ ] Verify SEPARATOR actions are not rendered
- [ ] Verify loading spinner appears only on the primary button
- [ ] Verify disabled state disables all buttons
In this PR we are also closing the bug with long workflows names
<img width="1167" height="577" alt="Screenshot 2026-04-14 at 2 43 52 PM"
src="https://github.com/user-attachments/assets/3c47d5c7-d39c-469d-9eb4-28416e70cf56"
/>1 parent d6a136a commit 5d35245
5 files changed
Lines changed: 397 additions & 289 deletions
File tree
- core-web
- apps/dotcms-ui-e2e/src/pages
- libs
- edit-content/src/lib/components/dot-edit-content-form
- ui/src/lib/components/dot-workflow-actions
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
Lines changed: 23 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 1 | + | |
22 | 2 | | |
23 | 3 | | |
24 | 4 | | |
25 | 5 | | |
26 | 6 | | |
27 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
0 commit comments