Work items: number of items hidden toggle
Summary
In #456941 (closed) we added the capability to hide closed items from the Child/Linked widgets through the use of a toggle within the "More actions" menu. We identified during that work that it would be beneficial to have a visual indicator when the widget is set to hide closed items, since this setting persists like other view preferences (ex: show/hide labels) and by default doesn't provide a visual affordance of this.
Proposal
When the Show closed items toggle within the "More actions" menu is turned off (closed items are hidden), display a button that indicates closed items are hidden within the widget that when clicked allows the user to show those items (and updates the toggle within the menu).
Acceptance criteria
-
When the Show closed itemstoggle is turned OFF (closed items are hidden), display a button at the end of the widget listing indicating items are hidden.-
Button text should read Show N closed items(N being the number of items) -
Use the tertiaryconfirmbutton variant -
[Child widget] Similar to the Load morebutton, account for additional space to the left (for alignment purposes) depending on if the widget contains nested children or not. -
[Child widget] If the widget includes pagination (multiple "pages" of items), only show the button at the end of the results after all items have been loaded. In other words, the Load moreandShow N closed itemsbuttons will never be shown at the same time.
-
-
When the Show N closed itemsbutton is selected, show the closed items within the widget listing, and update theShow closed itemstoggle to ON within the "More actions" menu of that widget.
Design resources
Edited by Nick Brandt