mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-09 18:23:20 +02:00
Plumb through total neighbor count from radio and expose that in the UI. Closes #310.
This commit is contained in:
@@ -203,7 +203,13 @@ export function NeighborsPane({
|
||||
|
||||
return (
|
||||
<RepeaterPane
|
||||
title="Neighbors"
|
||||
title={
|
||||
!data
|
||||
? 'Neighbors'
|
||||
: data.reported_count != null && data.reported_count !== data.neighbors.length
|
||||
? `Neighbors (${data.neighbors.length} of ${data.reported_count})`
|
||||
: `Neighbors (${data.reported_count ?? data.neighbors.length})`
|
||||
}
|
||||
headerNote={headerNote}
|
||||
state={state}
|
||||
onRefresh={onRefresh}
|
||||
|
||||
@@ -467,6 +467,10 @@ export interface RepeaterStatusResponse {
|
||||
|
||||
export interface RepeaterNeighborsResponse {
|
||||
neighbors: NeighborInfo[];
|
||||
// Total neighbor count reported by the repeater firmware, independent of how many
|
||||
// entries were actually returned. Exceeds neighbors.length when a multi-chunk fetch
|
||||
// is incomplete. Null on older firmware / failed fetches.
|
||||
reported_count?: number | null;
|
||||
}
|
||||
|
||||
export interface RepeaterAclResponse {
|
||||
|
||||
Reference in New Issue
Block a user