- Refactor check_threshold_violation: extract threshold checks into separate functions (complexity 10→~3) - Refactor load_sensor_chart_data: extract helper functions to reduce nesting - Refactor save_equipment: extract SNMP discovery logic into helpers - Refactor poll_sensors: extract error handling and result processing - Refactor handle_status_change: extract equipment down/up handlers - Refactor mount_current_scope: extract session scope building - Refactor load_traffic_chart_data: extract aggregation and calculation helpers - Refactor load_overall_traffic_chart_data: similar pattern to traffic chart - Refactor load_sensor_chart_data in equipment_live/show: extract dataset builders - Refactor discover_storage_sensors: extract storage sensor building - Refactor perform_poll: extract device polling logic into separate functions All 254 tests passing. Credo reports no issues. |
||
|---|---|---|
| .. | ||
| admin | ||
| alert_live | ||
| equipment_live | ||
| graph_live | ||
| org_live | ||
| site_live | ||
| dashboard_live.ex | ||
| dashboard_live.html.heex | ||