mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Introduce AddWalletButton and connect it to the AddWallet flow #418
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!418
Loading…
Reference in a new issue
No description provided.
Delete branch "add-wallet-button"
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?
These commits enable the "Add Wallet" button at the bottom of the Wallet Select menu on Desktop
4b79351937f0228504ff2c3dfdbb20d1a1915059
the space between the icon and the text is different than from master
Master
PR
maybe for follow up:
At the AddWallet page, the
Skipbutton in in the right top should get a condition to only have it when in the onboarding flow. Now in the app when you click add wallet button -> Add Wallet page has a skip button, which makes no sense. a cancel would be more appropriatecc @GBKS
Nice work adding this functionality. I did a review of the full flow (MacOS) and added my notes in the visual below. Some of them will not be relevant to the focus of this PR and should probably be better handled in a separate one. Let me know how you want to handle that.
And in written form:
1. Wallet selector dropdown
1.1 All font sizes should be 15px (not 13, 14, and 15)
1.2 Reduce spacing between "+" icon and label in the "+ Add Wallet" button
2. Add a wallet screen
2.1 In the transition to this screen, the new screen should slide in from below (not from the right)
2.2 Replace "Skip" button in the top-right, but a "Cancel" button in the top-left (keep "Skip" on this screen when it is shown in the onboarding sequence)
3. Choose a wallet name screen
3.1 Replace "Continue" button label with "Next"
4. Choose a password screen
All good
5. Your wallet has been created screen
5.1 Do we want to offer a "Back" button here? It is convenient for users, yet also creates a new wallet every time they go back and forth - is that a problem?
6. Back up your wallet screen
6.1 Same question about the "Back" button as above
6.2 "View file" button label should be white
6.3 Reduce spacing between buttons to 20px
6.4 When exiting this screen, it should slide down
7. Activity screen post wallet creation
7.1 The newly created wallet should now be active
On macOS, the wallet name screen would not allow me to add spaces to the wallet name

This should be rebased over https://github.com/bitcoin-core/gui-qml/pull/427
tACK 694025a8b4d202a6edf91d59e9c3c9d0c24314ab
@rabbitholiness, this is only the UI link to the existent flow (
CreateName.qml- not included in this PR), where there's a validator (dev's note: regexp qt class is deprecated and needs to be updated) which needs to be modified to include spaces as you said and I tested it too. Also to that flow we need to add functionality to the "Import wallet" and "View file" buttons, make the encryption not mandatory and perhaps as in Qt switch to the recently created wallet.tACK 694025a8b4d202a6edf91d59e9c3c9d0c24314ab
Previous:
https://github.com/user-attachments/assets/ed5e64af-1f4b-494c-a6fe-cf767ab39066
Updated:
https://github.com/user-attachments/assets/8b16dac8-466b-405f-a438-7cca5a7484c8
Web prototype:
https://github.com/user-attachments/assets/af4de29d-3a72-472d-8e59-bfd819df7b70
Nice one. Looks like there's an issue with the web prototype in that the menu does not disappear when entering the create wallet flow. I'll make a note of that.
Something I noticed is that clicking the balance always toggle the menu to be visible. But when it is visible, and I click the balance again, the menu should disappear. Not having looked at the code at all, but knowing similar setups from building web apps, my assumption is that there is the click-outside-of-the-menu event handles is the reason for this. The mouse-down on the balance is counted as a click outside of the menu, which causes it to close. Then right after the click on the balance is triggered. Since the menu is now closed, it shows the menu again. So that mouse-down on the balance should not trigger the close (if that makes sense).
Another tweak (outside of this PR probably) is to show a "Cancel" button in the top-left of the first screen of the create wallet flow. That flow can be entered in two ways, with each one requiring different top bar options, so they make sense in context:
You are spot on with this issue. I tried pretty hard to get this behavior fixed but i didn't find a good solution with the context we have. Hopefully a fresh look at it soon and I'll be able to solve it.
This is a good idea and I will give myself the task of implementing this
Update from 2f04d12 to 482c1f0
Update from 482c1f0 to be397b6
Update from be397b6 to 2d2be8c
Tested on Ubuntu
@jarolrod
ACK
2d2be8c27c, tested on Ubuntu 24.10.nit: Accidental deletion?
@rsed🥰🥰
yes, ill fix that in the next PR