Skip to content

fix(sidebar): stick section headers like folder headers - #811

Open
Frank-zhu0404 wants to merge 1 commit into
xintaofei:mainfrom
Frank-zhu0404:fix/issue-759-sticky-section-headers
Open

Frank-zhu0404 wants to merge 1 commit into
xintaofei:mainfrom
Frank-zhu0404:fix/issue-759-sticky-section-headers

Conversation

@Frank-zhu0404

Copy link
Copy Markdown
Contributor

Replacement PR: restores CLOSED #800 after fork deletion (same HEAD 14b0d928d5c8). Prior: #800

Sidebar Folders / Chat / Recent section headers stay visible while scrolling inside that section, matching the existing sticky folder-row overlay.

Changes

  • Reuse the folder sticky overlay pattern for the active section header
  • Keep folder sticky behavior and section switching without layout jump / duplicate headers
  • Minimal TypeScript/React change with unit coverage for grouping + list sticky behavior

Closes #759

Testing

  • ./node_modules/.bin/vitest run src/components/conversations/sidebar-conversation-grouping.test.ts src/components/conversations/sidebar-conversation-list.test.tsx → 177 passed
  • ./node_modules/.bin/eslint on touched sidebar files → exit 0
  • Local Grokbuild review (grok-4.7 xhigh) VERDICT=PASS @ 14b0d928

virtua unmounts off-screen rows, so Folders, Chat, and Recent scrolled away
while only a folder header was pinned. A second floating overlay keeps the
current section at the top and parks the folder header directly under it,
with the same push-handoff when the next folder or section arrives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar: stick the section headers (Folders / Chat / Recent) like folder headers

1 participant