Repository navigation
v0.2.0
feat(ui): metrics dashboard, live filtering & bandwidth stats
What’s new
-
Dashboard metrics row – live counters for total / active / listening connections and aggregate bandwidth.
-
Optional emojis - toggle with "e" – live counters for total / active / listening connections and aggregate bandwidth.
-
Search & filter panel – toggle with
for/; supports case-insensitive regex or plain-text fallback. -
Sorting shortcuts –
s(status) andp(process) cycle through sort modes. -
Speed-indicator column – quick visual cue (🔥 / 💤 / ⏳) beside each connection - requires emojis on
-
Expanded keyboard map – configurable in
BASIC_KEYBINDINGS; duplicate quit keys (q,Ctrl-C) and force-refresh (Ctrl-R). -
Bandwidth sampler – per-interval Δ from
psutil.net_io_counters()rendered in human-readable units. -
Styling overhaul (
styles.py)-
Compact header/footer heights
-
Dedicated
#metrics_rowand#filter_containerstyles -
Thicker focus outlines for accessibility
-
Reduced borders on tables for cleaner look
-
-
Docstring & help copy – energetic tone and emoji-rich descriptions.
Rationale
-
Operators asked for an “at-a-glance” dashboard and quicker triage of noisy connection lists (issue #42).
-
Power users requested Vim-style
/search and single-key sorts (issue #45).
Implementation notes
-
Reactive state (
total_connections,show_filter,sort_mode) drives UI updates without tearing. -
Bandwidth calc caches the previous
psutilsample and displays “0 B/s” on first render. -
Debounced refresh (0.5 s) in
on_input_changedprevents hammering the table while typing. -
Status bar retired; window title now shows data source (
psutilvslsof).