Repository navigation
Sidebar decluttering: denser thread cards, per-group overflow cap, sticky group headers - #71
Merged
currentbits merged 2 commits intoAug 16, 2026
Conversation
… We should be able to add images and folders to the chat
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/we-need-to-look-at-the-sidebar-when-we-h-aac079
branch
October 3, 2026 16:07
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.
Why
With several projects and many threads per project, the sidebar got hard to scan: every attention thread rendered as a ~90–110px card with no per-group limit, each card repeated the project slug already shown in the group header, and tag pills (provider/ssh/worktree) occupied a full row per card. The existing shelf model (pinned / snoozed / settled tail) is deliberate and stays untouched — this PR attacks density inside the attention groups only. Tracked as #70.
What changed
src/components/Sidebar.tsx):ThreadCardgains ashowSlugprop — the slug row renders only for orphan groups (which have no project header to carry it) and standalone renders. The tag pills merge into the card's top row next to the relative age, so a card goes from 4 rows to 3 (~65–85px). All existing class names anddata-*hooks are preserved.src/sidebarGroups.ts,Sidebar.tsx):GROUP_ATTENTION_CAP = 8— a group renders its newest 8 attention threads (static createdAt order means the oldest hide, so fresh work is always visible). A session-only "Show N more / Show fewer" disclosure (reusing the settled-tail.settledShowMorestyle) expands the rest. Carve-out: the active or freshly-revealed thread extends the slice so the open thread never vanishes. Search bypasses the cap, consistent with search bypassing collapse and shelves.src/sidebarSelection.ts):buildVisibleThreadIdsapplies the identical capped slice via the shared purevisibleAttentionCounthelper, so cmd+1..9 and cmd+j/k mirror the render exactly.Sidebar.module.css):.groupHeaderRowisposition: stickywith an opaquevar(--bg-elevated)background, keeping project context visible while scrolling long groups.Explicitly not changed
Settled tail (10/25 paging, global, expanded-by-default), snoozed/pinned shelves, partition precedence, collapse persistence keys, collapse-all semantics, archived toggles, remove-project confirm, batch bar, and createdAt ordering.
Verification
sidebarGroups.test.ts), capped-slice mirroring incl. carve-out and search bypass (sidebarSelection.test.ts), render behavior — cap disclosure, active-thread carve-out, search uncapped, orphan-slug rule (sidebar.test.tsx). All 69 pre-existing sidebar tests pass unchanged.tsc --noEmitclean.electron/imports none of the touched files. No live visual pass was done — the sticky header and merged tag row are worth an eyeball on a narrow sidebar.Closes #70