Skip to content

fix(map): hardware row missed nodes with string hardware or alt key prefix (#437)#451

Merged
SimmerV merged 2 commits intoMeshAddicts:developfrom
SimmerV:bug-fix
Apr 27, 2026
Merged

fix(map): hardware row missed nodes with string hardware or alt key prefix (#437)#451
SimmerV merged 2 commits intoMeshAddicts:developfrom
SimmerV:bug-fix

Conversation

@SimmerV
Copy link
Copy Markdown
Collaborator

@SimmerV SimmerV commented Apr 27, 2026

Summary

  • Follow-up to Add hardware label to node tile when clicked on in the map #437. The Hardware row hid for the majority of real nodes because the API returns hardware as a string ("31") for ~2200 of ~2800 nodes, and liveNodes can be keyed xxxxxxxx or !xxxxxxxx depending on source — so liveNodes[node.id]?.hardware missed both axes.
  • formatHardwareLabel now accepts string | number, coerces via Number(), and rejects non-finite values before the enum lookup.
  • Live-node lookup tries node.id, !${node.id}, and the un-prefixed form, mirroring the existing pattern at Map.tsx:4763.

@SimmerV SimmerV self-assigned this Apr 27, 2026
@SimmerV SimmerV added this to meshinfo Apr 27, 2026
@SimmerV SimmerV added the bug Something isn't working label Apr 27, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in meshinfo Apr 27, 2026
@SimmerV SimmerV merged commit e371c43 into MeshAddicts:develop Apr 27, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in meshinfo Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant