mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-11-11 21:57:34 +00:00
## Summary The map route deep link (`#/map?packet=<hash>[&obs=<id>]`) always opened in the canonical-path view. Two optional query params now choose the path picker's starting view, so a shared link shows exactly what the sender meant. | Param | Effect | |---|---| | `paths=all` | Opens the picker's **All** view (every unique path), the same as clicking **All** | | `observer=<pubkey>` | Full public key or a hex prefix of 8+ characters, case-insensitive. Picks that observer's **earliest** observation (by timestamp, then id), makes it the canonical route and isolates its path row, the same as clicking the row. "Back to packet" then links to that observation. | Examples: ``` #/map?packet=974ad4ecefbe3761&paths=all #/map?packet=974ad4ecefbe3761&observer=a1b2c3d4 ``` When params are combined, `obs=` wins over `observer=`, and `observer=` wins over `paths=all`. An unknown or malformed observer falls back to the current default view and logs a console warning. ## Changes - `public/route-view-utils.js`: two new pure helpers. - `resolveDeepLinkObservation(observations, params)` picks the observation and the initial view. - `pathGroupKey(rawHops, filterHops)` is the path picker's grouping key. It was written out twice in `route-view.js` and now lives in one place, which keeps the deep link and the picker rows in sync. - `public/map.js`: `loadRouteFromDeepLink` uses the helper and passes `initialPathView` through `drawPacketRouteMulti` to the renderer. - `public/route-view.js`: the picker count and rows use `pathGroupKey`. `sidebar._applyPathView` applies the view through the existing All and row click handlers, in the frame after the route's initial fit. ## Performance This doesn't touch a hot path. The work is one pass over a single packet's observations (tens at most) plus a scan of the picker rows, and it runs once per deep-link load. It adds no API calls. ## Config / customizer No new configurable values. ## Tests - New unit suite `tests/unit/test-map-deeplink-path-params.js` (29 checks). It covers prefix vs full key, case, short/non-hex keys, earliest-observation choice with tie-break, the precedence rules, `pathGroupKey`, and the source wiring. - `tests/unit/test-issue-1633-hide-1byte-hops.js` replayed a copy of the key logic. It now tests the real `pathGroupKey`. - New Playwright suite `tests/e2e/test-map-deeplink-path-params-e2e.js` (5 checks) on the seeded #1486 packet. It's registered in `scripts/non-unit-tests.json` and CI shard 3. With the `route-view.js` change removed, 3 of its 5 checks fail. - Local runs against the CI-prepared fixture: `test-all.sh` passes. Route-map a11y E2E 20/20, map mobile E2E 3/3, `test-e2e-playwright.js` 149/152 (3 skipped by the fixture, 0 failed). ## Browser validation Checked in a browser against a local server, using a scratch copy of the fixture that gives the seeded packet multi-hop paths through real GPS nodes. One observer had two observations, and the API listed the later one first. - `observer=<prefix>` picked that observer's earliest observation and drew only its path, with numbered markers and the map fitted to it. - `paths=all` drew the same picture as clicking **All** by hand.
236 lines
11 KiB
Bash
Executable File
236 lines
11 KiB
Bash
Executable File
#!/bin/sh
|
|
# Authoritative standalone frontend test list for local runs and CI.
|
|
# Every suite in tests/unit is listed here; every suite in tests/e2e is classified
|
|
# in scripts/non-unit-tests.json.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
node tests/unit/test-test-inventory.js
|
|
node tests/unit/test-manage-workflow.js
|
|
node tests/unit/test-1108-region-hide-nodes.js
|
|
node tests/unit/test-1659-analytics-warmup.js
|
|
node tests/unit/test-a11y-1705-subpath-hop-prefix-e2e.js
|
|
node tests/unit/test-a11y-1715-dark-role-swatches.js
|
|
node tests/unit/test-a11y-1716-rf-range-btn-active.js
|
|
node tests/unit/test-a11y-1719-contrast-root-causes-e2e.js
|
|
node tests/unit/test-a11y-1996-scope-audit-chips.js
|
|
node tests/unit/test-a11y-axe-1668-selftest.js
|
|
node tests/unit/test-a11y-axe-routes-coverage.js
|
|
node tests/unit/test-admin-dashboard-ui.js
|
|
node tests/unit/test-aging.js
|
|
node tests/unit/test-analytics-channels-integration.js
|
|
node tests/unit/test-anl1-tooltip-render.js
|
|
node tests/unit/test-area-filter.js
|
|
node tests/unit/test-channel-color-picker.js
|
|
node tests/unit/test-channel-colors.js
|
|
node tests/unit/test-channel-decrypt-ecb.js
|
|
node tests/unit/test-channel-decrypt-insecure-context.js
|
|
node tests/unit/test-channel-decrypt-m345.js
|
|
node tests/unit/test-channel-fluid-layout.js
|
|
node tests/unit/test-channel-issue-1087.js
|
|
node tests/unit/test-channel-issue-1101.js
|
|
node tests/unit/test-channel-live-decrypt-userprefix.js
|
|
node tests/unit/test-channel-live-decrypt.js
|
|
node tests/unit/test-channel-modal-ux.js
|
|
node tests/unit/test-channel-proposals-ui.js
|
|
node tests/unit/test-channel-psk-ux.js
|
|
node tests/unit/test-channel-qr-wiring.js
|
|
node tests/unit/test-channel-qr.js
|
|
node tests/unit/test-channel-sidebar-layout.js
|
|
node tests/unit/test-channel-ux-followup.js
|
|
node tests/unit/test-channel-ux-round2.js
|
|
node tests/unit/test-channels-approved-ui.js
|
|
node tests/unit/test-channels-merge-1498-unit.js
|
|
node tests/unit/test-clear-filters.js
|
|
node tests/unit/test-color-picker-ux.js
|
|
node tests/unit/test-compare-flood-filter.js
|
|
node tests/unit/test-compare-overlap.js
|
|
node tests/unit/test-confidence-indicator.js
|
|
node tests/unit/test-coverage-gate.js
|
|
node tests/unit/test-customizer-v2.js
|
|
node tests/unit/test-dockerfile-buildplatform.js
|
|
node tests/unit/test-drag-manager.js
|
|
node tests/unit/test-e2e-coverage.js
|
|
node tests/unit/test-direct-rf-heard-by.js
|
|
node tests/unit/test-embed-mode-1369.js
|
|
node tests/unit/test-theme-url-param-2236.js
|
|
node tests/unit/test-fetch-all-nodes-pagination.js
|
|
node tests/unit/test-fluid-scaffolding.js
|
|
node tests/unit/test-frontend-helpers.js
|
|
node tests/unit/test-geofilter-draft.js
|
|
node tests/unit/test-hash-color.js
|
|
node tests/unit/test-health-status.js
|
|
node tests/unit/test-hop-path-detail.js
|
|
node tests/unit/test-hop-path-inference.js
|
|
node tests/unit/test-hop-resolver-affinity.js
|
|
node tests/unit/test-issue-1065-gesture-hints-gates.js
|
|
node tests/unit/test-issue-1107-live-layout.js
|
|
node tests/unit/test-issue-1136-observer-iata-map.js
|
|
node tests/unit/test-issue-1166-first-seen-column.js
|
|
node tests/unit/test-issue-1189-composed-cell.js
|
|
node tests/unit/test-issue-1189-live-iata-badge.js
|
|
node tests/unit/test-issue-1279-p2-code-filter.js
|
|
node tests/unit/test-issue-1293-marker-shapes.js
|
|
node tests/unit/test-issue-1356-map-a11y.js
|
|
node tests/unit/test-issue-1360-pill-letter-count.js
|
|
node tests/unit/test-issue-1361-cb-presets.js
|
|
node tests/unit/test-issue-1364-pill-no-clamp.js
|
|
node tests/unit/test-issue-1375-scope-stats-fetch.js
|
|
node tests/unit/test-issue-1380-cb-reset-button.js
|
|
node tests/unit/test-issue-1380-cb-sim-overlay.js
|
|
node tests/unit/test-issue-1407-cb-preset-propagation.js
|
|
node tests/unit/test-issue-1409-no-encrypted-flood.js
|
|
node tests/unit/test-issue-1412-customizer-no-override.js
|
|
node tests/unit/test-issue-1415-packets-layout.js
|
|
node tests/unit/test-issue-1418-cb-preset-ramp.js
|
|
node tests/unit/test-issue-1418-deeplink-hops-channels.js
|
|
node tests/unit/test-map-deeplink-path-params.js
|
|
node tests/unit/test-issue-1418-edge-weights.js
|
|
node tests/unit/test-issue-1418-polish-review.js
|
|
node tests/unit/test-issue-1418-raw-hex-extraction.js
|
|
node tests/unit/test-issue-1418-spider-fan.js
|
|
node tests/unit/test-issue-1420-tile-providers.js
|
|
node tests/unit/test-issue-1438-customizer-mcrole.js
|
|
node tests/unit/test-issue-1438-marker-css-vars.js
|
|
node tests/unit/test-issue-1446-cb-preset-cascade.js
|
|
node tests/unit/test-issue-1450-logo-aspect.js
|
|
node tests/unit/test-issue-1454-channels-toggle.js
|
|
node tests/unit/test-issue-1456-score-labels.js
|
|
node tests/unit/test-issue-1461-mobile-page-actions.js
|
|
node tests/unit/test-issue-1470-card-bg-contrast.js
|
|
node tests/unit/test-issue-1470-node-tile-helper.js
|
|
node tests/unit/test-issue-1473-prefix-generator.js
|
|
node tests/unit/test-issue-1473-reserved-prefixes.js
|
|
node tests/unit/test-issue-1485-live-anim-z.js
|
|
node tests/unit/test-issue-1488-marker-stroke-vars.js
|
|
node tests/unit/test-issue-1496-reset-all-complete.js
|
|
node tests/unit/test-issue-1509-detect-preset.js
|
|
node tests/unit/test-issue-1509-nav-active-bg.js
|
|
node tests/unit/test-issue-1518-home-url.js
|
|
node tests/unit/test-issue-1532-live-fullscreen.js
|
|
node tests/unit/test-issue-1562-observers-summary.js
|
|
node tests/unit/test-issue-748-node-analytics-coverage.js
|
|
node tests/unit/test-node-analytics-certain-timeline.js
|
|
node tests/unit/test-issue-661-observer-airtime.js
|
|
node tests/unit/test-issue-1268-rf-params.js
|
|
node tests/unit/test-issue-1563-aggregate-and-inflight.js
|
|
node tests/unit/test-issue-1574-live-map-max-nodes.js
|
|
node tests/unit/test-issue-1606-pagination.js
|
|
node tests/unit/test-issue-1614-tile-url-function.js
|
|
node tests/unit/test-issue-1619-feed-detail-card-draggable.js
|
|
node tests/unit/test-issue-1633-hide-1byte-hops.js
|
|
node tests/unit/test-issue-1644-redesign.js
|
|
node tests/unit/test-issue-1646-compare-polish.js
|
|
node tests/unit/test-issue-1648-followup-phosphor-leaks.js
|
|
node tests/unit/test-issue-1648-m1-emoji-scan.js
|
|
node tests/unit/test-issue-1648-m2-emoji-scan.js
|
|
node tests/unit/test-issue-1648-m3-emoji-scan.js
|
|
node tests/unit/test-issue-1648-m4-emoji-scan.js
|
|
node tests/unit/test-issue-1648-m5-emoji-scan.js
|
|
node tests/unit/test-issue-1648-m6-final-sweep.js
|
|
node tests/unit/test-issue-1648-m6-lint-self.js
|
|
node tests/unit/test-issue-1668-m2-contrast.js
|
|
node tests/unit/test-issue-1668-m3-typography.js
|
|
node tests/unit/test-issue-1668-m4-per-route.js
|
|
node tests/unit/test-issue-1697-mqtt-mobile-e2e.js
|
|
node tests/unit/test-issue-1699-retransmission-chart.js
|
|
node tests/unit/test-issue-2193-packets-per-hour.js
|
|
node tests/unit/test-analytics-theme-refresh-before-data.js
|
|
node tests/unit/test-issue-1705-subpath-contrast.js
|
|
node tests/unit/test-issue-1753-copy-url-slash.js
|
|
node tests/unit/test-issue-1770-mobile-row-clamp.js
|
|
node tests/unit/test-issue-1789-observer-firmware-cols.js
|
|
node tests/unit/test-issue-1825-observer-node-cross-links.js
|
|
node tests/unit/test-issue-1833-legend-toggle-vcr-offset.js
|
|
node tests/unit/test-issue-1836-crossnav-case-normalization.js
|
|
node tests/unit/test-issue-1843-node-qr-quiet-zone.js
|
|
node tests/unit/test-issue-1846-observers-width.js
|
|
node tests/unit/test-issue-1849-trace-hashbytes.js
|
|
node tests/unit/test-hb-column-header-route.js
|
|
node tests/unit/test-issue-1851-channel-message-scope.js
|
|
node tests/unit/test-issue-1862-map-region-filter.js
|
|
node tests/unit/test-issue-1868-control-decode.js
|
|
node tests/unit/test-packet-detail-channel-escape.js
|
|
node tests/unit/test-packet-detail-hash-size.js
|
|
node tests/unit/test-issue-1890-og-url.js
|
|
node tests/unit/test-issue-1956-release-routing.js
|
|
node tests/unit/test-issue-1979-scope-adverts-by-role.js
|
|
node tests/unit/test-issue-1997-distance-building.js
|
|
node tests/unit/test-issue-2042-recent-adverts-label.js
|
|
node tests/unit/test-issue-2001-map-scope-state.js
|
|
node tests/unit/test-issue-2012-clear-filters-selection.js
|
|
node tests/unit/test-issue-2095-channels-client-state.js
|
|
node tests/unit/test-issue-2097-hop-ambiguity-badge.js
|
|
node tests/unit/test-issue-2098-last-hop-region.js
|
|
node tests/unit/test-issue-2206-hop-count.js
|
|
node tests/unit/test-issue-2206-payload-badge.js
|
|
node tests/unit/test-issue-2200-analytics-stale-load.js
|
|
node tests/unit/test-issue-2218-node-analytics-stale-render.js
|
|
node tests/unit/test-issue-2230-account-stale-render.js
|
|
node tests/unit/test-live-anims.js
|
|
node tests/unit/test-live-dt-cap-1524.js
|
|
node tests/unit/test-live-legend-helper.js
|
|
node tests/unit/test-live-multibyte-filter.js
|
|
node tests/unit/test-live-region-filter.js
|
|
node tests/unit/test-live.js
|
|
node tests/unit/test-map-clustering.js
|
|
node tests/unit/test-map-estimated.js
|
|
node tests/unit/test-mqtt-status-panel.js
|
|
node tests/unit/test-my-repeaters-dashboard.js
|
|
node tests/unit/test-naive-banner-tone.js
|
|
node tests/unit/test-nav-stats-throttle.js
|
|
node tests/unit/test-node-hop-analytics.js
|
|
node tests/unit/test-node-reach-coverage-debounce.js
|
|
node tests/unit/test-node-reach-coverage.js
|
|
node tests/unit/test-nodes-export-wiring.js
|
|
node tests/unit/test-nav-drawer-version-footer.js
|
|
node tests/unit/test-nodes-export.js
|
|
node tests/unit/test-notifications-ui.js
|
|
node tests/unit/test-observer-iata-1188.js
|
|
node tests/unit/test-observer-menu-interactions.js
|
|
node tests/unit/test-observer-naive-clock-1478.js
|
|
node tests/unit/test-observer-detail-ownership.js
|
|
node tests/unit/test-observer-search-filter.js
|
|
node tests/unit/test-observers-headings.js
|
|
node tests/unit/test-packet-filter-time.js
|
|
node tests/unit/test-packet-filter-ux.js
|
|
node tests/unit/test-packet-filter.js
|
|
node tests/unit/test-packets-local-channels.js
|
|
node tests/unit/test-packets-live-channel-filter.js
|
|
node tests/unit/test-packets.js
|
|
node tests/unit/test-panel-corner.js
|
|
node tests/unit/test-path-inspector.js
|
|
node tests/unit/test-payload-labels-content.js
|
|
node tests/unit/test-payload-labels-namespace.js
|
|
node tests/unit/test-payload-labels-surfaces.js
|
|
node tests/unit/test-perf-anomaly.js
|
|
node tests/unit/test-perf-disk-io-1120.js
|
|
node tests/unit/test-perf-go-runtime.js
|
|
node tests/unit/test-perf-render-1258.js
|
|
node tests/unit/test-preflight-xss-gate.js
|
|
node tests/unit/test-pull-to-reconnect-1091.js
|
|
node tests/unit/test-pull-to-reconnect.js
|
|
node tests/unit/test-region-filter-setselected.js
|
|
node tests/unit/test-region-filter-url-param.js
|
|
node tests/unit/test-repeater-metric-scatter.js
|
|
node tests/unit/test-reported-nodes.js
|
|
node tests/unit/test-rx-coverage-config-race.js
|
|
node tests/unit/test-rx-coverage-mine.js
|
|
node tests/unit/test-rx-coverage-escape.js
|
|
node tests/unit/test-rx-coverage-noise.js
|
|
node tests/unit/test-rx-coverage-viewport.js
|
|
node tests/unit/test-scope-audit-styles-linked.js
|
|
node tests/unit/test-settings-sync.js
|
|
node tests/unit/test-slideover-1056-rowsel-strict.js
|
|
node tests/unit/test-top-routes-overlay.js
|
|
node tests/unit/test-traces.js
|
|
node tests/unit/test-url-state.js
|
|
node tests/unit/test-user-management-ui.js
|
|
node tests/unit/test-vendored-libs.js
|
|
node tests/unit/test-observer-neighbors.js
|
|
node tests/unit/test-warmup-banner.js
|
|
node tests/unit/test-ws-stale-watchdog-1074.js
|
|
node tests/unit/test-xss-escape-sinks.js
|
|
|
|
echo "All standalone frontend suites passed"
|