From adcdaa31bdd147d2bf5bfb8ea6bcb8601c7070d3 Mon Sep 17 00:00:00 2001 From: Phil LaFayette Date: Thu, 25 Jun 2026 19:57:08 -0500 Subject: [PATCH] Clean all web warnings: eliminate vitest console noise + autofixer issues - mqtt-store-bootstrap.spec.js: spy and silence the intentional '/api/conversations bootstrap failed' console.warn from the error-path tests; assert the warning fired so suppression never hides a regression. - history-status-normalization.spec.js: poll for the async fetchHistory result instead of a fixed 10ms wait, removing an intermittent flake. - ReadReceipt.svelte: remove dead, malformed $derived (it passed a function to $derived and was never referenced); key the each block. - EmojiPicker.svelte / SearchPanel.svelte: add keys to static each blocks. The bits-ui Dialog 'derived_inert' teardown warning is resolved by the scroll-lock drain in tests/setup.js (#46), so no console filter is needed. --- web/src/components/EmojiPicker.svelte | 4 +-- web/src/components/ReadReceipt.svelte | 9 +----- web/src/components/SearchPanel.svelte | 2 +- .../history-status-normalization.spec.js | 21 +++++++++++--- web/tests/mqtt-store-bootstrap.spec.js | 28 ++++++++++++++++++- 5 files changed, 48 insertions(+), 16 deletions(-) diff --git a/web/src/components/EmojiPicker.svelte b/web/src/components/EmojiPicker.svelte index 1031543..6122cea 100644 --- a/web/src/components/EmojiPicker.svelte +++ b/web/src/components/EmojiPicker.svelte @@ -98,7 +98,7 @@ >
- {#each categories as cat} + {#each categories as cat (cat.id)}