Commit graph

1099 commits

Author SHA1 Message Date
d23ac8cb38
docs: add design for trail line visualization at low zoom for tracked callsigns
- Show polyline trail instead of heat map when tracking callsign at zoom ≤ 8
- Individual markers remain at zoom > 8
- Trail line connects positions chronologically
- Respects trail duration setting
2026-03-01 15:01:07 -06:00
CI
472b392827 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1772058607-f4db38f [skip ci] 2026-02-25 22:31:33 +00:00
f4db38f051
update 2026-02-25 16:29:45 -06:00
CI
d643f0a592 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1772058556-e51b042 [skip ci] 2026-02-25 22:29:24 +00:00
e51b042cc9 Merge pull request 'docs: remove K3s deployment section from README' (#2) from fix/packet-retention-runtime-config into main
Reviewed-on: #2
2026-02-25 14:28:58 -08:00
0b9e06e76a
docs: remove K3s deployment section from README
Remove outdated K3s-specific deployment instructions and replace with
accurate Flux GitOps deployment information. The app is deployed to a
full Kubernetes cluster (not K3s) using Flux for GitOps automation.
2026-02-25 16:28:29 -06:00
CI
63176780d0 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1772058296-3b33a31 [skip ci] 2026-02-25 22:26:24 +00:00
3b33a319f2 Merge pull request 'Fix packet retention config to read env var at runtime' (#1) from fix/packet-retention-runtime-config into main
Reviewed-on: #1
2026-02-25 14:24:38 -08:00
fcff4fa6f0
Fix packet retention config to read env var at runtime
Move packet_retention_days configuration from config.exs (compile-time)
to runtime.exs so it properly reads the PACKET_RETENTION_DAYS environment
variable at runtime instead of baking in the default value during build.

This fixes the issue where the app was using 7 days retention despite
PACKET_RETENTION_DAYS being set to 1 in the deployment, causing disk
to fill up with 54GB of old partition data.
2026-02-25 16:23:22 -06:00
CI
d42acf8e1c chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1772043977-d385d1e [skip ci] 2026-02-25 18:27:49 +00:00
d385d1eb75
Default sidebar to open on desktop via CSS
Make the map and panel CSS default to "sidebar open" on desktop
(>= 1024px) without requiring the slideover-open class. Only the
slideover-closed class now hides the sidebar. This prevents a blank
gap when the map and panel states get out of sync after LiveView
reconnects.
2026-02-25 12:25:50 -06:00
CI
88e2c48f97 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771796036-f5049a6 [skip ci] 2026-02-22 21:35:24 +00:00
f5049a6e2d
updates 2026-02-22 15:33:35 -06:00
CI
c4bf50284b chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771633101-d22fc7c [skip ci] 2026-02-21 00:19:55 +00:00
d22fc7c661
Fix dialyzer type errors in coordinate validation
- Remove redundant nil check for callsign (spec guarantees String.t())
- Simplify coordinate validation by removing faulty infinity checks
- Remove unreachable catch-all clause in has_weather_packets?

Floats cannot equal atoms :infinity or :neg_infinity in Elixir.
Range checks already ensure finite values, making explicit infinity
checks unnecessary. Reduces dialyzer errors from 40 to 34.
2026-02-20 18:17:59 -06:00
CI
c34c233119 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771632418-b45993a [skip ci] 2026-02-21 00:08:34 +00:00
b45993a8be
Fix APRS object display and comment encoding issues
- Strip Mic-E telemetry from comments before database storage
- Show sender callsign on map labels instead of object names for clarity
- Object names still used for grouping to maintain trail organization
- Add comprehensive tests for new encoding utilities

Fixes display issues where weather balloon "X3234025" was shown
instead of station "WA0YMH", and Mic-E telemetry bytes like "!w>`!"
were appearing in comments.
2026-02-20 18:06:32 -06:00
CI
a92f63237f chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771631787-0061c4b [skip ci] 2026-02-20 23:58:03 +00:00
0061c4b169
Apply TailwindCSS Plus design patterns across site
Dark navbar header with radio icon, refined slideover control panel
with branded header and section cards, polished cards/tables/badges
on info, packets, and about pages using ring borders and shadow-xs.
2026-02-20 17:56:06 -06:00
CI
ab356afe43 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771631314-cf97bf2 [skip ci] 2026-02-20 23:50:09 +00:00
cf97bf236a
Add client IP to request log metadata
Set Logger metadata from conn.remote_ip in the RemoteIp plug so
request logs include the client address.
2026-02-20 17:48:15 -06:00
CI
03e2cf3403 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771628981-4481888 [skip ci] 2026-02-20 23:11:16 +00:00
4481888976
Fix settings page showing validation errors on initial load
The email and callsign changesets add "did not change" errors when
created with empty attrs (on mount). Guard all field error displays
on changeset.action being set so errors only appear after user
interaction.
2026-02-20 17:09:18 -06:00
CI
e2966e0a21 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771618361-f803c46 [skip ci] 2026-02-20 20:14:14 +00:00
f803c46b92
Fix KeyError on :data when rendering raw broadcast packets in callsign view
Raw APRS broadcast payloads don't have a :data key (only %Packet{}
structs do). Use Map.get/3 instead of dot-access to handle both cases.
2026-02-20 14:12:21 -06:00
CI
4f5483de19 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771617231-e917a6b [skip ci] 2026-02-20 19:54:00 +00:00
e917a6b718
Add test coverage for conversion, geometry, PHG, and encoding modules
Cover to_float, to_decimal, normalize_data_type, weather_fields,
sanitize_packet_strings, to_float_safe, has_weather_data, create_point,
extract_coordinates, lat/lon helpers, PHG extraction, and altitude
extraction with 79 new tests across 4 test files.
2026-02-20 13:53:26 -06:00
CI
918af2069a chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771616615-bcb0080 [skip ci] 2026-02-20 19:45:12 +00:00
bcb00801ee
Remove noisy leader election log
The "Not elected as leader" info log was being emitted every 5 seconds
by non-leader nodes, filling up logs unnecessarily in clustered deployments.
2026-02-20 13:43:13 -06:00
CI
50a54ef0aa chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771616369-50544c8 [skip ci] 2026-02-20 19:41:09 +00:00
50544c8354
Remove dead PostGIS code, deduplicate utilities, and simplify module hierarchy
- Delete ~170 lines of commented-out PostGIS spatial query functions
- Consolidate coordinate validation into CoordinateUtils
- Replace private normalize_data_type with EncodingUtils delegation
- Inline to_float/to_decimal wrappers at call sites
- Fix has_weather_data? missing wind_gust field
- Remove BoundsManager passthrough delegation module
- Simplify MapLive.PacketUtils by removing pure-passthrough delegations
2026-02-20 13:39:07 -06:00
CI
bb494bce65 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771615067-673eb55 [skip ci] 2026-02-20 19:19:24 +00:00
673eb55e97
Add test coverage for comment cleaning edge cases
Cover weather data with spaces/dots for missing values, negative
temperatures, negative altitudes, combined PHG+altitude+RNG
stripping, nil comments, comments that become empty after cleaning,
and false-match protection for comments starting with P or h. Also
fix strip_weather_data to require at least one weather field after
the preamble to avoid false-matching course/speed in non-weather
comments.
2026-02-20 13:17:27 -06:00
CI
f6a56d2f65 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771614941-ddf26a9 [skip ci] 2026-02-20 19:17:19 +00:00
ddf26a99ce
Strip weather data, RNG, and negative altitudes from packet comments
Weather packets had raw data strings (e.g. 007/000g000t054...)
stored as the comment instead of the trailing human-readable text.
Now iteratively strips fixed-width APRS weather fields in any order,
handling both position-included (XXX/XXX) and positionless (cXXXsXXX)
formats. Also strips RNG data and fixes altitude regex to handle
negative values. Empty comments after cleaning return nil.
2026-02-20 13:15:19 -06:00
CI
2305635a30 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771614193-34599d4 [skip ci] 2026-02-20 19:04:51 +00:00
34599d404c
Add Renovate configuration for dependency updates 2026-02-20 13:02:48 -06:00
ca05b497b9
Consolidate 24 packet columns into JSONB data field
Drop 10 dead parser-compat columns (srccallsign, dstcallsign,
origpacket, body, header, alive, posambiguity, symboltable,
symbolcode, messaging) and move 14 display-only columns into a
single `data` JSONB column (PHG, telemetry, radiorange,
information_field, format, posresolution, position_ambiguity,
luminosity, rain_midnight).

Reduces row width from ~70 to ~48 columns. Table is ephemeral
so migration uses DROP/recreate. Also fixes snow_24h -> snow bug
in weather check query and adds null byte stripping for JSONB
string sanitization.
2026-02-20 13:02:47 -06:00
CI
0e53bc475d chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771612042-13bc58e [skip ci] 2026-02-20 18:31:18 +00:00
13bc58e650
Convert JS hooks to TypeScript and update esbuild to 0.25.4
Convert app.js, info_map.js, error_boundary.js, and time_ago_hook.js
to TypeScript with proper typing for Phoenix hooks, Leaflet, DOM
interactions, and timer management. Update esbuild hex package to
~> 0.10 and binary to 0.25.4. Entry point changed to app.ts.
2026-02-20 12:27:00 -06:00
CI
b562c23589 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771608339-b08eba2 [skip ci] 2026-02-20 17:29:33 +00:00
b08eba2c6b
Partition packets table by day and simplify cleanup
Convert the packets table to a time-partitioned table with daily
partitions (PARTITION BY RANGE on received_at). This replaces the
expensive CTE-based batch DELETE cleanup with instant DROP TABLE
partition drops — no dead tuples, no WAL pressure, no VACUUM needed.

- Add PartitionManager GenServer to create/drop daily partitions
- Simplify PacketCleanupWorker to delegate to PartitionManager
- Replace gridsquare/geocalc deps with local Maidenhead module
- Remove gettext_pseudolocalize dependency
- Fix Decimal comparison in packet consumer test
2026-02-20 11:25:16 -06:00
CI
d5a1f3fe1e chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771604468-f1ead99 [skip ci] 2026-02-20 16:25:49 +00:00
f1ead99e24
Split Dockerfile build steps for better layer caching 2026-02-20 10:18:48 -06:00
84e883701d
Suppress debconf frontend warnings in Dockerfile 2026-02-20 10:17:12 -06:00
2e3fc1234b
Fix Dockerfile: use libncurses6 for Debian trixie 2026-02-20 10:15:38 -06:00
92351ef1d4
Bump Elixir 1.19.5/OTP 28.3/Debian trixie in Dockerfile and .tool-versions 2026-02-20 10:14:28 -06:00
CI
e11d8fb414 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771602978-d09e015 [skip ci] 2026-02-20 15:57:54 +00:00
d09e015857
Fix Credo issues and telemetry Decimal coercion
- Extract prepare_markers_for_push/2 to reduce nesting depth in
  handle_info
- Split detect_item_or_object into smaller predicate and application
  functions to reduce cyclomatic complexity
- Coerce Decimal/nil values to native numbers in telemetry metrics
  (PostgreSQL sum() returns numeric type mapped to Decimal by Postgrex)
- Align locate button horizontally with zoom controls
2026-02-20 09:55:56 -06:00
CI
8dbf8d3c20 chore: update aprs.me image to git.mcintire.me/graham/aprs.me:main-1771602427-b8d2095 [skip ci] 2026-02-20 15:48:41 +00:00