Lukáš Tinkl 3705249e40 feat(Onboarding): Create Profile & Login flows
- implement the basic Onboarding UI skeleton and the Create Profile
flows
- adjust the PasswordView and EnterSeedPhrase views to the latest design
- add the main OnboardingLayout and StatusPinInput pages to Storybook
- change terminology app-wide: "Seed phrase" -> "Recovery phrase"
- implement the Login flows (seed, sync, keycard)
- amend the keycard flow sequences with separate (non) empty page

Fixes #16719
Fixes #16742
Fixes #16743
2025-01-14 10:49:42 +01:00

57 lines
1.2 KiB
QML

import QtQuick 2.15
import shared.popups 1.0
import shared.views 1.0
import "../stores"
Item {
id: root
property StartupStore startupStore
implicitWidth: layout.implicitWidth
implicitHeight: layout.implicitHeight
Timer {
id: nextStateDelay
property string connectionString
interval: 1000
repeat: false
onTriggered: {
root.startupStore.setConnectionString(nextStateDelay.connectionString)
root.startupStore.doPrimaryAction()
}
}
SyncingEnterCode {
id: layout
objectName: "syncingEnterCode"
anchors.centerIn: parent
width: 400
spacing: 24
validateConnectionString: function(connectionString) {
const result = root.startupStore.validateLocalPairingConnectionString(connectionString)
return result === ""
}
onProceed: {
nextStateDelay.connectionString = connectionString
nextStateDelay.start()
}
onDisplayInstructions: {
instructionsPopup.open()
}
}
GetSyncCodeInstructionsPopup {
id: instructionsPopup
}
}