2024-11-06 00:39:08 +01:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
|
|
|
import StatusQ.Core.Backpressure 0.1
|
|
|
|
|
|
|
|
import AppLayouts.Onboarding2.pages 1.0
|
|
|
|
import AppLayouts.Onboarding.enums 1.0
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
KeycardAddKeyPairPage {
|
|
|
|
id: progressPage
|
2025-01-09 14:31:19 +01:00
|
|
|
|
2024-11-06 00:39:08 +01:00
|
|
|
anchors.fill: parent
|
2025-01-28 17:20:20 +01:00
|
|
|
addKeyPairState: ctrlState.currentValue
|
2025-01-09 14:31:19 +01:00
|
|
|
|
2024-11-06 00:39:08 +01:00
|
|
|
onKeypairAddTryAgainRequested: {
|
|
|
|
console.warn("!!! onKeypairAddTryAgainRequested")
|
2025-02-04 08:22:05 -05:00
|
|
|
ctrlState.currentIndex = ctrlState.indexOfValue(Onboarding.ProgressState.InProgress)
|
2024-11-06 00:39:08 +01:00
|
|
|
Backpressure.debounce(root, 2000, function() {
|
|
|
|
console.warn("!!! SIMULATION: SUCCESS")
|
2025-02-04 08:22:05 -05:00
|
|
|
ctrlState.currentIndex = ctrlState.indexOfValue(Onboarding.ProgressState.Success)
|
2024-11-06 00:39:08 +01:00
|
|
|
})()
|
|
|
|
}
|
|
|
|
onKeypairAddContinueRequested: console.warn("!!! onKeypairAddContinueRequested")
|
|
|
|
onCreateProfilePageRequested: console.warn("!!! onCreateProfilePageRequested")
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
id: ctrlState
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
width: 350
|
2025-01-28 17:20:20 +01:00
|
|
|
textRole: "name"
|
|
|
|
valueRole: "value"
|
2025-02-04 08:22:05 -05:00
|
|
|
model: Onboarding.getModelFromEnum("ProgressState")
|
2024-11-06 00:39:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Onboarding
|
|
|
|
// status: good
|
|
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1305-48023&node-type=frame&m=dev
|
|
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1305-48081&node-type=frame&m=dev
|
|
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1305-48102&node-type=frame&m=dev
|