From 47456630ffe0ff9c96bf223b22f8ce418b811b87 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 29 Mar 2026 17:38:35 -0500 Subject: [PATCH] Add Committed column to QSOs table showing inserted_at --- lib/microwaveprop/radio.ex | 2 +- lib/microwaveprop_web/live/qso_live/index.ex | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/microwaveprop/radio.ex b/lib/microwaveprop/radio.ex index 8541d1ba..608986ec 100644 --- a/lib/microwaveprop/radio.ex +++ b/lib/microwaveprop/radio.ex @@ -8,7 +8,7 @@ defmodule Microwaveprop.Radio do alias Microwaveprop.Repo @per_page 20 - @sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp)a + @sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp inserted_at)a def list_qsos(opts \\ []) do page = max(Keyword.get(opts, :page, 1), 1) diff --git a/lib/microwaveprop_web/live/qso_live/index.ex b/lib/microwaveprop_web/live/qso_live/index.ex index 1648dff3..fc66c828 100644 --- a/lib/microwaveprop_web/live/qso_live/index.ex +++ b/lib/microwaveprop_web/live/qso_live/index.ex @@ -4,7 +4,7 @@ defmodule MicrowavepropWeb.QsoLive.Index do alias Microwaveprop.Radio - @sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp) + @sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp inserted_at) @default_sort_by "qso_timestamp" @default_sort_order "desc" @@ -88,6 +88,9 @@ defmodule MicrowavepropWeb.QsoLive.Index do <:col :let={qso} label="Timestamp" sort_field="qso_timestamp"> {Calendar.strftime(qso.qso_timestamp, "%Y-%m-%d %H:%M")} + <:col :let={qso} label="Committed" sort_field="inserted_at"> + {Calendar.strftime(qso.inserted_at, "%Y-%m-%d %H:%M")} +