mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 02:58:55 +00:00
* feat(onboarding): integrate all keycard flows for the new onboarding Fixes #17079 * chore: bump submodules to merged versions * fix: rebase fixes * chore: bump status-keycard-go to use Go 1.21 * feat: add FactoryResetting state * chore: minor fixes * add KeycardRemainingPinAttempts * minor fixes * minor fixes --------- Co-authored-by: Igor Sirotin <sirotin@status.im>
47 lines
1.6 KiB
QML
47 lines
1.6 KiB
QML
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
|
|
|
|
anchors.fill: parent
|
|
addKeyPairState: ctrlState.currentValue
|
|
|
|
onKeypairAddTryAgainRequested: {
|
|
console.warn("!!! onKeypairAddTryAgainRequested")
|
|
ctrlState.currentIndex = ctrlState.indexOfValue(Onboarding.ProgressState.InProgress)
|
|
Backpressure.debounce(root, 2000, function() {
|
|
console.warn("!!! SIMULATION: SUCCESS")
|
|
ctrlState.currentIndex = ctrlState.indexOfValue(Onboarding.ProgressState.Success)
|
|
})()
|
|
}
|
|
onKeypairAddContinueRequested: console.warn("!!! onKeypairAddContinueRequested")
|
|
onReloadKeycardRequested: console.warn("!!! onReloadKeycardRequested")
|
|
onCreateProfilePageRequested: console.warn("!!! onCreateProfilePageRequested")
|
|
}
|
|
|
|
ComboBox {
|
|
id: ctrlState
|
|
anchors.right: parent.right
|
|
anchors.bottom: parent.bottom
|
|
width: 350
|
|
textRole: "name"
|
|
valueRole: "value"
|
|
model: Onboarding.getModelFromEnum("ProgressState")
|
|
}
|
|
}
|
|
|
|
// 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
|