From ac09fc5ded2e24c60a608d6585b48a97b77f5255 Mon Sep 17 00:00:00 2001 From: archipelago Date: Wed, 29 Jul 2026 11:36:45 -0400 Subject: [PATCH] =?UTF-8?q?feat(mesh):=20redesign=20hop-route=20visualizat?= =?UTF-8?q?ion=20=E2=80=94=20branded,=20animated,=20vertical=20on=20mobile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New self-contained HopVizModal.vue (Teleport to body): 560px balanced panel, glowing endpoint medallions ringed with EQ segments (ScreensaverRing motif), per-transport accent track with staggered relay markers and an animated packet traveling sender → recipient - Vertical stacked chain below 560px (sender top → recipient bottom, packet travels downward); prefers-reduced-motion disables all loops - Accent colors match the chat transport pills exactly (meshtastic mint, meshcore orange, reticulum blue, lora amber, fips violet, tor indigo) - Tor (3 anonymous relays), FIPS (direct P2P) and unknown-transport shapes preserved, as are SNR/RSSI + E2E/delivery metadata (now glass chips) - Old inline modal markup removed from Mesh.vue; .mesh-hopviz-* rules removed from mesh-styles.css (shared transport-modal classes untouched) Co-Authored-By: Claude Fable 5 --- neode-ui/src/views/Mesh.vue | 68 +--- neode-ui/src/views/mesh/HopVizModal.vue | 438 ++++++++++++++++++++++++ neode-ui/src/views/mesh/mesh-styles.css | 44 +-- 3 files changed, 452 insertions(+), 98 deletions(-) create mode 100644 neode-ui/src/views/mesh/HopVizModal.vue 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). */