towerops/lib/towerops_web/live/device_live
Graham McIntire efaf5558ff refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196)
Phase 1: Foundation Types (100% complete)
- query_helpers: SQL LIKE sanitization with pipe operators
- numeric: Integer parsing with pattern matching guards
- result: Pure Elixir Result monad (map, and_then, unwrap_or)

Phase 2: Ecto Domain Types (100% complete)
- ip_address: IPv4/IPv6 validation using :inet directly
- mac_address: Multi-format MAC parsing (colon/hyphen/dot/compact)
- snmp_oid: OID parsing/manipulation with recursive pattern matching

All 198 tests passing across converted modules.
API changed from Gleam-style {:some/:none to idiomatic {:ok/:error.
Refactored parse_numeric_oid to use with statement, reducing nesting depth.

Reviewed-on: graham/towerops-web#196
2026-03-28 09:52:07 -05:00
..
components refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
helpers fix: address code review findings - memory leaks and redundant queries (#192) 2026-03-27 16:34:42 -05:00
form.ex reliability-audit-fixes (#181) 2026-03-26 14:10:36 -05:00
form.html.heex reliability-audit-fixes (#181) 2026-03-26 14:10:36 -05:00
index.ex reliability-audit-fixes (#181) 2026-03-26 14:10:36 -05:00
index.html.heex reliability-audit-fixes (#181) 2026-03-26 14:10:36 -05:00
show.ex refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
show.html.heex feature/entity-physical-inventory (#187) 2026-03-27 10:48:50 -05:00