Skip to content

[PDF Report] Mesh node client count now includes offline clients (semantic drift) #1121

Description

@AustinChangLinksys

Follow-up from PR #1068 review (@PeterJhongLinksys). Non-blocking / minor.

usp_pdf_service._buildMeshTopology now prints n.connectedClients.length for each node's client count, but the legacy NodeUIModel.connectedDeviceCount was active-only. connectedClients includes both online and offline clients, so the PDF report's per-node client count now over-reports vs the pre-migration behavior.

File: lib/page/_shared/services/usp_pdf_service.dart (~L865, in _buildMeshTopology)

Impact: minor/cosmetic — the PDF node table shows a larger client count than before (offline clients included). No functional effect.

Suggested fix: count only active clients to match legacy semantics, e.g. n.connectedClients.where((c) => c.isActive).length (or decide the online+offline count is actually desired and document it).

Split out of PR #1068 review (non-blocking follow-up).

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.xLabeled for 2.x versionrefactorBehavior-preserving cleanup / tech-debt (Sweeper mode)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions