control panel ux

This commit is contained in:
ThePetrovich 2025-07-04 00:40:53 +08:00
parent a1d80eb984
commit 7d01fce094
8 changed files with 219 additions and 60 deletions

View file

@ -13,7 +13,8 @@
} from "@sveltestrap/sveltestrap";
import { PROFILE_MAP } from "$lib/types";
import { FlightParametersStore, writeLocalStorage } from "$lib/stores";
import { FlightParametersStore, writeLocalStorage, ScenarioStore, SavedScenarioTemplatesStore } from "$lib/stores";
import SelectSearchable from "$lib/components/SelectSearchable.svelte";
let isCollapsed = false;
@ -55,9 +56,20 @@
{#if !isCollapsed}
<CardBody>
<FormGroup spacing="mb-2">
<Label for="scenarioName" class="form-label">Название сценария:</Label>
<Label for="scenarioName" class="form-label">енарий:</Label>
<InputGroup size="sm">
<Input id="scenarioName" type="text" />
<SelectSearchable
id="startPoint"
options={$SavedScenarioTemplatesStore.map(scenario => ({
value: scenario.id,
label: scenario.name,
}))}
placeholder="Выберите сценарий..."
searchPlaceholder="Поиск сценариев..."
/>
<Button color="success" title="Применить сценарий">
<span></span>
</Button>
</InputGroup>
</FormGroup>