Commits
Marek Vsechovsky committed 842499d65a3
Session 164, Step 9: S4 ready-signal / notification timers not cancelled on any panel interaction - AIM-3129 S4 ready-signal / notification timers not cancelled on any panel interaction - 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 - AIM-3121 Second padlock in filter controls and cross-session/step sync Outcome: **Free-text (issue -3730):** Widened the Step 4 signal/notification cancellation from the narrow `#wfStep4Progress button, #wfS4DynamicArea button` selector to **ANY button anywhere inside the Wf panel** (`#panelWorkflow button`) plus **any pointer/keyboard interaction inside the Step 4 panel** (`mousedown`/`touchstart`/`keydown` on the panel containers). All of these route through a single `wfAcknowledgeS4Interaction()` helper that stops the active audible signal, clears the signal-delay timer and user-input notification delay timer on **every** task (active and background), and marks each task acknowledged so a signal can never restart. This guarantees the signal timer is cancelled as soon as any button is pressed. Also mapped the persisted `signalStarted` flag back to `_wfS4SignalStarted` in both S4-task rehydration paths (`dashboard.js` init and `dashboard-project.js` `selectProject`) so an already-acknowledged task does not re-arm its signal after a reload. **AIM-3116:** Verified the padlock state model; fixed `getTabLockState()` which called the non-existent `_readTabLockState()` (would throw when cached state was empty) to use `AimLS.getTabLockState()`. **AIM-3117:** Verified Ctrl+click / long-click toggling on the **clicked** tab. Fixed the non-forced filter-lock colour so each session/step padlock reflects its **actual** checkbox value (primary when it matches the locked default, orange when it differs) instead of being force-set to the locked value, and fixed stale jQuery `.data()` reads in `_syncPadlocks` (now reads attributes directly) so padlock colours update correctly on repeated syncs. **AIM-3120 / AIM-3121:** Verified persistence/restore and the second filter padlock + cross-session sync; the `_syncPadlocks` fix above also corrects the cross-session colour synchronisation.