mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:18:39 +00:00
Introduce Signal Based Navigation Model to have Self-Contained Pages #427
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!427
Loading…
Reference in a new issue
No description provided.
Delete branch "contain-pages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Here we introduce a Signal Based navigation model, so that we can have self-contained pages. Self-contained pages include everything they need where they are declared, and do not have more than one definition. This makes pages modular, easier to reason about, but also easier to maintain by eliminating dependencies on hard-coded IDs, direct calls to parent views, and interlinked properties between pages.
When we want to reason about
PageA.qml, we only have to look in there and the child components it uses, and not have to use a search function to ensure we have the entire scope ofPageA.qml.To Achieve this, this PR implements the following main ideas:
Additionally, while here we structure the CreateWallet flow into a Wizard.
Follow-Ups:
Consider moving onboarding and walletName into more appropriate backend objects.
cACK
I went through all the pages, including onboarding and it work ok.
related lint failure should be fixable
nit
remove white line?
same
Concept ACK
No qml errors when going through onboard. Looks like there are just some whitespace issues to fix to make the lint job happy.
we should set a style guide actually
Updated from from 59aeba2 to
3f94240compareChanges: address style feedback and fix white-space lint
ACK
3f9424042bACK
3f9424042bpost-merge tACK
3f9424042bAs discussed offline, we should do that + some specific dev notes for this repo.