[PR #4184] [MERGED] fix(chat-sidebar): restore fixes omitted from #4178 #6271

Closed
opened 2026-10-23 04:08:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4184
Author: @Gunterlie
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/4178-omitted-chat-list-fixes


📝 Commits (8)

  • 4344090 refactor(settings): replace chat backgrounds grid with dropdown
  • 6753130 refactor(chat-sidebar): add speaker rail to peek messages
  • fbd4796 fix(chat-sidebar): prevent infinite folder expansion requests
  • 427e6c5 refactor(chat-list): stabilize selectors and enhance liveness indicators
  • e946692 fix(chat-store): prevent pruning client-only unread notifications
  • c7a63c9 Update files
  • 1039a80 fix(shared): keep thumbnail width export canonical
  • 9c1c757 fix(chat-store): track unread provenance per source

📊 Changes

7 files changed (+184 additions, -78 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+2 -2)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+3 -3)
📝 packages/client/src/components/layout/ChatRowPeek.tsx (+24 -12)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+42 -12)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+9 -20)
📝 packages/client/src/stores/agent.store.ts (+9 -0)
📝 packages/client/src/stores/chat.store.ts (+95 -29)

📄 Description

Linked issue

Closes #4183

Follow-up to #4178.

Why this change

  • PR #4178 sourced Gunterlie:feat/chat-list-liveness, while final review fixes were pushed to Pasta-Devs:feat/chat-list-liveness. The merge included the basic feature but omitted the final reviewed hover presentation, liveness stability, folder-sync, settings, and unread-state fixes.

What changed

  • Restore the speaker-rail hover peek presentation and use a block element so message clamping works reliably.
  • Prevent repeated collapsed-folder expansion mutations and replace unstable Zustand empty-array selectors with shared stable values.
  • Preserve client-only unread notifications across chat-list hydration.
  • Restore the compact chat-list background dropdown and refined liveness icons.
  • Keep the thumbnail width constant and race-safe cache implementation already present on staging; the superseded atomic-write commit was intentionally not replayed.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence: pnpm check and pnpm localization:check completed successfully locally. The check reports one existing react-hooks/exhaustive-deps warning in packages/client/src/components/noodle/NoodleHome.tsx; there are no errors.

Manual verification notes

  • Manually verify hover peek opens after dwell, displays the speaker rail and clamped messages, and closes on pointer leave, scroll, and Escape.
  • Manually verify selecting a chat inside a collapsed folder expands it only once without repeated mutations.
  • Manually verify background generation/typing indicators remain stable while switching chats.
  • Manually verify a background-chat unread notification survives a chat-list refetch.
  • Manually verify the Chat List Backgrounds dropdown in light/dark themes and a mobile viewport.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No user-facing documentation or release metadata is changed.

UI evidence (if applicable)

Manual screenshots or a short recording of the hover peek and Appearance setting still need to be attached.

Summary by CodeRabbit

  • New Features

    • Improved chat sidebar indicators for active, generating, and incoming-call states.
    • Added a dropdown selector for chat list backgrounds in Settings.
    • Refined chat preview styling, message layout, and readability.
  • Bug Fixes

    • Prevented unread notifications created locally from being incorrectly removed during server updates.
    • Improved failure-state handling when switching between chats.
    • Prevented repeated folder expansion updates.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4184 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/27/2026 **Status:** ✅ Merged **Merged:** 7/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/4178-omitted-chat-list-fixes` --- ### 📝 Commits (8) - [`4344090`](https://github.com/Pasta-Devs/Marinara-Engine/commit/43440908a6f04e22e6bc89e49e97dbcd6da4d36b) refactor(settings): replace chat backgrounds grid with dropdown - [`6753130`](https://github.com/Pasta-Devs/Marinara-Engine/commit/67531303ea9445a9e156eb5ecc52ac39710a6afd) refactor(chat-sidebar): add speaker rail to peek messages - [`fbd4796`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbd4796cf0657de8720b9cb273aadb67d140e1cf) fix(chat-sidebar): prevent infinite folder expansion requests - [`427e6c5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/427e6c5a20174e82efe44a09fd119946ecd2a870) refactor(chat-list): stabilize selectors and enhance liveness indicators - [`e946692`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e946692dd79807fd2b56339c02883000fab9f8d3) fix(chat-store): prevent pruning client-only unread notifications - [`c7a63c9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c7a63c9b9e6619c7213490a9f49228733acf6a08) Update files - [`1039a80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1039a80dc111f2c0fa75285a9a0a3348c1ae3907) fix(shared): keep thumbnail width export canonical - [`9c1c757`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9c1c757d9298ab39fedb0e1ae682200f29c905af) fix(chat-store): track unread provenance per source ### 📊 Changes **7 files changed** (+184 additions, -78 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+2 -2) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+3 -3) 📝 `packages/client/src/components/layout/ChatRowPeek.tsx` (+24 -12) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+42 -12) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+9 -20) 📝 `packages/client/src/stores/agent.store.ts` (+9 -0) 📝 `packages/client/src/stores/chat.store.ts` (+95 -29) </details> ### 📄 Description ## Linked issue Closes #4183 Follow-up to #4178. ## Why this change - PR #4178 sourced `Gunterlie:feat/chat-list-liveness`, while final review fixes were pushed to `Pasta-Devs:feat/chat-list-liveness`. The merge included the basic feature but omitted the final reviewed hover presentation, liveness stability, folder-sync, settings, and unread-state fixes. ## What changed - Restore the speaker-rail hover peek presentation and use a block element so message clamping works reliably. - Prevent repeated collapsed-folder expansion mutations and replace unstable Zustand empty-array selectors with shared stable values. - Preserve client-only unread notifications across chat-list hydration. - Restore the compact chat-list background dropdown and refined liveness icons. - Keep the thumbnail width constant and race-safe cache implementation already present on `staging`; the superseded atomic-write commit was intentionally not replayed. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated evidence: `pnpm check` and `pnpm localization:check` completed successfully locally. The check reports one existing `react-hooks/exhaustive-deps` warning in `packages/client/src/components/noodle/NoodleHome.tsx`; there are no errors. ### Manual verification notes - [x] Manually verify hover peek opens after dwell, displays the speaker rail and clamped messages, and closes on pointer leave, scroll, and Escape. - [x] Manually verify selecting a chat inside a collapsed folder expands it only once without repeated mutations. - [x] Manually verify background generation/typing indicators remain stable while switching chats. - [x] Manually verify a background-chat unread notification survives a chat-list refetch. - [x] Manually verify the Chat List Backgrounds dropdown in light/dark themes and a mobile viewport. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No user-facing documentation or release metadata is changed. ## UI evidence (if applicable) Manual screenshots or a short recording of the hover peek and Appearance setting still need to be attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved chat sidebar indicators for active, generating, and incoming-call states. * Added a dropdown selector for chat list backgrounds in Settings. * Refined chat preview styling, message layout, and readability. * **Bug Fixes** * Prevented unread notifications created locally from being incorrectly removed during server updates. * Improved failure-state handling when switching between chats. * Prevented repeated folder expansion updates. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6271
No description provided.