# 042 - Why Deny Is Off ## User Story As the operator, I want a disabled Deny button to tell me on hover why it is off, so that I do not guess what is missing. ## Decisions (operator-confirmed 2026-11-25; do not re-litigate) 1. **Hover and focus**: a wrapper around the button carries the reason as tooltip, because a disabled button fires no hover in Chrome; the button's `aria-describedby` gives keyboard users the same text. 2. **Reasons**: "Pick the agent to tell: a post or call needs a recipient" (deny sheet) and "No agent to tell: the item names no recipient" (the split Deny button, `page-deny.js` `denySplit`). 3. **Enabled again**: once the reason is gone the tooltip names the action. ## Approach ```mermaid flowchart TD subgraph P["๐Ÿงญ 0 ยท Preparation"] P1["๐Ÿ“‹ Write requirement"] --> P2{"โœ… Operator approves?"} P2 -- "โœ๏ธ corrections" --> P1 end P2 -- "๐Ÿค– yes" --> A1 subgraph A["๐Ÿ’ฌ A ยท Deny reason"] A1["๐Ÿงฉ Wrapper with title and aria-describedby"] --> A2["โœ๏ธ E2E test written"] end A2 --> C1 subgraph C["๐Ÿงช C ยท All of 039 to 046"] 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 ### Tooltip - [ ] In the deny sheet with channel Call and no recipient, the wrapper of the disabled Deny button has a `title` naming the missing recipient. - [ ] The button's `aria-describedby` points to an element with that text. - [ ] After a recipient is picked, Deny is enabled and the title no longer names a missing recipient. ### Tests - [ ] Unit: n/a: page JS. - [ ] Integration: n/a: no server change. - [ ] E2E: the three checks above.