Commits
Marek Vsechovsky committed 78b5f3e870c
Session 164, Step 10: AI Sessions list item circular progress + avatar badge not refreshed after Wf S1 status/readiness change - AIM-3130 AI Sessions list item circular progress + avatar badge not refreshed after Wf S1 status/readiness change - AIM-3116 Implement padlock icons and tab locking state model - AIM-3117 Implement Ctrl+click toggle and long-click (900ms) for tab locking - AIM-3120 Persist tab lock state in localStorage and restore on page reload Outcome: **Free-text (-3731):** `refreshSessionProgress` now updates BOTH the avatar badge and the circular progress ring for every matching list row, and `wfSyncSessionTab` now keeps the summary's ring counters (`issuesFinished`/`issuesStarted`/`issuesNotStarted`/`issuesCanceled`) in sync and calls the refresh on the early path too. A readiness-only change (`todoDelta === 0`, `readyDelta !== 0`) no longer returns before refreshing, so the orange 'N' badge correctly becomes the primary 'ready/N' badge. The previously hard-coded `readyDelta` (±1) was replaced with a transition-aware value computed from the prior ready state. **AIM-3116 (n8):** Fixed the broken lock restoration. Root cause: `_restoreLockedDefaults()` ran at module init BEFORE `AimLS.setUserDir()`, so it read the *unprefixed* key and cached an empty default state for the whole session. The lock state is now re-read whenever the user dir changes, and `Dashboard/finishInit` calls `Dash.Sess.restoreTabLockState()` right after `AimLS.setUserDir()`. Added the requested 24h/hard-lock per-item override memory. **AIM-3117 (n13):** Fixed the long-click failure caused by the info rectangle swallowing the mouse-up. The SVF rectangle is now `pointer-events: none` and its "stay visible while hovered" behaviour is emulated with a document `mousemove` handler. **AIM-3120 (n6):** Restoration path made reliable (same root-cause fix as AIM-3116).