Loading
Update decision log header spacing and archived count
What does this MR do and why?
This MR is a UX follow-up for the decision log panel header. It fixes two items from the UX review of !256580 (merged), and it adds a small utility.
- Wrapping on XS viewports: The header row now uses
gl-flex-wrap. The count, the "Show archived" toggle and the "New decision" button wrap on narrow screens and do not overflow. - Wider gap: The gap between the header elements changes from 8px to 16px. The class is
gl-gap-5, because in@gitlab/uigl-gap-4is 12px andgl-gap-5is 16px. - New
getArchivedDecisionsutility:utils.jsnow has agetArchivedDecisionsfunction. The panel uses it to calculatearchivedCount, and does not subtract the active count from the total. TheactiveDecisionscomment now also explains why "active" means "not archived".
References
- Resolves #630200 (closed)
- Follow-up from !256580 (merged)
- Related to #629493 (closed)
Screenshots or screen recordings
| Viewport size | After |
|---|---|
|
|
|
|
|
How to set up and validate locally
- Open a work item that has at least one decision in its decision log.
- Open the Decision log panel.
- At a normal viewport, make sure the header is on one line with a 16px gap between the elements.
- Archive a decision, and make sure the "Show archived" count is correct.
- Make the viewport narrower than 576px, and make sure the header elements wrap without overflow.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Deepika Guliani


