towerops/lib/towerops_web/live
Graham McIntire 3a408a8dc1 Security hardening + performance fixes across codebase
CRITICAL:
- Membership: remove :role/:org_id/:user_id from mass-assignment cast; use explicit create_changeset/4 and role_update_changeset/2
- GraphQL member resolver: add authorize_invite/3 checking admin/owner role and role hierarchy
- REST invitations controller: add auth check for invite creation

HIGH:
- ApiToken: remove :organization_id/:user_id from cast; use explicit create_changeset/4

MEDIUM:
- Move 8 LiveView Ecto queries into context modules (Admin, Alerts, Coverages, OnCall, Snmp)
- Replace Process.put/Process.get with socket assigns for unresolved_alert_count (user_auth + layouts + 50 templates)
- Add batch get_utilization_for_interfaces/1 to eliminate N+1 capacity queries in device show
- Replace Process.sleep with Process.monitor/assert_receive or Process.send_after in 5 test files

LOW:
- Add handle_params/3 to UserResetPasswordLive, UserRegistrationLive, StatusPageLive
- Remove redundant Repo.preload calls; add preloads to list_site_devices/1
- Fix @impl annotations and credo nesting warnings
2026-06-21 17:40:50 -05:00
..
account_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
admin Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
agent_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
alert_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
check_live credo fixes 2026-06-14 08:27:57 -05:00
components credo fixes 2026-06-14 08:27:57 -05:00
coverage_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
device_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
escalation_policy_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
graph_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
help_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
helpers Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
insights_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
maintenance_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
map_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
mikrotik_backup_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
org Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
org_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
schedule_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
site_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
trace_live Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
user_settings_live fix: remaining bugs.md findings — Repo calls, process dict, CSS, rate limits, Oban, debug route 2026-05-11 19:34:18 -05:00
activity_feed_live.ex fix: 10 high-severity bugs from code audit (H1-H5, H14-H16, H27, H30) 2026-05-12 10:55:01 -05:00
activity_feed_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
changelog_live.ex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
config_timeline_live.ex credo fixes 2026-06-14 08:27:57 -05:00
dashboard_live.ex credo fixes 2026-06-14 08:27:57 -05:00
dashboard_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
mobile_qr_live.ex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
network_map_live.ex feat: WISP-tuned network map enhancements (TOW-16) 2026-03-15 14:06:06 -05:00
network_map_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
onboarding_live.ex tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
onboarding_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
reports_live.ex fix: 5 more high-severity bugs (H6, H8, H17, H18) 2026-05-12 11:04:31 -05:00
reports_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
rf_link_health_live.ex tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
rf_link_health_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
status_page_live.ex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
status_page_live.html.heex fix: make sidebar sticky with header and resolve all credo issues (#32) 2026-03-15 18:19:09 -05:00
user_registration_live.ex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
user_reset_password_live.ex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
user_settings_live.ex credo fixes 2026-06-14 08:27:57 -05:00
user_settings_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
weathermap_live.ex dialyzer: fix all unmatched_return warnings (154 → 0) 2026-04-21 10:03:55 -05:00
weathermap_live.html.heex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00