fix(cluster): hide worked must not hide what is new
Reported on BH2SWB and 4X9AA: both flagged NEW PFX, neither ever worked, both vanished the moment "hide worked" went on. The predicate hid a spot when worked_call OR status === 'worked' — and that second one is the ENTITY's status, not the callsign's. So any spot in an entity worked years ago disappeared, however new it was for something else. The extra markers are orthogonal to the entity status; the band map already says so in as many words. They now win: a new prefix, county, grid or park is never hidden, whatever the entity says. A worked entity that is new for nothing is still hidden, which is what the filter is for. Extracted to spotIsWorked in lib/spotDisplay, beside the other rule the cluster and band map share, rather than left inline in a predicate that has already grown once. This repo has no frontend test runner, so this is verified by build and reading rather than by a test.
This commit is contained in:
+6
-2
@@ -2,8 +2,12 @@
|
||||
{
|
||||
"version": "0.25.0",
|
||||
"date": "",
|
||||
"en": [],
|
||||
"fr": []
|
||||
"en": [
|
||||
"Cluster: \"Hide worked\" no longer hides a spot that is a new prefix, county, grid or park in an entity already worked."
|
||||
],
|
||||
"fr": [
|
||||
"Cluster : « Masquer les contactés » ne masque plus un spot qui est un nouveau préfixe, comté, carré ou parc dans une contrée déjà faite."
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "0.24.9",
|
||||
|
||||
Reference in New Issue
Block a user