meshmonitor icon indicating copy to clipboard operation
meshmonitor copied to clipboard

[FEAT] - 4.15.x - MT Nodes list more colorful ...

Open kokoshell opened this issue 3 months ago • 3 comments

Hi Yeraze,

Since almost everyone uses/preffers the default Dark Theme is it possible to make the Nodes List more ...colorful , for both Map/Messages dashboards ? All node boxes look dull and hard to distinguish ... Maybe more vivid colors for Direct/Preffered nodes and pale/faded for multi hops ..? For the Messages dashboard node box: the bottom-down right baloon shows last message time but as you see most of the nodes stay to zero ... so better put time of last received packet ?

Best regards, Kokoshell

Image

kokoshell avatar Aug 22 '26 16:08 kokoshell

Thanks for the report, @kokoshell!

Duplicate check: Searched open and closed issues (node coloring, hop/role coloring, theme tokens, last-heard timestamps) — nothing matches this combination closely enough to call it a duplicate. Closest related-but-distinct issues: #4381 (role-based coloring in traceroute display, closed) and #4567 (semantic theme tokens, closed) — neither covers node-card vividness-by-hop or the stale "last message time" badge.

Classification: Feature Request (two sub-asks bundled together).

I dug into the code to scope this out:

1. "Last message time" badge showing zero — root cause found, easy fix

The badge in the bottom-right of each Messages-dashboard node box (src/components/MessagesTab.tsx:1268-1285) reads node.lastMessageTime, a client-computed field built purely from direct-message history (MessagesTab.tsx:938-960) — it defaults to 0 for any node you haven't exchanged a DM with, which is exactly why most nodes show it blank/zero.

There's already a proper "last heard via any packet" field on every node — lastHeard (unix seconds, backed by a real DB column, documented at src/types/device.ts:70,92-95) — and it's already used elsewhere on the very same screen (MessagesTab.tsx:1388-1390, node detail panel). Swapping the badge to display lastHeard instead of lastMessageTime (and likely relabeling it "Last Heard" for clarity) is a small, self-contained, low-risk fix — no schema or API changes needed.

2. More vivid/faded node coloring by hop distance & favorite status — design work

No hop- or favorite-based color/opacity styling currently exists anywhere on node cards (checked the Map's NodeCard.tsx/nodeCardModel.ts and the Messages dashboard's node-item markup + src/styles/nodes.css). The only precedent is a fixed opacity on the favorite star icon itself, not the card.

Proposed approach:

  • A graduated opacity/saturation fade keyed on hopsAway — 0-hop (direct) at full vividness, fading progressively (with a readability floor, e.g. never below ~50% opacity) for each additional hop.
  • A distinct accent highlight for favorited nodes, independent of the hop fade, so favorites stay visually prominent even when several hops out.
  • Applied to both the Map popup card and the Messages dashboard node box, via a new CSS module (per repo convention, the legacy global nodes.css is frozen for new rules) layered on the existing Catppuccin theme tokens so custom themes still work.
  • No mesh/airtime impact — this is presentation-only, no new packets or timers.

Before I turn this into an implementation plan, a few open questions:

  1. Hop-based fade, favorite-based highlight, or both as proposed?
  2. Fixed hop tiers (e.g. 0/1/2/3+) or a smooth continuous fade?
  3. Dark theme only, or should it apply consistently across all themes (incl. custom user themes)?

Per our workflow, I'll pause here for feedback/confirmation before implementing anything further.

-- Authored by Roger 🤓


Generated by Claude Code

Yeraze avatar Aug 22 '26 16:08 Yeraze

  1. Direct + Favorites nodes = vivid alternating colors; ! Careful to maintain good contrast with box TEXT color/visibility when node is selected/highlighted !
  2. fixed hop tiers
  3. A check box titled "Enable node boxes coloring" under "Appearance Mode" would be enough (see below photo). If box is unchecked we get the non coloring mode existent now as we dont want to irritate existing users.
Image

kokoshell avatar Aug 22 '26 17:08 kokoshell

If this gets implemented we should probably use the same colors for each node that the apps (Android, iOS) use for consistency. The way that works is you take the last 6 digits of the nodeID (hex) and use that as the node specific color code.

madeofstown avatar Aug 25 '26 13:08 madeofstown