feat(decodes): the two-letter US state in the status column

Plain text, not a badge — it is a fact, not an action — placed first so a
WAS chaser can scan the column edge. Shown whenever the status cache knows
the state (log county data or the licence address).
This commit is contained in:
2026-08-30 20:31:05 +02:00
parent e00488fad8
commit 1288b3f998
3 changed files with 20 additions and 2 deletions
+8
View File
@@ -74,6 +74,7 @@ type StatusEntry = {
new_grid?: boolean;
// "new" = never worked, "unconf" = worked and awaiting a confirmation.
grid_state?: string;
state?: string;
grid?: string;
lotw?: boolean;
};
@@ -1105,6 +1106,13 @@ export function DecodesPanel({ decodes, txMsgs, txState, txStates, spotStatus, o
right edge, shortest first so the eye can scan the column
rather than read it. */}
<span className={CELL_LAST}>
{/* The two-letter US state, when the log or the licence data
knows it — a WAS chaser reads the column for exactly
this. Plain text, not a badge: it is a fact, not an
action. */}
{e?.state && (
<span className="text-[10px] font-bold text-muted-foreground shrink-0" title={t('dec.stateTip')}>{e.state}</span>
)}
{e?.lotw && (
<span className="text-[10px] font-bold text-info-muted-foreground shrink-0" title="LoTW">L</span>
)}