From 3bb92f79b284b13a2cc85ffbb0d06f7a760139f2 Mon Sep 17 00:00:00 2001 From: rouggy Date: Fri, 28 Aug 2026 12:17:09 +0200 Subject: [PATCH] fix(bandmap): name the new prefix and new grid in the tooltip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The strip deliberately shows three markers of five — the pill is 22 px and a fourth segment makes it a colour code nobody reads. But the tooltip has room and was filtering them out too, so the same spot read NEW PFX in the cluster and 'Worked (this band + mode already in log)' on the map. Both were true: the entity is worked on that slot and the WPX prefix never has been. Neither view said so. --- changelog.json | 6 ++++-- frontend/src/components/BandMap.tsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changelog.json b/changelog.json index d86afa5..841142f 100644 --- a/changelog.json +++ b/changelog.json @@ -3,10 +3,12 @@ "version": "0.26.22", "date": "", "en": [ - "LoTW download: the QSL details (QSL date, grid, state, county) are now optional and off by default — LoTW takes about ten times longer to build that report, twenty minutes against two on the same account, and marking a confirmation needs none of it. Still asked for automatically when adding the QSOs not found in the log." + "LoTW download: the QSL details (QSL date, grid, state, county) are now optional and off by default — LoTW takes about ten times longer to build that report, twenty minutes against two on the same account, and marking a confirmation needs none of it. Still asked for automatically when adding the QSOs not found in the log.", + "Band map: the tooltip now also names a new prefix or a new grid square. They stay off the 22-pixel colour strip, but leaving them out of the text made the two panels look as though they disagreed — the cluster said NEW PFX about a spot the map called Worked, and both were right." ], "fr": [ - "Téléchargement LoTW : les détails QSL (date du QSL, locator, état, comté) deviennent optionnels et désactivés par défaut — LoTW met environ dix fois plus longtemps à construire ce rapport, vingt minutes contre deux sur le même compte, et marquer une confirmation n'en a pas besoin. Toujours demandés automatiquement quand on ajoute les QSO absents du log." + "Téléchargement LoTW : les détails QSL (date du QSL, locator, état, comté) deviennent optionnels et désactivés par défaut — LoTW met environ dix fois plus longtemps à construire ce rapport, vingt minutes contre deux sur le même compte, et marquer une confirmation n'en a pas besoin. Toujours demandés automatiquement quand on ajoute les QSO absents du log.", + "Carte des bandes : l'infobulle indique aussi un nouveau préfixe ou un nouveau locator. Ils restent hors de la bande de couleur de 22 pixels, mais les omettre du texte donnait l'impression que les deux panneaux se contredisaient — le cluster annonçait NOUVEAU PFX pour un spot que la carte disait contacté, et les deux avaient raison." ] }, { diff --git a/frontend/src/components/BandMap.tsx b/frontend/src/components/BandMap.tsx index 6a3c85a..1d6cb9c 100644 --- a/frontend/src/components/BandMap.tsx +++ b/frontend/src/components/BandMap.tsx @@ -737,7 +737,7 @@ export function BandMap({ band, spots, spotStatus: spotStatusRaw, currentFreqHz, 'hover:translate-x-0.5 hover:shadow', style.pill, )} - title={`${p.spot.dx_call}${entry?.country ? ' · ' + entry.country : ''} · ${p.spot.freq_khz.toFixed(1)} kHz · ${statusLabel(st, t)}${markersFor(entry).map((m) => ' · ' + t(BMP_MARKER_LABEL[m.key])).join('')}${p.spot.comment ? ' · ' + p.spot.comment : ''}${p.spot.spotter ? ' · de ' + p.spot.spotter : ''}`} + title={`${p.spot.dx_call}${entry?.country ? ' · ' + entry.country : ''} · ${p.spot.freq_khz.toFixed(1)} kHz · ${statusLabel(st, t)}${activeMarkers(entry).map((m) => ' · ' + t(BMP_MARKER_LABEL[m.key])).join('')}${p.spot.comment ? ' · ' + p.spot.comment : ''}${p.spot.spotter ? ' · de ' + p.spot.spotter : ''}`} > {/* Left accent strip. With no extra marker it repeats the status colour, exactly as before; otherwise it splits into one