mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-24 04:28:58 +00:00
For the PIN pages: - add a `pinSettingInProgress` bool hint to `KeycardCreatePinPage` when setting/authorizing the PIN is in progress to be able to correctly display the Back button - don't display the "success" image yet when in progress - use the hint in related flows - extract the default attempts numbers to `Constants` For the backup seed phrase sequence: - the mnemonic is a string and gets submitted when exiting the BackupSeedphraseReveal, not right after its (re)creation - when starting the flow (going from `KeycardCreatePinDelayedPage`), replace instead of push, so that Back skips the PIN page - fixup the related SB pages Fixes #17218
79 lines
2.3 KiB
QML
79 lines
2.3 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import AppLayouts.Onboarding2.pages 1.0
|
|
import AppLayouts.Onboarding.enums 1.0
|
|
|
|
import utils 1.0
|
|
|
|
Item {
|
|
id: root
|
|
|
|
readonly property string existingPin: "111111"
|
|
|
|
KeycardEnterPinPage {
|
|
id: page
|
|
anchors.fill: parent
|
|
|
|
authorizationState: authorizationProgressSelector.value
|
|
remainingAttempts: remainingAttemptsSpinBox.value
|
|
|
|
unblockWithPukAvailable: ctrlUnblockWithPUK.checked
|
|
|
|
onAuthorizationRequested: (pin) => {
|
|
console.log("authorization requested:", pin)
|
|
}
|
|
|
|
onUnblockWithSeedphraseRequested: console.log("unblock with seed phrase requested")
|
|
onUnblockWithPukRequested: console.log("unblock with puk requested")
|
|
onKeycardFactoryResetRequested: console.log("factory reset requested")
|
|
}
|
|
|
|
ColumnLayout {
|
|
anchors.left: parent.left
|
|
anchors.bottom: parent.bottom
|
|
anchors.margins: 15
|
|
|
|
spacing: 15
|
|
|
|
Label {
|
|
text: "Hint: %1".arg(root.existingPin)
|
|
}
|
|
|
|
CheckBox {
|
|
id: ctrlUnblockWithPUK
|
|
text: "Unblock with PUK available"
|
|
checked: true
|
|
}
|
|
|
|
RowLayout {
|
|
Label {
|
|
text: "Remaining attempts: "
|
|
}
|
|
|
|
SpinBox {
|
|
id: remainingAttemptsSpinBox
|
|
|
|
from: 0
|
|
to: Constants.onboarding.defaultPinAttempts
|
|
value: Constants.onboarding.defaultPinAttempts
|
|
}
|
|
}
|
|
|
|
ProgressSelector {
|
|
id: authorizationProgressSelector
|
|
|
|
label: "Authorization progress"
|
|
}
|
|
}
|
|
}
|
|
|
|
// category: Onboarding
|
|
// status: good
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1281-45942&node-type=frame&m=dev
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1281-45950&node-type=frame&m=dev
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1281-45959&node-type=frame&m=dev
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1281-45966&node-type=frame&m=dev
|
|
// https://www.figma.com/design/Lw4nPYQcZOPOwTgETiiIYo/Desktop-Onboarding-Redesign?node-id=1281-45996&node-type=frame&m=dev
|