Skip to content

Commit

Permalink
fix #62: flag qrt in sota
Browse files Browse the repository at this point in the history
consolidated with qsy, so that we normally show neither qsy nor qrt, but
can enable a checkbox to do so
  • Loading branch information
jeffkowalski committed Nov 4, 2024
1 parent 15e43b1 commit 5a3a93a
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion firmware/webtools/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SOTACAT for Elecraft KX2 and KX3",
"version": "2024-11-03_18:21-Debug",
"version": "2024-11-03_19:34-Debug",
"builds": [
{
"chipFamily": "ESP32-C3",
Expand Down
2 changes: 1 addition & 1 deletion include/build_info.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_DATE_TIME "241103:1821"
#define BUILD_DATE_TIME "241103:1934"
1 change: 1 addition & 0 deletions src/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ async function enrichSpots(spots,
if (!["CW", "SSB", "FM", "FT8", "DATA"].includes(spot.modeType))
spot.modeType = "OTHER";
spot.details = getLocationDetailsFunc(spot);
spot.qrt = spot.type?.toLowerCase() === 'qrt';
});

// find duplicates
Expand Down
2 changes: 1 addition & 1 deletion src/web/pota.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ <h2 class="contentPageHeaderContainer">
<span class="spotsTableTitle">Recent Spots</span>
<div class="showDupsContainer">
<input type="checkbox" id="showDupsSelector" class="showDups" checked onchange="changeShowSpotDupsCheckboxState(this.checked); saveShowSpotDupsCheckboxState();" />
<label for="showDupsSelector" class="showDupsLabel">QSY</label>
<label for="showDupsSelector" class="showDupsLabel">QRT/QSY</label>
</div>
<div class="autoRefreshContainer">
<button onclick="refreshSotaPotaJson(true)">Refresh</button>
Expand Down
4 changes: 4 additions & 0 deletions src/web/pota.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ async function updatePotaTable()

if (spot.duplicate)
row.classList.add('duplicate-row');
if (spot.qrt) {
row.classList.add('duplicate-row');
row.classList.add('qrt-row');
}

const formattedTime = spot.timestamp.getUTCHours().toString().padStart(2, '0') + ':' + spot.timestamp.getUTCMinutes().toString().padStart(2, '0');
row.insertCell().textContent = formattedTime;
Expand Down
2 changes: 1 addition & 1 deletion src/web/sota.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2 class="contentPageHeaderContainer">
checked
onchange="changeShowSpotDupsCheckboxState(this.checked); saveShowSpotDupsCheckboxState();"
/>
<label for="showDupsSelector" class="showDupsLabel">QSY</label>
<label for="showDupsSelector" class="showDupsLabel">QRT/QSY</label>
</div>
<div class="autoRefreshContainer">
<button onclick="refreshSotaPotaJson(true)">Refresh</button>
Expand Down
4 changes: 4 additions & 0 deletions src/web/sota.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ async function updateSotaTable()

if (spot.duplicate)
row.classList.add('duplicate-row');
if (spot.qrt) {
row.classList.add('duplicate-row');
row.classList.add('qrt-row');
}

const formattedTime = spot.timestamp.getUTCHours().toString().padStart(2, '0') + ':' + spot.timestamp.getUTCMinutes().toString().padStart(2, '0');
row.insertCell().textContent = formattedTime;
Expand Down
4 changes: 4 additions & 0 deletions src/web/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ table.table-sortable th span[data-sort-dir="desc"]::after {
background-color: var(--bg-duplicate);
}

.qrt-row {
text-decoration: line-through;
}

/* Mode-specific styles Note that each is defined separately, rather than having
* them share a common definition. This is intentional, so that each mode may be
* further manipulated separately,
Expand Down

0 comments on commit 5a3a93a

Please sign in to comment.