fix(satellites): every class but Starlink shows by default

Showing only Stations and Imaging by default hid GPS, GEO comsats, Hubble
and the rest of what the layer showed before classes, for every existing
user and saved view. Every class now starts on except Starlink, which stays
off as the DENSE switch was.
This commit is contained in:
Sameh Khamis committed 2026-11-08 15:16:01 -08:00
1 parent 63e6338c19
commit d404445da3
5 files changed
+26 -18

No files matched your search

+7 -4
View File
@@ -39,14 +39,17 @@ export const SATELLITE_CLASS_IDS = Object.freeze([
'debris',
]);
/** Which classes show when nobody has chosen. */
/**
* Which classes show when nobody has chosen: everything the layer showed
* before classes existed. Starlink stays off, as the DENSE switch was.
*/
export const DEFAULT_SATELLITE_CLASSES = Object.freeze({
stations: true,
imaging: true,
telecom: false,
telecom: true,
starlink: false,
probes: false,
debris: false,
probes: true,
debris: true,
});
/**
+1 -1
View File
@@ -32,7 +32,7 @@ test('six classes, with stations and imaging on by default and the rest off', ()
]);
assert.deepEqual(
SATELLITE_CLASS_IDS.filter((id) => DEFAULT_SATELLITE_CLASSES[id]),
['stations', 'imaging'],
['stations', 'imaging', 'telecom', 'probes', 'debris'],
);
for (const id of SATELLITE_CLASS_IDS) {
const display = SATELLITE_CLASS_DISPLAY[id];