Skip to main content

Module scenarios

Module scenarios 

Source
Expand description

Grouped, category-based internet usage scenario display.

Replaces the flat usage checklist with a visually grouped TUI showing 14 modern internet scenarios across 5 categories, with capacity bars, simultaneous stream counts, and personalized recommendations.

§Layout

┌──────────────────── USAGE CAPABILITY ────────────────────┐
│  ┌─ COMMUNICATION ─────────────────────────────────┐   │
│  │ 📹 HD Video Calls         8 Mbps  [████████░░] 62× ✅ │
│  └──────────────────────────────────────────────────┘   │
│  ... (4 more categories)                                │
│  ──── SUMMARY ─────────────────────────────────────     │
│  Your 500 Mbps connection supports: ...                 │
│  ⚠️  Recommendation: ...                                │
└──────────────────────────────────────────────────────────┘

Structs§

ScenarioCategory
A category grouping scenarios.
ScenarioStatus
Computed status for a single scenario.
UsageScenario
A single usage scenario with bandwidth requirements.

Enums§

HeadroomLevel
Overall headroom level for exit code determination.

Functions§

all_categories
Get all scenario categories.
compute_all_statuses
Compute status for all scenarios given download speed in Mbps.
format_scenario_grid
Format the full scenario grid output.
print_scenario_grid
Format the scenario output, printing to stderr.
worst_headroom_level
Determine the worst headroom level across all statuses.