feat: UI-07 message navigation sidebar (emoji minimap)#37
Merged
Killea merged 9 commits intoKillea:mainfrom Mar 3, 2026
Merged
feat: UI-07 message navigation sidebar (emoji minimap)#37Killea merged 9 commits intoKillea:mainfrom
Killea merged 9 commits intoKillea:mainfrom
Conversation
- Add #chat-area wrapper (flex row) in #main to host messages-wrap + nav-sidebar side by side
- Add <nav id=nav-sidebar> with .nav-sidebar-list of clickable .nav-anchor elements
- New shared-nav-sidebar.js: AcbNavSidebar API (rebuild, onNewMessage, setEnabled, isEnabled, applyEnabledState)
- IntersectionObserver highlights active anchor for currently visible message
- Click anchor -> scrollIntoView({ behavior: smooth, block: center }) + brief .nav-highlight flash
- Per-agent dot colours via stable authorId->colour mapping (5-colour palette)
- Toggle via Settings > UI Preferences checkbox (localStorage acb-minimap-enabled, instant, no restart)
- acb-modal-shell.js: renderUiPreferences() + _attachMinimapToggle() + AcbModalShell.syncMinimapCheckbox()
- shared-modals.js: openSettingsModal() syncs checkbox from localStorage on open
- Responsive: sidebar hidden at <=1100px via @media
- ?v=N+1 bumped for acb-modal-shell.js (v4) and shared-modals.js (v5)
- 13 Vitest tests (103 total, 0 regression)
…in messages-wrap)
- Replace absolute emoji rail with fixed-width nav-sidebar column - Add #chat-area flex wrapper (messages-wrap + nav-sidebar side by side) - nav-entry: emoji + author name + time, hover/active states, clic jump - IntersectionObserver highlights visible messages - Responsive: hidden below 1000px, toggle via Settings localStorage - 104 Vitest tests passing
- #messages-wrap: flex-direction row (messages-scroll + nav-sidebar) - New #messages-scroll wrapper handles overflow-y: auto (scroll) - #messages: layout only, no overflow - scrollBottom() and scroll-top btn now target #messages-scroll - IntersectionObserver root = #messages-scroll - 104 Vitest tests passing
- After buildSidebar(), compute msg-sys-prompt height and set sidebar padding-top so entries start at the first msg-row - On scroll, update padding-top dynamically so alignment tracks - 104 Vitest tests passing
- Add #sys-prompt-area (full-width, flex-shrink:0) above #chat-body - #chat-body = flex row: #messages-scroll + #nav-sidebar - appendBubble: seq=0 injected into #sys-prompt-area, not #messages - resetThreadSelection: clear #sys-prompt-area on thread change - Remove dynamic padding-top hack from shared-nav-sidebar.js - 104 Vitest tests passing
- System prompt collapsed by default on thread open - Minimap: ignore initial IntersectionObserver batch (300ms guard) to avoid all entries showing as active on load - Minimap click: scroll messages-scroll to row.offsetTop - 12px for precise top-aligned navigation instead of block:center - 104 Vitest tests passing
- System prompt opens expanded when thread has no messages - Auto-collapses when first msg-row is appended to #messages - If already collapsed (user manually closed), no double-toggle - 104 Vitest tests passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modified files
Test plan