Message paths: hold the fan's shape still across the selection

The dialog ranked layers by selection (priority 3 for the picked path, 2 for the
rest), so every ↑↓ re-elected the spine and re-laid the whole graph out. Rank by
first-heard order instead and move `emphasis`, the way the node detail's Routes
tab already does — the geometry is fixed by evidence, only the white lane moves.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Opus 5 committed 2026-07-26 18:12:46 -04:00
1 parent 18b1e034fd
commit 8fdd7572bd
2 files changed
+30 -2

No files matched your search

+9 -2
View File
@@ -278,15 +278,22 @@ class MessagePathsScreen(Screen):
(:func:`~meshterm.ui.widgets.route_graph_style`): endpoints named, relays their
own map marker where the type is known, each labelled by its first hash byte in
the node's own hue.
Layout rank is fixed by first-heard order (the first path heard is always the spine),
exactly as the node detail's Routes tab fixes it by evidence order, so the fan's
geometry holds still as ↑↓ walk the arrivals — only the emphasis (which lane draws
white and on top) follows the pick.
"""
selected = self._arrivals[self._index].hops
paths = self._paths()
layers = [
PathLayer(
hops=path,
color=_EDGE_SELECTED if path == selected else _EDGE_UNUSED,
priority=3 if path == selected else 2,
priority=len(paths) - i,
emphasis=1 if path == selected else 0,
)
for path in self._paths()
for i, path in enumerate(paths)
]
glyph_of, label_of, label_rgb_of = route_graph_style(
resolve=self._resolve, self_name=self._self_name, source=self._source,