fix(ui): wizard CONFIGURATION step + drop bogus --archetype custom preview
The CONFIGURATION step had a stale disabled placeholder textarea
("per-service overrides") from before the schema-driven Inspector
landed. Replaced with a one-line info banner pointing at the Inspector,
which is now where per-service config actually lives.
The DEPLOY step's CLI preview was rendering '--archetype custom' when
pickMode==='services', but no such archetype is registered — only the
preset archetypes plus 'services' (free-form list). Drop the
--archetype line entirely in the services-mode preview so the rendered
command reflects what the API actually receives.
This commit is contained in:
@@ -707,18 +707,10 @@ const DeployWizard: React.FC<DeployWizardProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="tweak-group">
|
<div className="info-banner" style={{ fontSize: '0.7rem', lineHeight: 1.5 }}>
|
||||||
<label>PER-SERVICE OVERRIDES (k=v, one per line)</label>
|
Per-service config (passwords, banners, response codes, TLS material…)
|
||||||
<textarea
|
is set after deployment in the Inspector: click a service tag on the
|
||||||
className="input"
|
deployed decky to open its schema-driven form.
|
||||||
rows={3}
|
|
||||||
placeholder={'ssh.banner=OpenSSH_8.9p1\nhttp.server_name=nginx/1.24'}
|
|
||||||
disabled
|
|
||||||
style={{ resize: 'vertical', fontFamily: 'var(--font-mono)', opacity: 0.55 }}
|
|
||||||
/>
|
|
||||||
<div className="dim" style={{ fontSize: '0.62rem', letterSpacing: '1px' }}>
|
|
||||||
(placeholder — per-service configuration lands in a follow-up)
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="code-block">
|
<div className="code-block">
|
||||||
@@ -781,10 +773,12 @@ const DeployWizard: React.FC<DeployWizardProps> = ({
|
|||||||
{log.length === 0 && !deploying && (
|
{log.length === 0 && !deploying && (
|
||||||
<>
|
<>
|
||||||
<span className="comment"># decnet deploy \</span>{'\n'}
|
<span className="comment"># decnet deploy \</span>{'\n'}
|
||||||
<span className="key"> --archetype</span>{' '}
|
{pickMode === 'archetype' && archetype && (
|
||||||
<span className="str">
|
<>
|
||||||
{pickMode === 'archetype' ? (archetype?.slug ?? '—') : 'custom'}
|
<span className="key"> --archetype</span>{' '}
|
||||||
</span>{' \\'}{'\n'}
|
<span className="str">{archetype.slug}</span>{' \\'}{'\n'}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<span className="key"> --count</span>{' '}
|
<span className="key"> --count</span>{' '}
|
||||||
<span className="str">{count}</span>{' \\'}{'\n'}
|
<span className="str">{count}</span>{' \\'}{'\n'}
|
||||||
<span className="key"> --prefix</span>{' '}
|
<span className="key"> --prefix</span>{' '}
|
||||||
|
|||||||
Reference in New Issue
Block a user