From d0f339365487c5e517d8df1e0b4244e6be38da22 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 23 Nov 2026 14:23:28 +0000 Subject: [PATCH] fix(hub): keep the inbox scroll position when a row is ticked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A tick redraws every inbox row and refocuses the ticked checkbox. At 390 the 258 px tall inbox then scrolled 9 px although no row, the head or the list changed height. toggle() now restores the scroll position after the redraw and the refocus. 🎯 Fix: 85 % 💥 Break: 2 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 83 🚦 Gate: ⛔ fix 85 % < 90 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- orchestrator/templates/page-inbox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orchestrator/templates/page-inbox.js b/orchestrator/templates/page-inbox.js index 8cb05e4..fc386e3 100644 --- a/orchestrator/templates/page-inbox.js +++ b/orchestrator/templates/page-inbox.js @@ -248,12 +248,14 @@ const key = keyOf(item); flip(key); ui.cursor = Math.max(visibleInbox().findIndex((entry) => keyOf(entry) === key), 0); + const top = inboxDom.scrollTop; drawInbox(); drawGrant(); const box = inboxDom.querySelector(`.item[data-index="${ui.cursor}"] > input[type="checkbox"]`); if (refocus && box) { box.focus({preventScroll: true}); } + inboxDom.scrollTop = top; } function reviewsPill(item) {