mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #79] [MERGED] fix: sync sidebar tab and folder with active chat selection #4446
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4446
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/79
Author: @coxde
Created: 4/9/2026
Status: ✅ Merged
Merged: 4/9/2026
Merged by: @coxde
Base:
main← Head:fix/sync-sidebar📝 Commits (1)
8ca4330fix: sync sidebar tab and folder with active chat selection📊 Changes
1 file changed (+80 additions, -0 deletions)
View changed files
📝
packages/client/src/components/layout/ChatSidebar.tsx(+80 -0)📄 Description
This pull request enhances the
ChatSidebarcomponent to ensure the sidebar's tab, folder, and scroll position automatically sync with the currently active chat.useEffectinChatSidebarto automatically synchronize the sidebar's active tab, folder expansion, and scroll position with the currently active chat, handling edge cases like late folder loading and navigation from notifications or imports.syncRefandinternalNavRefto track synchronization state and distinguish between internal and external navigation, ensuring the search filter is only cleared when appropriate.data-chat-idand setinternalNavRefon sidebar clicks, preventing the search query from being cleared when navigating via the sidebar.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.