UI: Include prefix next to the name of the repeater in the RepeaterNeighborsPane #203

Closed
opened 2026-10-05 02:03:26 +02:00 by adam · 2 comments
Owner

Many of my neighbors have duplicate names, would be useful to see their prefix as well via the NeighbourRepeaterPane.

(I guess I could reboot to forget the old ones. But I'm lazy.)

Example:

Image

Patch:

diff --git a/frontend/src/components/repeater/RepeaterNeighborsPane.tsx b/frontend/src/components/repeater/RepeaterNeighborsPane.tsx
index d6ae6ba..76fd266 100644
--- a/frontend/src/components/repeater/RepeaterNeighborsPane.tsx
+++ b/frontend/src/components/repeater/RepeaterNeighborsPane.tsx
@@ -149,7 +149,7 @@ export function NeighborsPane({
                     n.snr >= 6 ? 'text-success' : n.snr >= 0 ? 'text-warning' : 'text-destructive';
                   return (
                     <tr key={i} className="border-t border-border/50">
-                      <td className="py-1">{n.name || n.pubkey_prefix}</td>
+                      <td className="py-1">{n.name || n.pubkey_prefix} <span className="text-muted-foreground font-mono text-[0.6875rem]">{n.pubkey_prefix.substring(0, 6)}</span></td>
                       <td className={cn('py-1 text-right font-mono', snrColor)}>{snrStr} dB</td>
                       {hasDistances && (
                         <td className="py-1 text-right text-muted-foreground font-mono">

(Tried to copy style, but last time I wrote Javascript it was with jQuery)

Many of my neighbors have duplicate names, would be useful to see their prefix as well via the `NeighbourRepeaterPane`. (I guess I could reboot to forget the old ones. But I'm lazy.) **Example:** <img width="686" height="330" alt="Image" src="https://github.com/user-attachments/assets/a7822187-c326-406f-9997-2974d3960adc" /> **Patch:** ```patch diff --git a/frontend/src/components/repeater/RepeaterNeighborsPane.tsx b/frontend/src/components/repeater/RepeaterNeighborsPane.tsx index d6ae6ba..76fd266 100644 --- a/frontend/src/components/repeater/RepeaterNeighborsPane.tsx +++ b/frontend/src/components/repeater/RepeaterNeighborsPane.tsx @@ -149,7 +149,7 @@ export function NeighborsPane({ n.snr >= 6 ? 'text-success' : n.snr >= 0 ? 'text-warning' : 'text-destructive'; return ( <tr key={i} className="border-t border-border/50"> - <td className="py-1">{n.name || n.pubkey_prefix}</td> + <td className="py-1">{n.name || n.pubkey_prefix} <span className="text-muted-foreground font-mono text-[0.6875rem]">{n.pubkey_prefix.substring(0, 6)}</span></td> <td className={cn('py-1 text-right font-mono', snrColor)}>{snrStr} dB</td> {hasDistances && ( <td className="py-1 text-right text-muted-foreground font-mono"> ``` (Tried to copy style, but last time I wrote Javascript it was with jQuery) <!-- github-sync-id:4595910796 -->
adam closed this issue 2026-10-05 02:03:26 +02:00
Author
Owner

Good idea; thanks!

Good idea; thanks! <!-- github-comment-id:4637357387 -->
Author
Owner

Thankyou, updated and all is good!

Thankyou, updated and all is good! <!-- github-comment-id:4643186494 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Remote-Terminal-for-MeshCore#203