Skip to content

fix(nodes): connected nodes points to new boards on the bus instead of saying none are reported - #164

Merged
mottihoresh merged 2 commits into
fix/parkedfrom
fix/p160-new-boards-line
Oct 18, 2026
Merged

mottihoresh merged 2 commits into
fix/parkedfrom
fix/p160-new-boards-line

Conversation

@mottihoresh

Copy link
Copy Markdown
Contributor

What

Connection › Connected nodes said "No nodes reported. Power on a PanelGroup." while a board not yet added to the cockpit was on the bus and reporting. With no board of your cockpit to count, the card now says where the new ones are:

  • 1 board: "1 new board on the bus — add it from the Cockpit."
  • 2+ boards: "2 new boards on the bus — add them from the Cockpit."
  • "No nodes reported. Power on a PanelGroup." only when the bus reports nothing (none on it, or none identified yet).

When cockpit boards exist the card is unchanged.

How

  • src/shared/nodes/ipc.ts — NodesSummary gains newCount and empty (the card's line when known is 0); NO_NODES constant used by COCKPIT_IDLE and main.
  • src/main/nodes/cockpit-snapshot/summaries.ts — nodesSummary takes newCount from newDevices(views, live) (the Overview notice's count; the same isReportableNew rule as the Cockpit's "New on the bus · N"), and emptyLine builds the sentence in main, like the card's footer.
  • src/renderer/src/nodes/NodesCard.tsx — the existing hint shows sum.empty instead of the hard-coded text. No layout or styling change.

Tests changed on purpose

  • src/main/nodes/cockpit-snapshot/connection-summary.test.ts — new nodesSummary with no board of your cockpit (#160): 1 / 2 new boards → count + wording; empty bus and a board still identifying → "No nodes reported…".
  • src/renderer/test/t5-connection-nodes-card.test.tsx — new case via emitScenario: empty bus → old line; 1 and 2 new boards → new lines; board added → normal card.

All three new tests fail on the old code. npm run lint, lint:deps, typecheck, npm test (1464) pass.

Closes #160

…f saying none are reported

With no board of your cockpit to count, Connection › Connected nodes said "No nodes reported.
Power on a PanelGroup." even while a board not added yet was on the bus and reporting.

Main now carries the new-board count in NodesSummary (newCount, the Overview notice's count, the
same isReportableNew rule as the Cockpit's "New on the bus") and builds the card's line (empty):
"1 new board on the bus — add it from the Cockpit." / "2 new boards on the bus — add them from
the Cockpit.", else the old line. The renderer only shows it in the existing hint.

Closes #160
@mottihoresh
mottihoresh merged commit 09b948a into fix/parked Oct 18, 2026
3 checks passed
@mottihoresh
mottihoresh deleted the fix/p160-new-boards-line branch October 18, 2026 02:20
mottihoresh added a commit that referenced this pull request Oct 18, 2026
…s, paused log keeps rows, can state reads ok (#167)

The four parked items kept from the fix track (#135), prioritized
2026-10-18. Item PRs squash-merged into `fix/parked`:
- #163 — a healthy CAN state reads "OK" instead of "error-active".
- #164 — Connection › Connected nodes says "N new board(s) on the bus —
add it/them from the Cockpit." when boards are on the bus but none is in
your cockpit, instead of "No nodes reported".
- #165 — Start with no Gateway (Bridge, or Replay driving the board)
starts and waits for the board with the waiting reason shown, instead of
being silently refused; delivery begins when the Gateway connects.
- #166 — Log › Stream holds rows that arrive while paused and shows them
on Resume (within the row cap), like Events.

Closes #159
Closes #160
Closes #161
Closes #162

BEGIN_COMMIT_OVERRIDE
fix(nodes): healthy CAN state reads "OK" instead of error-active
fix(nodes): connected nodes points to new boards on the bus instead of
saying none are reported
fix(dcs): start with no gateway starts and waits for the board instead
of being refused
fix(log): the stream keeps rows that arrive while paused and shows them
on resume
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant