chore(contacts): drop the Flag column from the table
The `!` flag column was a tiny sliver that rarely fired in practice and was pushing more useful columns offscreen on narrow layouts. The underlying `flagged_invalid` field stays on the schema for the detail page; only the index column goes.
This commit is contained in:
parent
4b155c5419
commit
a6a3d3ced3
1 changed files with 0 additions and 11 deletions
|
|
@ -28,7 +28,6 @@ defmodule MicrowavepropWeb.ContactLive.Index do
|
|||
mode: %{label: "Mode", sortable: true, searchable: true},
|
||||
distance_km: %{label: "Distance", sortable: true, renderer: &distance_cell/1},
|
||||
hrrr_status: %{label: "Enriched", renderer: &enrichment_cell/2},
|
||||
flagged_invalid: %{label: "Flag", renderer: &flag_cell/1},
|
||||
qso_timestamp: %{label: "QSO (UTC)", sortable: true, renderer: &format_ts/1},
|
||||
inserted_at: %{label: "Added (UTC)", sortable: true, renderer: &format_ts/1},
|
||||
private: %{label: "Private", sortable: true, renderer: &private_cell/1}
|
||||
|
|
@ -165,16 +164,6 @@ defmodule MicrowavepropWeb.ContactLive.Index do
|
|||
defp distance_cell(nil), do: ""
|
||||
defp distance_cell(km), do: Microwaveprop.Format.distance_km(km)
|
||||
|
||||
defp flag_cell(true) do
|
||||
assigns = %{}
|
||||
|
||||
~H"""
|
||||
<span class="text-error">!</span>
|
||||
"""
|
||||
end
|
||||
|
||||
defp flag_cell(_), do: ""
|
||||
|
||||
defp format_count(n) when is_integer(n) do
|
||||
n
|
||||
|> Integer.to_string()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue