From 92b7afcb186d7aaf475939d58a0385f408425eeb Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Mon, 5 Oct 2026 13:13:54 +0200 Subject: feat(hub): say "N groups unreachable" on Search for a few seconds, not for good MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The line sat above the results for as long as the page was open. It is now said once a cross-group pass is over, for five seconds, in the same passing note as "Link copied" — moved out of copy-link.js into note.js (`say(text, ms)`), one note at a time for the whole page. The `.search-unreachable` rule goes with the line it styled. The copy-link probe now also checks in Chrome that the note goes by itself. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/harness/copy_link_probe.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/meshbay-hub/tests/harness/copy_link_probe.py') diff --git a/packages/meshbay-hub/tests/harness/copy_link_probe.py b/packages/meshbay-hub/tests/harness/copy_link_probe.py index 50d269d..564d277 100644 --- a/packages/meshbay-hub/tests/harness/copy_link_probe.py +++ b/packages/meshbay-hub/tests/harness/copy_link_probe.py @@ -69,7 +69,7 @@ const pick = async (label) => { await wait(50); return true; }; -const note = () => (document.querySelector('.copy-link-note') || {}).textContent || ''; +const note = () => (document.querySelector('.page-note') || {}).textContent || ''; const closeMenus = async () => { document.body.dispatchEvent(new MouseEvent('mousedown', { bubbles: true })); await frame(); @@ -177,6 +177,12 @@ const rowNamed = (name) => [...document.querySelectorAll('tr.file-row')] cases.push({ case: 'photos', tile: Boolean(tile), labels: tileLabels, copied: fromTile, lightbox_button: Boolean(lb), lightbox_copied: COPIES.at(-1) || null }); + // Said, then gone (note.js): still up just after, not 2.5 s later. + const upAfterCopy = Boolean(document.querySelector('.page-note')); + await wait(2700); + cases.push({ case: 'note goes', up_after_copy: upAfterCopy, + up_later: Boolean(document.querySelector('.page-note')) }); + parent.postMessage({ cases, logs: LOGS, origin: location.origin }, '*'); } catch (err) { parent.postMessage({ error: String(err && (err.stack || err)), logs: LOGS }, '*'); -- cgit v1.2.3