mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4178] [MERGED] feat(chat-sidebar): per-chat liveness signals, thumbnail row banners, and configurable backgrounds #6269
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#6269
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/4178
Author: @Gunterlie
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/chat-list-liveness📝 Commits (8)
c678f7bfeat(chat-sidebar): show per-chat liveness and avatar banner996ef75fix(chat-sidebar): show generating pulse for background chatse13469bfeat(chat-sidebar): use the chat's own background for the row banner3490257feat(chat-sidebar): relative timestamps, named unread, hover peek22d95b4perf(chat-sidebar): thumbnail row banners and make them configurablee55e172Merge branch 'staging' into feat/chat-list-liveness6375bdeMerge branch 'staging' into feat/chat-list-livenessf616ecafix(backgrounds): make thumbnail caching race-safe📊 Changes
12 files changed (+483 additions, -41 deletions)
View changed files
📝
packages/client/src/components/chat/ConversationPresenceCard.tsx(+1 -26)➕
packages/client/src/components/layout/ChatRowPeek.tsx(+149 -0)📝
packages/client/src/components/layout/ChatSidebar.tsx(+110 -4)📝
packages/client/src/components/panels/SettingsPanel.tsx(+52 -0)📝
packages/client/src/components/panels/settings/BackgroundPicker.tsx(+11 -1)📝
packages/client/src/hooks/use-chats.ts(+17 -0)📝
packages/client/src/lib/backgrounds.ts(+13 -6)➕
packages/client/src/lib/relative-time.ts(+46 -0)📝
packages/client/src/localization/locales/en.json(+11 -0)📝
packages/client/src/stores/ui.store.ts(+14 -0)📝
packages/server/src/routes/backgrounds.routes.ts(+56 -4)📝
packages/shared/src/constants/defaults.ts(+3 -0)📄 Description
Linked issue
No linked issue yet. Per
CONTRIBUTING.md § Before You Open a Pull Request, one should be opened to gather opinions before this is submitted.Why this change
The chat sidebar lacked per-chat liveness cues: no way to see which chat is currently generating, no typing indicators for background chats, no visual distinction for the active chat beyond a colored bar, and unread indicators only showed a dot without context. Row banners rendered full-resolution user uploads (up to ~8 MB decoded each) for every chat in the list.
What changed
Per-chat liveness signals
abortControllersmap has an entry.agent.store.ts) so rows don't re-render on every unrelated store write.Hover peek
Escape, or pointer-leave.Row banner with thumbnails
GET /api/backgrounds/file/:filename?w=320— sharp resize → WebP, cached toDATA_DIR/backgrounds-thumbs/, written atomically. Falls back to streaming the original when sharp is unavailable (Android/Termux) or the source is an animated GIF.chatBackgroundMetadataToUrl(value, width?)appends the width param;BackgroundPicker.tsxalso uses the 320px thumbnail.hover(default, = only on hover/active),always(every row),off. Rendered as a dropdown rather than a card grid to match the rest of the Appearance panel. Synced across devices. On mobile thehoverdefault degrades to active-row-only since touch devices don't fire hover events.Relative timestamps
formatRelativeContactusesIntl.RelativeTimeFormatwith the user's locale andstyle:"narrow"(→ "now", "5m ago"). One cached formatter per locale, no new i18n keys.Fixes from review
left-0so it isn't clipped byoverflow-hiddenon the row.limitso stale data is correctly invalidated.side="right"on the dropdown to prevent overflow.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
?w=320requests returningimage/webp).Docs and release impact
UI evidence (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.