design(ui): add stacked Undo banner pattern for concurrent actions - #573
Open
Oyinkans0la12 wants to merge 1 commit into
Open
design(ui): add stacked Undo banner pattern for concurrent actions#573Oyinkans0la12 wants to merge 1 commit into
Oyinkans0la12 wants to merge 1 commit into
Conversation
…ty, and documentation
|
@Oyinkans0la12 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #501
Summary
Introduce a scalable stacked Undo banner pattern that consolidates multiple concurrent undoable actions into a single, accessible notification stack with both per-item Undo actions and an aggregate Undo all affordance.
Problem
When users perform several undoable actions in quick succession, multiple Undo banners can compete for screen space, create notification clutter, and make individual actions difficult to manage.
The current experience does not define how concurrent undo notifications should behave, limiting scalability and consistency across the application.
Solution
This PR introduces a reusable stacked Undo banner design that groups concurrent undoable actions into a single component while preserving individual undo functionality and adding an optional Undo all action.
The pattern is fully documented for accessibility, responsive layouts, interaction behavior, and implementation guidance.
Implementation Details
Stack Layout
Updated the
UndoBannerdesign to support:Overflow Handling
When more than four undoable actions are pending, the stack displays:
+N moreThis communicates additional hidden items while preventing excessive vertical growth.
Undo All
Added a consolidated Undo all affordance for stacked notifications.
The documentation defines expected behavior for:
Auto-dismiss Strategy
Documented timer behavior that scales with stack size while remaining predictable and non-intrusive.
The guidance includes:
Accessibility
The pattern has been designed to satisfy WCAG 2.1 AA requirements, including:
Responsive Design
Documented behavior for:
including stack placement, spacing, overflow handling, and touch targets.
Edge Cases
Documented expected behavior for:
Testing
Validated using:
npm run lintIncluded:
Behavioral Changes
The Undo notification experience now supports multiple simultaneous undoable actions without overwhelming the interface while maintaining individual control and accessibility.
Checklist
+N moreoverflow.