diff --git a/neode-ui/src/views/Mesh.vue b/neode-ui/src/views/Mesh.vue index 9bd1c4e8..56116afa 100644 --- a/neode-ui/src/views/Mesh.vue +++ b/neode-ui/src/views/Mesh.vue @@ -10,6 +10,7 @@ import MeshBitcoinPanel from '@/views/mesh/MeshBitcoinPanel.vue' import MeshDeadmanPanel from '@/views/mesh/MeshDeadmanPanel.vue' import MeshDevicePanel from '@/views/mesh/MeshDevicePanel.vue' import MeshAssistantPanel from '@/views/mesh/MeshAssistantPanel.vue' +import HopVizModal from '@/views/mesh/HopVizModal.vue' import { rpcClient } from '@/api/rpc-client' import { wsClient } from '@/api/websocket' import { IMAGE_COMPRESSION_PRESETS, compressImage, makeThumbnail, type ImageCompressionPreset } from '@/utils/imageCompression' @@ -1298,11 +1299,6 @@ const hopVizPeer = computed(() => { if (!m) return null return mesh.peers.find(p => p.contact_id === m.peer_contact_id) ?? activeChatPeer.value }) -function hopVizHops(): number | null { - const p = hopVizPeer.value - if (!p || p.hops == null || p.hops === 0xff) return null - return p.hops -} function signalQualityLabel(snr: number | null, rssi: number | null): string { if (snr == null && rssi == null) return 'signal unknown' if (snr != null) { @@ -2625,57 +2621,17 @@ async function downloadAttachment(payload: MeshAttachmentPayload) { - -
-
-

{{ transportLabel(hopVizMsg) || 'Message' }} route

-

- {{ hopVizMsg.direction === 'sent' ? 'You โ†’ ' + (hopVizPeer?.advert_name || hopVizMsg.peer_name || 'peer') : (hopVizPeer?.advert_name || hopVizMsg.peer_name || 'peer') + ' โ†’ You' }} -

-
-
- ๐Ÿ๏ธ - {{ hopVizMsg.direction === 'sent' ? 'You' : (hopVizPeer?.advert_name || hopVizMsg.peer_name || 'Peer') }} -
- - - - -
- ๐Ÿ๏ธ - {{ hopVizMsg.direction === 'sent' ? (hopVizPeer?.advert_name || hopVizMsg.peer_name || 'Peer') : 'You' }} -
-
-
- {{ signalQualityLabel(hopVizPeer?.snr ?? null, hopVizPeer?.rssi ?? null) }} - SNR {{ hopVizPeer.snr.toFixed(1) }} dB - RSSI {{ hopVizPeer.rssi }} dBm -

Signal values are the current link readings for this peer, not a snapshot from this message.

-
-
- E2E - {{ hopVizMsg.delivered && hopVizMsg.direction === 'sent' ? 'delivered โœ“โœ“' : hopVizMsg.direction === 'sent' ? 'sent' : 'received' }} - {{ timeAgo(hopVizMsg.timestamp) }} -
- -
-
-
+ it traveled โ€” branded medallion + animated packet design, vertical on + mobile. Self-contained component (Teleports to body itself). --> + + +
+
+

{{ transportLabel || 'Message' }} route

+

{{ senderName }} โ†’ {{ recipientName }}

+ +
+
+
+ + ๐Ÿ๏ธ +
+ {{ senderName }} +
+ +
+
+
+ + + + +
+
+
{{ routeLabel }}
+
+ +
+
+ + ๐Ÿ๏ธ +
+ {{ recipientName }} +
+
+ +
+ {{ signalLabel }} + SNR {{ peer.snr.toFixed(1) }} dB + RSSI {{ peer.rssi }} dBm +

Signal values are the current link readings for this peer, not a snapshot from this message.

+
+
+ E2E + {{ deliveryLabel }} + {{ timeLabel }} +
+ + +
+
+
+ + + + + diff --git a/neode-ui/src/views/mesh/mesh-styles.css b/neode-ui/src/views/mesh/mesh-styles.css index 62ae8f78..72eb4cbc 100644 --- a/neode-ui/src/views/mesh/mesh-styles.css +++ b/neode-ui/src/views/mesh/mesh-styles.css @@ -591,50 +591,10 @@ select.mesh-bitcoin-input option { background: #1a1a2e; color: rgba(255,255,255, .mesh-image-transport-pill:hover { background: rgba(255,255,255,0.1); } .mesh-image-transport-pill.active { background: rgba(251,146,60,0.18); border-color: rgba(251,146,60,0.7); color: #fff; } -/* Hop visualization modal + clickable transport pill */ +/* Clickable transport pill โ€” opens the hop-route modal (HopVizModal.vue, + which carries its own scoped hopviz styles). */ .mesh-chat-transport-clickable { cursor: pointer; } .mesh-chat-transport-clickable:hover { filter: brightness(1.4); } -.mesh-hopviz-chain { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px 8px; flex-wrap: wrap; } -/* Animated route reveal: endpoints and link fade/slide in sequence, then a - pulse travels the link continuously to show the direction of travel. */ -.mesh-hopviz-chain > * { opacity: 0; animation: mesh-hopviz-appear 0.4s ease forwards; } -.mesh-hopviz-chain > *:nth-child(1) { animation-delay: 0.05s; } -.mesh-hopviz-chain > *:nth-child(2) { animation-delay: 0.35s; } -.mesh-hopviz-chain > *:nth-child(3) { animation-delay: 0.65s; } -@keyframes mesh-hopviz-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } -.mesh-hopviz-link { position: relative; overflow: hidden; } -.mesh-hopviz-link::before { - content: ''; - position: absolute; - top: -2px; - left: -18%; - width: 18%; - height: 2px; - background: linear-gradient(90deg, transparent, rgba(251,146,60,0.95), transparent); - animation: mesh-hopviz-travel 1.6s linear infinite; - animation-delay: 1s; -} -@keyframes mesh-hopviz-travel { from { left: -18%; } to { left: 100%; } } -.mesh-hopviz-dot { animation: mesh-hopviz-blink 1.6s ease-in-out infinite; } -.mesh-hopviz-dot:nth-child(2) { animation-delay: 0.25s; } -.mesh-hopviz-dot:nth-child(3) { animation-delay: 0.5s; } -.mesh-hopviz-dot:nth-child(4) { animation-delay: 0.75s; } -.mesh-hopviz-dot:nth-child(5) { animation-delay: 1s; } -.mesh-hopviz-dot:nth-child(6) { animation-delay: 1.25s; } -@keyframes mesh-hopviz-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } } -@media (prefers-reduced-motion: reduce) { - .mesh-hopviz-chain > * { animation: none; opacity: 1; } - .mesh-hopviz-link::before { animation: none; display: none; } - .mesh-hopviz-dot { animation: none; } -} -.mesh-hopviz-node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; } -.mesh-hopviz-icon { font-size: 1.8rem; } -.mesh-hopviz-name { font-size: 0.8rem; font-weight: 600; color: #fff; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.mesh-hopviz-link { flex: 1 1 auto; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.75); border-top: 2px dashed rgba(251,146,60,0.5); padding-top: 6px; min-width: 120px; } -.mesh-hopviz-dots { margin-left: 6px; letter-spacing: 6px; color: rgba(251,146,60,0.9); } -.mesh-hopviz-signal { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.75); padding: 4px 0; } -.mesh-hopviz-meta { font-size: 0.75rem; color: rgba(255,255,255,0.5); } -.mesh-hopviz-note { flex-basis: 100%; text-align: center; font-size: 0.68rem; color: rgba(255,255,255,0.35); margin: 2px 0 0; } /* Per-message "more" button โ€” opens the route/hops modal (same target as the transport pill, but always visible and discoverable). */