feat: Add "Heard X repeats" echo tracking for sent messages

Track how many repeaters heard and forwarded sent channel messages,
similar to the Meshcore mobile app's "Heard X repeats" feature.

- Bridge: Detect GRP_TXT echoes from stdout, track unique paths
- Bridge: New /register_echo and /echo_counts API endpoints
- API: Register messages for echo tracking after send
- API: Merge echo counts into /api/messages response
- Frontend: Display green badge with broadcast icon next to Resend button
- CSS: Echo badge styling with dark mode support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-29 20:57:10 +01:00
parent 1ac76f107d
commit 07040dd6d0
4 changed files with 202 additions and 0 deletions
+26
View File
@@ -1041,3 +1041,29 @@ main {
.scroll-to-bottom-btn:active {
transform: scale(0.95);
}
/* =============================================================================
Echo Badge - "Heard X repeats" indicator for sent messages
============================================================================= */
.echo-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.7rem;
color: #198754;
padding: 0.2rem 0.4rem;
margin-right: 0.25rem;
border-radius: 0.25rem;
background-color: rgba(25, 135, 84, 0.1);
}
.echo-badge i {
font-size: 0.65rem;
}
/* Dark mode support */
[data-bs-theme="dark"] .echo-badge {
color: #75b798;
background-color: rgba(117, 183, 152, 0.15);
}