Rework the graphical installer into a fixed first-time-user sequence (Welcome, Language and keyboard, Internet and readiness, AI connection, Destination disk, Account and encryption, Review and confirmation, Installation, Completion) with configuration, validation, plans, approval and execution still authoritative in Rust. Fix the audited interaction defects: readiness `Re-check` is a read-only probe that no longer resets the step or clears the disk; model catalogs are fetched after syncing the edited settings and credentials and stale replies are ignored; editing a connection field invalidates the validated state; suggestion lists support arrow/Enter/Escape with a visible highlight and accessibility; the keyboard step labels the live-session limitation truthfully; readiness separates the local link from reachable install services; and busy states always clear, with the bridge failing outstanding requests when the backend exits. Add human-readable language/keyboard names, an explicit AI change review (Accept/Discard), backend-fact review with edit links, real stage progress with elapsed time and activity, and clearer failure and completion guidance. Extend the VM harness with a `gui-install` mode that drives the whole journey through the visible controls, plus regressions for readiness refresh, disk survival, keyboard suggestion selection and AI invalidation. Add Rust tests for readiness, the network probe, error kinds and labels.
33 lines
971 B
Bash
33 lines
971 B
Bash
import QtQuick
|
|
|
|
// A wrapping row of selectable pills. Used for small, closed option sets
|
|
// (filesystem, kernel profile, AI provider, ...). Keyboard-navigable.
|
|
Flow {
|
|
id: choice
|
|
|
|
property var options: []
|
|
property string value: ""
|
|
property bool compact: true
|
|
signal selected(string value)
|
|
|
|
function focusFirst() {
|
|
if (repeater.count > 0)
|
|
repeater.itemAt(0).forceActiveFocus();
|
|
}
|
|
|
|
spacing: 8
|
|
width: parent ? parent.width : implicitWidth
|
|
|
|
Repeater {
|
|
id: repeater
|
|
model: choice.options
|
|
|
|
delegate: PhoebusButton {
|
|
required property var modelData
|
|
label: modelData.label !== undefined ? modelData.label : modelData
|
|
primary: (modelData.value !== undefined ? modelData.value : modelData) === choice.value
|
|
compact: choice.compact
|
|
onClicked: choice.selected(modelData.value !== undefined ? modelData.value : modelData)
|
|
}
|
|
}
|
|
}
|