aprs.me/lib/aprsme_web
Graham McIntire 01ecf3d6bc
refactor: apply functional programming patterns across codebase
- accounts.ex: replace validate_user_password (if-based) with with-chain;
  drop unnecessary try/rescue around Repo.get_by. Extract transaction_unwrap
  helper to eliminate 3 copies of the Multi result-unwrap case block.

- packets.ex: deduplicate store_bad_packet by extracting raw_packet_string,
  extract_error_type, and extract_error_message into composable helpers.
  Normalize find_coordinate_value — collapse 12 clauses into a generic
  deep_get/direct_get that handles atom/string keys and nested maps uniformly.

- data_builder.ex: split build_simple_popup into separate data-construction
  (build_simple_popup_data) and rendering (render_popup) phases, eliminating
  duplicated PopupComponent/Safe/IO pipelines.

- param_utils.ex: unify parse_float_in_range and parse_int_in_range via a
  shared parse_in_range that accepts Float.parse/Integer.parse as a function
  parameter — functions-as-values pattern.
2026-07-01 08:45:19 -05:00
..
channels Fix all mix credo --strict warnings (188 → 0) 2026-06-12 16:27:20 -05:00
components Add Plausible analytics snippet to root layout 2026-06-04 16:05:24 -05:00
controllers Add Plausible Analytics server-side tracking and API Prometheus metrics 2026-06-04 19:37:54 -05:00
live refactor: apply functional programming patterns across codebase 2026-07-01 08:45:19 -05:00
plugs Add user-agent to request logging metadata 2026-06-04 16:19:47 -05:00
aprs_symbol.ex refactor: dedupe utilities, prefer pattern matching, tighten specs 2026-04-28 14:18:58 -05:00
endpoint.ex fix: performance improvements and bug fixes across backend and frontend 2026-03-19 12:41:36 -05:00
gettext.ex more languages 2025-07-06 10:08:58 -05:00
router.ex update stuff 2026-06-04 18:00:03 -05:00
telemetry.ex Optimize prod: scale deployment, drop expensive metric queries, fix slow callsign and nearby-stations queries 2026-05-12 17:48:58 -05:00
time_helpers.ex refactor: pattern-match in TimeHelpers.to_datetime and PageController 2026-04-23 13:58:42 -05:00
time_utils.ex improve dialyzer 2025-10-13 10:02:15 -05:00
user_auth.ex chore(dialyzer): enable stricter flags and fix 97 resulting findings 2026-04-21 10:07:01 -05:00
weather_units.ex Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00