phoebus_os/installer/live/desktop/common/PhoebusChoice.qml
Phoebus 7e9fa9c2a3
Some checks are pending
ci / test (push) Waiting to run
feat(installer): graphical welcome and install wizard over a typed bridge
Add a branded live welcome window and a Quickshell/QML installer frontend
over a narrow, fail-closed JSON bridge (phoebus-installer --gui-bridge)
that reuses the same InstallConfig, plan, validation, authorization and
staged executor as the TUI/CLI. Add the Phoebus brand system (emblem,
wordmark, wallpaper, tokens), suppress DMS first-run dialogs on the live
medium, identify the live medium as protected, make the installer
shortcut live-only, and fix the installed boot default so systemd-boot
never selects the recovery entry.

Verified in a disposable graphical VM (welcome/installer journey,
duplicate prevention, keyboard navigation, blocked AI prerequisite) plus
a real non-interactive install and detached boot (INSTALL-RC=0,
NO_SECRET_LEAK, systemd running, 0 failed units, LUKS2, Btrfs, network).
2026-09-21 13:13:40 -07:00

27 lines
832 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)
spacing: 8
width: parent ? parent.width : implicitWidth
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)
}
}
}