Skip to content

v0.2.0

Choose a tag to compare

@taylorwilsdon taylorwilsdon released this 13 Jul 23:56
· 28 commits to main since this release

feat(ui): metrics dashboard, live filtering & bandwidth stats


What’s new

  1. Dashboard metrics row – live counters for total / active / listening connections and aggregate bandwidth.

  2. Optional emojis - toggle with "e" – live counters for total / active / listening connections and aggregate bandwidth.

  3. Search & filter panel – toggle with f or /; supports case-insensitive regex or plain-text fallback.

  4. Sorting shortcuts – s (status) and p (process) cycle through sort modes.

  5. Speed-indicator column – quick visual cue (🔥 / 💤 / ⏳) beside each connection - requires emojis on

  6. Expanded keyboard map – configurable in BASIC_KEYBINDINGS; duplicate quit keys (q, Ctrl-C) and force-refresh (Ctrl-R).

  7. Bandwidth sampler – per-interval Δ from psutil.net_io_counters() rendered in human-readable units.

  8. Styling overhaul (styles.py)

    • Compact header/footer heights

    • Dedicated #metrics_row and #filter_container styles

    • Thicker focus outlines for accessibility

    • Reduced borders on tables for cleaner look

  9. 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 psutil sample and displays “0 B/s” on first render.

  • Debounced refresh (0.5 s) in on_input_changed prevents hammering the table while typing.

  • Status bar retired; window title now shows data source (psutil vs lsof).