feat(app): link memory to source session with focus-scroll navigation

Add a clickable session link in MemoryList detail panel that navigates
  to the source session and scrolls to the originating message. Refactor
  SessionDetail focus logic into a reusable focusPendingMessage() that
  reads ?focus=<uuid> from the route query, scrolls the target into view,
  and applies a pulse animation that fades out.
This commit is contained in:
tommy0103
2026-06-17 01:15:16 +08:00
parent 42c7c0da66
commit e3ca1735b9
4 changed files with 86 additions and 14 deletions
+6
View File
@@ -448,6 +448,12 @@
.msg.is-focused {
border-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent), 0 0 22px var(--accent-glow);
animation: focus-pulse 2s ease-out forwards;
}
@keyframes focus-pulse {
0% { box-shadow: 0 0 0 2px var(--accent), 0 0 30px var(--accent-glow); }
70% { box-shadow: 0 0 0 1px var(--accent), 0 0 15px var(--accent-glow); }
100% { box-shadow: none; border-color: var(--asst-bubble-border); }
}
.msg-head {
display: flex; align-items: center; gap: 8px;