Commits
Marek Vsechovsky committed 71689d63b31
Session 182, Step 3: Auto-switch to the Session steps tab when a highlighted issue is clicked in Session issues
- AIM-3508 Auto-switch to the Session steps tab when a highlighted issue is clicked in Session issues
- AIM-3527 Color the /X part of the session avatar badge with --aim-indigo-light when all unresolved issues are ready or postponed
- AIM-3528 Clear the full-text results groups and Workflow tab badges when switching projects
- AIM-3534 Skip a history item add when the item is already at the top of the history
Outcome:
Implemented all 4 issues. **issue -4192**: `mruRecord` in `dashboard.js` now skips recording an item that is already at the top of its MRU history list, for all three maintained lists (issues, sessions, Wf S2 stories), generalizing the AIM-3505 session-only guard. **AIM-3508**: clicking a highlighted issue in Session issues now really switches to the Session steps tab and scrolls the first step containing the issue into view — the old scroll never ran because the highlight badges are added asynchronously; the new `_scrollFirstHighlightedStepIntoView` places the whole `.aim-accordion-item` in the viewport (top edge a few pixels below the top when the item is taller) via explicit `scrollTop`. **AIM-3527**: the `--aim-indigo-light` coloring of the `/X` badge part no longer reverts after a timer refresh — `GET /api/sessions/{id}` now returns `postponedCount`, the SSE `sessionBadge`/`sessionBadges` payloads carry `readyCount`/`postponedCount`, and `refreshSessionBadge`/`updateSessionBadgeFromData` keep the known counter values when a payload omits them instead of zeroing them. **AIM-3528**: the Wf step-4 badge counts only the currently selected project's processing steps — tasks are stamped with their `projectId` at creation/auto-discovery and on restore, `updateS4MiniTabBadge` filters by project and owns both `#s4MiniTabBadge` and `#wfStep4Badge`, `_saveS4Tasks` persists only the current project's tasks, and `selectProject` re-renders the step-4 badges after restoring the saved list. Validation: all 16 bundle inputs and the rebuilt `dashboard.min.js` pass `node --check`, all 22 JS tests pass (`test:workflow-prompt` 10, `test:issue-note-freshness` 4, `test:settings-documents` 8) and `dotnet build` succeeds.