diff --git a/frontend/apps/rd-console/src/App.svelte b/frontend/apps/rd-console/src/App.svelte index 69be863..33294af 100644 --- a/frontend/apps/rd-console/src/App.svelte +++ b/frontend/apps/rd-console/src/App.svelte @@ -24,7 +24,7 @@ * routes between them and owns the session. */ import '@gridfpv/components/tokens.css'; - import { ToastHost, Dialog, Button, Field, Input, toast } from '@gridfpv/components'; + import { ToastHost } from '@gridfpv/components'; import { Session } from './lib/session.svelte.js'; import { mountRaceDayAudio } from './lib/raceDayAudio.svelte.js'; import ContextHeader from './ContextHeader.svelte'; @@ -230,23 +230,10 @@ } // ── Settings (the RD token, set/cleared up front) ────────────────────────── - let settingsOpen = $state(false); - let tokenInput = $state(''); - function openSettings() { - tokenInput = ''; - settingsOpen = true; - } - function saveToken() { - if (!tokenInput.trim()) return; - session.setToken(tokenInput.trim()); - settingsOpen = false; - toast.success('Control token saved for this session.'); - } - function clearToken() { - session.clearToken(); - tokenInput = ''; - toast.info('Control token cleared.'); - } + // v1 keeps NO manual settings surface: the control token is requested automatically by + // TokenDialog when a privileged action needs one (loopback needs none at all), and the + // setup wizard runs once on event creation (everything it sets stays editable on the + // pages). The old gear/settings dialog + "Setup wizard" relaunch button are gone. @@ -332,45 +319,9 @@ - setTab('live')} onswitchevent={leaveToPicker} /> + setTab('live')} /> {activeScreen?.label} - (wizardOpen = true)} - title="Walk this event's setup — classes, roster, timer, first round" - > - - - - Setup wizard - - - - - - {#if session.hasToken}{/if} - @@ -421,33 +372,9 @@ {/if} - + - - - - - - - A token is only needed for privileged actions (creating an event, running a heat, registering, - marshaling). You'll be asked automatically when one is required. - - - {#snippet footer()} - {#if session.hasToken} - Clear token - {/if} - Save token - {/snippet} - -
- A token is only needed for privileged actions (creating an event, running a heat, registering, - marshaling). You'll be asked automatically when one is required. -