# 050 - Menus Stay Open ## User Story As the operator, I want the filter menu to stay open while I click its chips, so that I set several filters in one go. ## Decisions (operator-confirmed 2026-11-25; do not re-litigate) 1. **Stay open**: clicks inside the Stream filter menu, and inside every hub menu whose entries are toggle chips, never close it. A menu entry that runs an action still closes its menu. 2. **Close** (operator): 3 s after the pointer leaves the menu, cancelled when it comes back; at once on a click outside or Esc. ## Approach ```mermaid flowchart TD subgraph P["๐Ÿงญ 0 ยท Preparation"] P1["๐Ÿ“‹ Write requirement"] --> P2{"โœ… Operator approves?"} P2 -- "โœ๏ธ corrections" --> P1 end P2 -- "๐Ÿค– yes" --> A1 subgraph A["๐Ÿ“‚ A ยท Menus"] A1["๐Ÿงฉ Chip clicks keep the menu"] --> A2["โฒ๏ธ Close 3 s after leave, outside click, Esc"] A2 --> A3["โœ๏ธ E2E test written"] end A3 --> C1 subgraph C["๐Ÿงช C ยท All of 039 to 050"] C1["๐Ÿงช All tests once"] --> C2{"๐ŸŸข Green?"} C2 -- "๐Ÿ”ด no: fix" --> C1 C2 -- "๐ŸŸข yes" --> CF{"๐Ÿ’ฌ Operator feedback on screenshots?"} CF -- "โœ๏ธ changes" --> A1 end CF -- "๐Ÿ‘ fits" --> D1["๐Ÿ Review, commit with operator OK, hand-over"] ``` ## Acceptance Criteria ### Menu - [ ] After clicks on three kind chips of the Stream filter menu, the menu is open and all three chips show their new state. - [ ] After the pointer leaves, the menu is open at 2.5 s and closed at 3.5 s; a return at 2 s keeps it open. - [ ] A click outside or Esc closes it at once. ### Tests - [ ] Unit: n/a: page JS. - [ ] Integration: n/a: no server change. - [ ] E2E: the Menu checks in Chromium; screenshots.