diff --git a/frontend/src/components/MessageList.tsx b/frontend/src/components/MessageList.tsx index d4f9ca8..111009e 100644 --- a/frontend/src/components/MessageList.tsx +++ b/frontend/src/components/MessageList.tsx @@ -462,7 +462,26 @@ export function MessageList({ )} > )} - {msg.outgoing && (msg.acked > 0 ? ` ✓${msg.acked > 1 ? msg.acked : ''}` : ' ?')} + {msg.outgoing && (msg.acked > 0 + ? msg.paths && msg.paths.length > 0 + ? { + e.stopPropagation(); + setSelectedPath({ + paths: msg.paths!, + senderInfo: { + name: config?.name || 'Unknown', + publicKeyOrPrefix: config?.public_key || '', + lat: config?.lat ?? null, + lon: config?.lon ?? null, + }, + }); + }} + title="View echo paths" + >{` ✓${msg.acked > 1 ? msg.acked : ''}`} + : ` ✓${msg.acked > 1 ? msg.acked : ''}` + : ' ?')} diff --git a/frontend/src/components/PathModal.tsx b/frontend/src/components/PathModal.tsx index c0c1201..7f0b951 100644 --- a/frontend/src/components/PathModal.tsx +++ b/frontend/src/components/PathModal.tsx @@ -10,6 +10,7 @@ import { import { Button } from './ui/button'; import { resolvePath, + parsePathHops, calculateDistance, isValidLocation, formatDistance, @@ -60,6 +61,15 @@ export function PathModal({ open, onClose, paths, senderInfo, contacts, config }