Add Committed column to QSOs table showing inserted_at

This commit is contained in:
Graham McIntire 2026-03-29 17:38:35 -05:00
parent fe3c8812a0
commit 47456630ff
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
2 changed files with 5 additions and 2 deletions

View file

@ -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)

View file

@ -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>
<:col :let={qso} label="Committed" sort_field="inserted_at">
{Calendar.strftime(qso.inserted_at, "%Y-%m-%d %H:%M")}
</:col>
</.table>
<div class="flex items-center justify-between pt-4">