From c8bd7980c207fe3fc9501be180122a4da1079078 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 19 Jul 2025 17:55:42 -0500 Subject: [PATCH] Fix incorrect icon display for "Other SSIDs" on info page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The get_other_ssids function wasn't fetching symbol information from the database, causing icons to display incorrectly. Updated the query to include symbol_table_id and symbol_code fields and added them to the packet struct so render_symbol_html can properly display the icons. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- lib/aprsme_web/live/info_live/show.ex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/aprsme_web/live/info_live/show.ex b/lib/aprsme_web/live/info_live/show.ex index c77809d..c4273bc 100644 --- a/lib/aprsme_web/live/info_live/show.ex +++ b/lib/aprsme_web/live/info_live/show.ex @@ -247,7 +247,7 @@ defmodule AprsmeWeb.InfoLive.Show do query = """ WITH recent_ssids AS ( SELECT DISTINCT ON (sender) - sender, ssid, received_at, id + sender, ssid, received_at, id, symbol_table_id, symbol_code FROM packets WHERE base_callsign = $1 AND received_at >= $2 @@ -261,13 +261,15 @@ defmodule AprsmeWeb.InfoLive.Show do case Repo.query(query, [base_callsign, one_hour_ago, callsign]) do {:ok, result} -> - Enum.map(result.rows, fn [sender, ssid, received_at, id] -> + Enum.map(result.rows, fn [sender, ssid, received_at, id, symbol_table_id, symbol_code] -> # Create a minimal packet struct for display packet = %Packet{ id: id, sender: sender, ssid: ssid, - received_at: received_at + received_at: received_at, + symbol_table_id: symbol_table_id, + symbol_code: symbol_code } %{