Update TGU 2D map spacecraft visibility controls

Switch the 2D map sidebar from single-spacecraft selection to per-spacecraft visibility toggles, add a show-all action, and update map tab labels and styles for the all-spacecraft view.
This commit is contained in:
Дмитрий Соловьев
2026-05-30 21:13:50 +03:00
parent 39f108e496
commit 3d508b6be9
6 changed files with 72 additions and 54 deletions
@@ -202,14 +202,8 @@ export function TguPlanningPage() {
<Tgu2DMapTab
range={appliedRange}
invalidRange={invalidRange}
selectedSpacecraftId={selectedSpacecraftId}
selectedPlan={selectedPlan}
platforms={platforms}
onSelectSpacecraft={(spacecraftId) => {
setSelectedSpacecraftId(spacecraftId);
setSelectedPlanId(undefined);
setDecisionNotice(undefined);
}}
/>
) : (
<TguEditorTab
@@ -47,7 +47,7 @@ export function TguToolbar({
aria-selected={activeTab === "timeline"}
onClick={() => onTabChange("timeline")}
>
Timeline
Планы
</button>
<button
className={activeTab === "map" ? "is-active" : ""}