Commit 8de93f8
authored
[2.x] feat: Add header extension seams to the queue dashboard widget (#4850)
* Add header extension seams to the queue dashboard widget
Give QueueWidget two overridable ItemList seams for its header, mirroring
the existing tiles() pattern:
- titleItems(): content appended after the title (e.g. status pills).
Empty by default.
- headerActions(): the action controls on the right. Ships the refresh
button as a default item; a subclass can add its own (e.g. a link to a
fuller dashboard).
The refresh button now lives in headerActions() rather than being
inlined, so core's own header renders identically. Purely additive: a
subclass can enrich the header without overriding content() and
duplicating its markup.
Lets an extension that subclasses this widget (e.g. fof/horizon, which
binds an enriched QueueStatsProvider) surface at-a-glance state and a
link to its own dashboard on the shared queue card.
* Lay out the queue widget header actions in a row
The headerActions() seam holds the refresh button plus any controls a
subclass adds, but the .QueueWidget-headerActions wrapper had no layout
of its own, so multiple items would flow without spacing. Give it a flex
row with a gap. (Right-alignment is already handled by space-between on
.QueueWidget-header — this is only about spacing the items within.)1 parent b515de7 commit 8de93f8
2 files changed
Lines changed: 42 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 67 | + | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
78 | 73 | | |
79 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
80 | 105 | | |
81 | 106 | | |
82 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
| |||
0 commit comments