4084544530
- Extract inline ternary for device badge into `const badgeHtml` variable above the return block, consistent with how `bellHtml` is handled - Tighten data-session-key/data-source-url test assertions to check exact attribute values rather than just attribute presence - Add XSS test: verifies deviceName containing HTML is escaped in the badge All 159 tests pass.