prop/test/microwaveprop_web/live
Graham McIntire 0c3be97abb
Some checks failed
Build base image / Build and push base image (push) Successful in 3m10s
Build and Push / Build and Push Docker Image (push) Failing after 14s
Build prop-grid-rs / Test, build, push (push) Successful in 12m52s
fix: resolve 27 security, architecture, test, and performance audit findings
P0 (security-critical):
- Gate CSV/ADIF upload tabs behind authentication, add 30s cooldown to all upload handlers
- Cap CSV/ADIF imports at 2,000 rows server-side in both parsers
- Add submitter_verified boolean to contacts (client-cannot-set, anonymous=false)
- Create k8s/secret.example.yaml with placeholders, add LIVE_VIEW_SIGNING_SALT

P1 (high-priority):
- Add Mox.verify_on_exit!() to valkey_test.exs
- Replace DateTime.utc_now() truncation with static ~U literals in map_live_test.exs
- Replace Process.sleep with render_async in pskr_spots_live_test.exs (6 occurrences)
- Add MonitorLive.Show test coverage (4 tests: owner view, non-owner redirect, config success/error)
- Extract duct-detection and mechanism-classification logic from ContactLive.Show into Propagation.PathAnalysis
- Split ContactLive.Show render into 12 function components
- Update CLAUDE.md: remove stale ML model, mark HRDPS active, add backtest/pskr dirs
- Batch CSV import enrichment jobs via new enqueue_for_contacts/1

P2 (medium-priority):
- Set secure:true on session and remember-me cookies in production
- Change SMTP TLS from verify_none to verify_peer with public_key cacerts
- Make /metrics fail-closed in production when PROMETHEUS_AUTH_TOKEN unset
- Add RateLimiter (anon_limit:10, auth_limit:60) to /api/contacts/map
- Add content-security-policy-report-only header
- Add comment noting String.to_atom is compile-time safe in hrdps_client.ex
- Delegate duplicated haversine_km to canonical Microwaveprop.Geo.haversine_km/4
- Consolidate score-tier/color/verdict formatting into Microwaveprop.Format
- Update CLAUDE.md testing section to match actual raw-string-matching practice
- Batch HrrrPointEnqueuer Repo.insert_all calls to single round-trip
- Split weather.ex (1696→216 lines) and radio.ex (1285→54 lines) into purpose-based sub-facades

P3 (low-priority):
- Add LIVE_VIEW_SIGNING_SALT warning comment, extend filter_parameters
- Add host/community validation to snmp_client.ex
- Add raw/1 safety comment in algo_live.ex
- Add hex-audit and cargo-audit Makefile targets
- Add privacy_live smoke test
- Replace notify_listener busy-poll loop with Process.monitor/1 + assert_receive
- Add ContactCommonVolumeRadar changeset validation tests (5 tests)
2026-07-27 18:19:37 -05:00
..
admin feat(admin): beacon monitor reassign, token regen, assigned_by display, user monitor management 2026-07-22 16:27:21 -05:00
contact_live fix: repair 18 failing tests (atom naming + stale assertions) 2026-07-08 11:10:29 -05:00
monitor_live fix: resolve 27 security, architecture, test, and performance audit findings 2026-07-27 18:19:37 -05:00
rover_locations_live fix: resolve 7 pre-existing test failures and ScoreCache DateTime bug 2026-06-10 13:50:24 -05:00
rover_planning_live test: bump coverage 80% -> 81.3% via more LiveView + module tests 2026-05-08 09:10:34 -05:00
about_live_test.exs Add test coverage for Mailer and AboutLive 2026-05-29 17:56:03 -05:00
algo_live_test.exs Show topbar loading indicator while scores are loading 2026-03-31 09:30:20 -05:00
api_docs_live_test.exs feat(docs/api): protocol-style two-pane API reference layout 2026-05-10 11:06:29 -05:00
beacon_live_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
contact_map_live_test.exs feat(rover-planning): /rover-planning page with path-profile worker 2026-05-03 11:04:11 -05:00
eme_live_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
import_live_test.exs feat(import): live /imports/:id progress page + gate upload bars on submit 2026-04-17 09:31:22 -05:00
live_stash_guard_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
map_live_test.exs fix: resolve 27 security, architecture, test, and performance audit findings 2026-07-27 18:19:37 -05:00
path_live_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
privacy_live_test.exs fix: resolve 27 security, architecture, test, and performance audit findings 2026-07-27 18:19:37 -05:00
pskr_spots_live_test.exs fix: resolve 27 security, architecture, test, and performance audit findings 2026-07-27 18:19:37 -05:00
rover_live_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
rover_locations_live_test.exs refactor(rover-locations): rename status atoms ideal→good, off_limits→bad 2026-05-03 11:13:18 -05:00
rover_planning_live_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
skewt_live_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
skewt_location_resolver_test.exs test: bump coverage 80% -> 81.3% via more LiveView + module tests 2026-05-08 09:10:34 -05:00
skewt_svg_test.exs feat(rover): Oban worker enriches station elevation post-insert 2026-04-25 16:26:33 -05:00
status_live_test.exs chore: update phoenix_live_view to 1.2.0 and fix test failures 2026-06-12 10:42:41 -05:00
submit_live_test.exs fix: resolve 27 security, architecture, test, and performance audit findings 2026-07-27 18:19:37 -05:00
user_management_live_test.exs feat(admin): beacon monitor reassign, token regen, assigned_by display, user monitor management 2026-07-22 16:27:21 -05:00
user_profile_live_test.exs feat(monitors): schema migration + remove user self-service creation 2026-07-21 18:28:51 -05:00
weather_ca_map_live_test.exs fix(weather-ca): drop the 1h freshness cutoff so HRDPS data renders 2026-04-30 12:24:34 -05:00
weather_map_live_test.exs fix: 9 bugs across tests and production code 2026-06-21 12:13:58 -05:00