feat: added live status for TM74TFR

This commit is contained in:
2026-06-17 22:10:32 +02:00
parent bde1195b34
commit 8b1609f5ce
7 changed files with 285 additions and 7 deletions
+10 -7
View File
@@ -2063,6 +2063,14 @@ export default function App() {
<Combobox value={rstRcvd} options={rstOptions(mode, rstLists)} allowFreeText commitOnType onChange={(v) => { setRstRcvd(v); rstUserEditedRef.current = true; }} />
</div>
);
// DX country flag, shown large next to RST (moved here from the Country field).
const flagBlock = flagURL(details.dxcc) ? (
<div className="flex flex-col justify-end shrink-0">
<img src={flagURL(details.dxcc)} alt={country} title={country}
className="h-9 rounded-[3px] border border-border/60 shadow-sm"
referrerPolicy="no-referrer" onError={(e) => { (e.currentTarget as HTMLImageElement).style.display = 'none'; }} />
</div>
) : null;
// Deferred-entry date: only shown when the start time is locked (back-entering
// a past QSO). Sets the DATE part of qsoStartedAt; the time field keeps the time.
const dateBlock = locks.start ? (
@@ -2185,13 +2193,7 @@ export default function App() {
);
const countryRow = (
<div className="flex items-center gap-2">
<Label className="w-20 shrink-0 flex items-center gap-1.5">
Country
{flagURL(details.dxcc) && (
<img src={flagURL(details.dxcc)} alt="" className="h-3 rounded-[2px] border border-border/50 shadow-sm mr-0.5"
referrerPolicy="no-referrer" onError={(e) => { (e.currentTarget as HTMLImageElement).style.display = 'none'; }} />
)}
</Label>
<Label className="w-20 shrink-0">Country</Label>
<div className="flex-1 min-w-0">
<Combobox value={country} options={countries} placeholder="Country" onChange={(v) => { setCountry(v); markEdited('country'); }} />
</div>
@@ -2927,6 +2929,7 @@ export default function App() {
{callsignBlock}
{rstTxBlock}
{rstRxBlock}
{flagBlock}
<div className="ml-auto flex gap-2">
{dateBlock}
{startBlock}