Loading
Add archived decision toggle and update count
What does this MR do?
The decision log panel now hides archived decisions by default. A "Show archived" toggle appears in the panel header when archived decisions exist. The decision counts in the panel header and on the icon button now count only active decisions.
How to test
- Turn on the
decision_logfeature flag. - Open a work item that has decisions.
- Open the decision log panel from the icon button in the work item header.
- Archive a decision from the three dots menu on its card.
- Verify the card disappears from the list.
- Verify the count at the top and on the icon button both decrease by one.
- Verify a "Show archived (1)" toggle appears.
- Turn the toggle on.
- Verify the archived card comes back with its "Archived" badge.
- Verify the count does not change.
- Turn the toggle off.
- Verify the archived card disappears again.
References
- Closes #629493 (closed)
- Closes #629491 (closed)
- Design: https://www.figma.com/design/uJb85wjoRaj7MMvjxAmdHf/SDD-Iteration-Path?node-id=673-33393
- Follows up on the review of !255340 (merged)
Edited by Deepika Guliani