.vbw-planning/milestones/polish-and-reliability/phases/03-toast-stacking/.context-lead.md
Not available
Not available
No matching requirements found
None
Codebase mapping exists in .vbw-planning/codebase/. Key files:
ARCHITECTURE.mdCONCERNS.mdPATTERNS.mdDEPENDENCIES.mdSTRUCTURE.mdCONVENTIONS.mdTESTING.mdSTACK.mdRead ARCHITECTURE.md, CONCERNS.md, and STRUCTURE.md first to bootstrap codebase understanding.
stimulus-use library provides useMutation composable for detecting DOM changeschildList: true, subtree: true to observe child additions/removalsmutate(entries) receives MutationRecord objectsvisibility: hidden + opacity: 0 (not display: none) to preserve layout and enable transitionsmax-height transition for expand/collapse of overflow sectionscrollHeight on expand (avoid magic numbers)transitionend, set max-height: auto for dynamic contentResizeObserver as alternative to manual height calculationstimulus-use provides useClickOutside mixinclick:outside event for clicks outside controller elementtoast:dismissed event on removalrecalculateVisibility()notification_controller.js (existing): per-toast lifecycle onlynotification_container_controller.js (new): overflow state, capping, expand/collapse, clear-alldata-notification-delay-value for auto-dismiss timingdata-transition-enter-from)useMutation: observe child additions/removalsuseClickOutside: click-outside-to-collapserequestAnimationFramerequestAnimationFramemax-height values. Use scrollHeight or ResizeObserveraria-hidden="true" and inert attributenotification_container_controller.js with MutationObserver (no stimulus-use dependency needed -- native MutationObserver is simple enough)notification_controller.js unchanged, add custom event dispatch on dismissmax-height + overflow: hidden transitions for expand/collapserecalculateVisibility() via requestAnimationFramearia-hidden and inert to hidden toasts for accessibility