diff --git a/build/dashboard/mining_dashboard/web/static/wizard.mjs b/build/dashboard/mining_dashboard/web/static/wizard.mjs index fc349f9b..ecea3722 100644 --- a/build/dashboard/mining_dashboard/web/static/wizard.mjs +++ b/build/dashboard/mining_dashboard/web/static/wizard.mjs @@ -87,7 +87,16 @@ export const Gate = ({ error, onSubmit }) => html`
// right — bench screenshots cut off exactly the erase/keep words), and is restated in full // below the control, red when destructive. The server re-validates the choice against the // inventory the HOST published; a browser can never name a disk the host did not offer. -export const InstallSection = ({ disks, chosen, confirm, wipe, onPick, onConfirm, onWipe }) => { +export const InstallSection = ({ + disks, + chosen, + confirm, + wipe, + allowStick, + onPick, + onConfirm, + onWipe, +}) => { const picked = disks.find((d) => d.name === chosen); const verdictText = (d) => d.state === "pithead-with-data" @@ -100,6 +109,13 @@ export const InstallSection = ({ disks, chosen, confirm, wipe, onPick, onConfirm <${Field} label="Target disk"> + ${ + chosen === "usb" && + html`<${Note}>The stick stays in the machine and is the system: the rig's settings ride + on it, no disk is touched, and pulling it out just stops the miner.` + } ${ picked && picked.state === "pithead-with-data" && @@ -158,10 +179,19 @@ export const Installing = ({ status }) => html`
}
`; -export const Done = ({ status, handoff, installer, onAck }) => html`
+export const Done = ({ status, handoff, installer, stick, rig, onAck }) => html`
${ - handoff - ? html`

Save this before anything else

+ handoff && handoff.role === "rig" + ? html`

Check this rig

+

This is what the machine will be.

+ <${Field} label="Worker name">${handoff.worker} + <${Field} label="Mines toward">${handoff.stratum} + <${Note}>A rig has no dashboard and no login — nothing to save. It appears by this + name in the Pithead's Workers view. + ` + : handoff + ? html`

Save this before anything else

This is shown once, here.

<${Field} label="Dashboard user">${handoff.username} <${Field} label="Dashboard password">${handoff.password} @@ -177,7 +207,12 @@ export const Done = ({ status, handoff, installer, onAck }) => html`