feat(pathanalyzer): chat route click opens the analyzer map deep-linked

Clicking a route in the chat path popup now opens Path Analyzer on the
Map view with that message selected and that exact echo path drawn,
instead of copying the route to the clipboard. Copy stays available as
a small per-route clipboard icon in the popup.

Deep link flow: popup click stores {packet_hash, path hex} in
window.paDeepLink; the modal show handler builds the iframe URL with
?hash=&path=; the analyzer resolves the message after load (widening
the time range once to 7 days if needed), matches the echo by raw path
hex (fallback: shortest), and switches to the map. A plain menu open
still loads the analyzer without any deep link.

Verified live via Playwright: clicked the 3rd (non-shortest) route of a
multi-route message - the map opened with exactly that echo selected,
including the 3-to-7-day widening retry (message was 4 days old).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-07-23 07:10:31 +02:00
parent bb67c4d3ea
commit d8d3427dc9
4 changed files with 121 additions and 11 deletions
+19
View File
@@ -1557,6 +1557,25 @@ main {
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
word-break: break-all;
cursor: pointer;
display: flex;
align-items: flex-start;
gap: 0.4rem;
}
.path-popup .path-route {
flex: 1 1 auto;
min-width: 0;
}
.path-popup .path-copy {
flex: 0 0 auto;
padding: 0.1rem 0.15rem;
opacity: 0.7;
cursor: pointer;
}
.path-popup .path-copy:hover {
opacity: 1;
}
.path-popup .path-entry:active {