From b478cbfd2a8d2664bccad251d2c1a7fb71d614b7 Mon Sep 17 00:00:00 2001 From: rouggy Date: Mon, 7 Sep 2026 22:36:48 +0200 Subject: [PATCH] feat(sat): a wider frequency list, a resizable readout, one locator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three things reported together from the tab. The shipped frequency plan went from eleven satellites to twenty-five: the eight Tevel FM cubesats, EO-88, AO-109, CAS-4A and 4B, TO-108, GreenCube's single-frequency digipeater, and QO-100's wideband transponder beside its narrowband one. It remains a starting point in a file the operator can correct — a transponder gets switched and no release should be needed to follow it — and the picker still lists every bird in the element set when the "with a plan" filter is unticked. The readout column drags to any width between 240 and 720 pixels, double-clicks back to its default, and folds away entirely. How much map against how much detail is the operator's call: watching a footprint cross an ocean and working a pass want opposite things. And the locator is no longer asked for twice. Passes are predicted from the station locator, which is set once in Station information; the field here was only ever for an antenna at another site, so it says so and sits folded away. Nobody should have to wonder which of two locators is in use. Also: "Driven by" is two columns wide. "OpsLog (EasyComm II)" did not fit in a third of the row, and a truncated choice is a choice that cannot be read. --- changelog.json | 10 +- frontend/src/components/SatellitePanel.tsx | 66 ++++- frontend/src/components/SettingsModal.tsx | 32 ++- frontend/src/lib/i18n.tsx | 16 +- frontend/src/lib/uiPref.ts | 1 + internal/sat/birds.json | 296 ++++++++++++++++++++- 6 files changed, 388 insertions(+), 33 deletions(-) diff --git a/changelog.json b/changelog.json index 889225e..85cda5d 100644 --- a/changelog.json +++ b/changelog.json @@ -11,7 +11,10 @@ "One satellite list, in one place. Settings → Lists → Satellites is gone: the birds it held by hand had nothing to do with the ones the tracker knew, and the same station kept two lists that drifted apart. The SAT_NAME box on the entry form now offers the satellites you follow — plus anything the old list still held, so nobody's typing is lost. Satellites also moved out of Hardware, where it never belonged, and sits with Operating.", "PstRotator can point the antenna for satellites too. It handles azimuth and elevation and already knows your controller, so if you run it, choose it in Settings → Satellites and OpsLog sends it the bearing instead of taking the cable itself — two programs on one controller is one too many. Its overlap handling stays its own: a 450° rotator is PstRotator's business, not something two programs should each decide about mid-pass.", "Each map keeps its own imagery. The world map and the grid-square map shared one setting, so choosing satellite imagery to look at grids repainted the main map as well, and there was no way to have terrain on one and plain streets on the other. All four — world, grid squares, FT map, satellites — now remember their own choice, and it travels with the data folder like the remembered views. A choice already made for the grid map is carried over, not reset.", - "Two or three FT8 programs at once no longer fight over the callsign field. Click a station in MSHV and only MSHV has a DX Call; WSJT-X and JTDX beside it are idle and say so once a second each — and OpsLog was reading those as MSHV abandoning the station, so the entry emptied and refilled at 1 Hz and the map zoomed in and out with it. A cleared DX Call is now read per program, never across the listener; and the program that announces a station keeps the entry field until it clears its own call, is closed, or the QSO is logged." + "Two or three FT8 programs at once no longer fight over the callsign field. Click a station in MSHV and only MSHV has a DX Call; WSJT-X and JTDX beside it are idle and say so once a second each — and OpsLog was reading those as MSHV abandoning the station, so the entry emptied and refilled at 1 Hz and the map zoomed in and out with it. A cleared DX Call is now read per program, never across the listener; and the program that announces a station keeps the entry field until it clears its own call, is closed, or the QSO is logged.", + "The satellite readout column can be resized, and hidden. Drag the grip between it and the map, double-click to reset it, or fold it away with the button in the header when the map is what you want to look at. The width and the choice are remembered and travel with the data folder.", + "Twenty-five satellites ship with a frequency plan instead of eleven: the eight Tevel FM cubesats, EO-88, AO-109, CAS-4A and 4B, TO-108, GreenCube's digipeater, and QO-100's wideband transponder beside its narrowband one. The list is still a starting point in a file you can correct — and the satellite picker will show every bird in the element set, plan or no plan, if you untick 'only those with a frequency plan'.", + "Satellites no longer asks for a locator you have already given. Passes are predicted from your station locator; the field is now folded away under 'the satellite antenna is at another site', which is the only case it was ever for." ], "fr": [ "[NOUVEAU] Satellites. Un nouvel onglet (Outils → Satellites) suit les satellites amateurs : une carte avec l'empreinte de chacun et la trace au sol de celui qui est sélectionné, les prochains passages avec leur élévation maximale, et — pour le satellite en cours — l'azimut, l'élévation et les fréquences de descente et de montée corrigées de l'effet Doppler. Les éléments orbitaux viennent de Celestrak (avec un miroir derrière) et sont conservés sur disque : l'onglet est rempli dès son ouverture, même sans internet. Les éléments d'un satellite qu'aucun flux ne diffuse encore peuvent être collés à la main et survivent à chaque mise à jour. La liste de fréquences fournie couvre les satellites FM et linéaires ainsi que QO-100, dans un fichier que vous pouvez corriger vous-même quand un transpondeur change de mode.", @@ -22,7 +25,10 @@ "Une seule liste de satellites, à un seul endroit. Réglages → Listes → Satellites disparaît : les satellites qu'on y saisissait à la main n'avaient aucun rapport avec ceux que connaissait le suivi, et une même station entretenait deux listes qui divergeaient. Le champ SAT_NAME de la saisie propose désormais les satellites que vous suivez — plus ce que l'ancienne liste contenait encore, pour ne rien perdre. Satellites quitte aussi Matériel, où il n'avait rien à faire, pour rejoindre Opération.", "PstRotator peut aussi pointer l'antenne pour les satellites. Il gère azimut et élévation et connaît déjà votre contrôleur : si vous le faites tourner, choisissez-le dans Réglages → Satellites et OpsLog lui envoie le cap au lieu de prendre le câble lui-même — deux programmes sur un contrôleur, c'est un de trop. Le recouvrement reste son affaire : un rotor 450°, c'est à PstRotator d'en décider, pas à deux programmes en plein passage.", "Chaque carte garde son propre fond. La carte principale et celle des carrés partageaient un seul réglage : choisir la vue satellite pour regarder les carrés repeignait aussi la carte principale, et il n'y avait aucun moyen d'avoir le relief sur l'une et les rues sur l'autre. Les quatre — principale, carrés, FT map, satellites — retiennent désormais leur propre choix, qui suit le dossier de données comme les positions mémorisées. Un choix déjà fait pour la carte des carrés est repris, pas réinitialisé.", - "Deux ou trois logiciels FT8 en même temps ne se disputent plus le champ indicatif. Cliquez une station dans MSHV et lui seul a un DX Call ; WSJT-X et JTDX à côté sont au repos et le disent une fois par seconde chacun — et OpsLog y lisait MSHV abandonnant la station : le champ se vidait et se remplissait à 1 Hz, la carte zoomant au même rythme. Un DX Call effacé est désormais lu par programme, jamais à l'échelle du port ; et le logiciel qui annonce une station garde le champ jusqu'à ce qu'il efface son propre indicatif, soit fermé, ou que le QSO soit enregistré." + "Deux ou trois logiciels FT8 en même temps ne se disputent plus le champ indicatif. Cliquez une station dans MSHV et lui seul a un DX Call ; WSJT-X et JTDX à côté sont au repos et le disent une fois par seconde chacun — et OpsLog y lisait MSHV abandonnant la station : le champ se vidait et se remplissait à 1 Hz, la carte zoomant au même rythme. Un DX Call effacé est désormais lu par programme, jamais à l'échelle du port ; et le logiciel qui annonce une station garde le champ jusqu'à ce qu'il efface son propre indicatif, soit fermé, ou que le QSO soit enregistré.", + "La colonne de droite de l'onglet Satellites se redimensionne et se masque. Tirez la poignée entre elle et la carte, double-cliquez pour la remettre par défaut, ou repliez-la avec le bouton de l'en-tête quand c'est la carte qui vous intéresse. La largeur et le choix sont mémorisés et suivent le dossier de données.", + "Vingt-cinq satellites livrés avec un plan de fréquences au lieu de onze : les huit cubesats FM Tevel, EO-88, AO-109, CAS-4A et 4B, TO-108, le digipeater de GreenCube, et le transpondeur large bande de QO-100 à côté de son bande étroite. La liste reste un point de départ, dans un fichier que vous pouvez corriger — et le sélecteur affiche tous les satellites du jeu d'éléments, avec plan ou non, si vous décochez « seulement ceux avec un plan de fréquences ».", + "Satellites ne redemande plus un locator déjà renseigné. Les passages sont calculés depuis le locator de votre station ; le champ est replié sous « l'antenne satellite est sur un autre site », le seul cas pour lequel il existait." ] }, { diff --git a/frontend/src/components/SatellitePanel.tsx b/frontend/src/components/SatellitePanel.tsx index 482eb4a..3a4c113 100644 --- a/frontend/src/components/SatellitePanel.tsx +++ b/frontend/src/components/SatellitePanel.tsx @@ -1,7 +1,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; -import { Satellite as SatIcon, Radio, ArrowUp, ArrowDown } from 'lucide-react'; +import { Satellite as SatIcon, Radio, ArrowUp, ArrowDown, PanelRightClose, PanelRightOpen } from 'lucide-react'; import { GetSatelliteBirds, GetSatellitePositions, GetSatellitePasses, GetSatelliteTuning, GetSatelliteGroundTrack, GetSatelliteTLEInfo, GetSatelliteNextPass, @@ -13,6 +13,7 @@ import { gridToLatLon, splitAtAntimeridian } from '@/lib/maidenhead'; import { BASEMAPS, type BasemapKey } from '@/components/MainMap'; import { loadMapView, saveMapView } from '@/lib/mapView'; import { loadMapBase, saveMapBase, MAP_BASE_SAT } from '@/lib/mapBase'; +import { writeUiPref } from '@/lib/uiPref'; import { cn } from '@/lib/utils'; import { useI18n } from '@/lib/i18n'; @@ -63,6 +64,14 @@ type Track = { const MAP_VIEW_SAT = 'opslog.satMapView'; +// The readout column. Wide enough by default to hold a frequency to the hertz +// without wrapping, and adjustable because how much map an operator wants +// against how much detail is theirs to decide — a station watching a footprint +// cross an ocean wants the map, one working a pass wants the numbers. +const SIDE_W_KEY = 'opslog.satSideWidth'; +const SIDE_SHOWN_KEY = 'opslog.satSideShown'; +const SIDE_W_DEFAULT = 336, SIDE_W_MIN = 240, SIDE_W_MAX = 720; + const fmtHz = (hz: number) => { if (!hz) return '—'; // Six decimals: a linear transponder is tuned to the hundred hertz, and the @@ -253,6 +262,35 @@ export function SatellitePanel({ myGrid }: { myGrid: string }) { const home = useMemo(() => gridToLatLon(myGrid), [myGrid]); + // ── The readout column ─────────────────────────────────────────────────── + + const [sideW, setSideW] = useState(() => { + const n = parseFloat(localStorage.getItem(SIDE_W_KEY) || ''); + return Number.isFinite(n) && n >= SIDE_W_MIN && n <= SIDE_W_MAX ? n : SIDE_W_DEFAULT; + }); + const [sideShown, setSideShown] = useState(() => localStorage.getItem(SIDE_SHOWN_KEY) !== '0'); + useEffect(() => { writeUiPref(SIDE_W_KEY, String(Math.round(sideW))); }, [sideW]); + useEffect(() => { writeUiPref(SIDE_SHOWN_KEY, sideShown ? '1' : '0'); }, [sideShown]); + + // Dragging the grip. Measured from where the pointer STARTED rather than from + // the container, and with the pointer captured — without the capture the map + // underneath swallows the moves the instant the cursor crosses it. + const startSideDrag = (e: React.PointerEvent) => { + e.preventDefault(); + (e.currentTarget as HTMLElement).setPointerCapture(e.pointerId); + const x0 = e.clientX; + const w0 = sideW; + const onMove = (ev: PointerEvent) => { + setSideW(Math.min(SIDE_W_MAX, Math.max(SIDE_W_MIN, Math.round(w0 + (x0 - ev.clientX))))); + }; + const onUp = () => { + window.removeEventListener('pointermove', onMove); + window.removeEventListener('pointerup', onUp); + }; + window.addEventListener('pointermove', onMove); + window.addEventListener('pointerup', onUp); + }; + useEffect(() => { if (!divRef.current || mapRef.current) return; const m = L.map(divRef.current, { @@ -417,6 +455,16 @@ export function SatellitePanel({ myGrid }: { myGrid: string }) { > {Object.entries(BASEMAPS).map(([k, v]) => )} + {/* Put the whole window on the map. On a laptop the readout takes a + third of the screen, and there are moments — watching a footprint + cross an ocean — when the map IS the answer. */} + {err &&
{err}
} @@ -431,7 +479,21 @@ export function SatellitePanel({ myGrid }: { myGrid: string }) {
-
+ {sideShown && ( +
setSideW(SIDE_W_DEFAULT)} + className="group relative shrink-0 w-2 cursor-col-resize flex items-center justify-center" + > + +
+ )} + +
{/* The pass. The first thing an operator looks at and the reason they sit down: how long have I got, and how high does it get. */}
-
- - set('grid', e.target.value.toUpperCase())} /> -
set('min_el', num(e.target.value))} />
-
-

{t('satset.gridHint')}

- -
set('window_h', num(e.target.value))} />
+

{t('satset.altHint')}

+ + {/* The locator is NOT repeated here: it is the station's, set once in + Station information, and the passes are predicted from it. This is + the exception — an antenna at another site — and it says so, so + nobody has to wonder which of two locators is in use. */} +
+ + {t('satset.otherSite')} + +
+ set('grid', e.target.value.toUpperCase())} /> + {t('satset.otherSiteHint')} +
+

{t('satset.rotor')}

@@ -4569,8 +4576,11 @@ function SettingsModalImpl({ onClose, onSaved, initialSection, onMainPaneChanged <> {/* Who drives the mast. Not a detail: a station already running PstRotator must NOT have OpsLog on the same cable as well. */} -
-
+
+ {/* Two columns wide: "OpsLog (EasyComm II)" does not fit in a + third of the row, and a truncated choice is a choice an + operator cannot read. */} +