Introduce AddWalletButton and connect it to the AddWallet flow #418

Manually merged
johnny9 merged 2 commits from add-wallet-button into main 2025-03-17 10:43:30 +00:00 AGit
johnny9 commented 2024-08-24 04:42:45 +00:00 (Migrated from github.com)

These commits enable the "Add Wallet" button at the bottom of the Wallet Select menu on Desktop

These commits enable the "Add Wallet" button at the bottom of the Wallet Select menu on Desktop <!-- Link to github actions build artifacts. [![Build Artifacts](https://img.shields.io/badge/Build%20Artifacts-green )]() -->
MarnixCroes (Migrated from github.com) reviewed 2024-08-24 09:26:55 +00:00
MarnixCroes (Migrated from github.com) left a comment

4b79351937f0228504ff2c3dfdbb20d1a1915059
the space between the icon and the text is different than from master

Master

Screenshot from 2024-08-24 11-06-36

PR

Screenshot from 2024-08-24 11-06-48


maybe for follow up:
At the AddWallet page, the Skip button 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 appropriate

4b79351937f0228504ff2c3dfdbb20d1a1915059 the space between the icon and the text is different than from master <details> <summary>Master</summary> <br> ![Screenshot from 2024-08-24 11-06-36](https://git.fish.foo/attachments/c2ee9024-24f5-440d-b43b-87056c196855) </details> <details> <summary>PR</summary> <br> ![Screenshot from 2024-08-24 11-06-48](https://git.fish.foo/attachments/5fb679db-8de7-425f-b375-4a421d1f6743) </details> --- maybe for follow up: At the AddWallet page, the `Skip` button 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 appropriate
hebasto commented 2024-09-02 14:34:00 +00:00 (Migrated from github.com)

cc @GBKS

cc @GBKS
GBKS commented 2024-09-11 06:55:39 +00:00 (Migrated from github.com)

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.

Bitcoin Core App PR 418 review 240911

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

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. ![Bitcoin Core App PR 418 review 240911](https://git.fish.foo/attachments/4e003df8-a292-4fe6-90a1-e90c2209ee73) 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
rabbitholiness commented 2024-09-18 09:08:55 +00:00 (Migrated from github.com)

On macOS, the wallet name screen would not allow me to add spaces to the wallet name
Screenshot 2024-09-18 at 10 38 10

On macOS, the wallet name screen would not allow me to add spaces to the wallet name <img width="919" alt="Screenshot 2024-09-18 at 10 38 10" src="https://git.fish.foo/attachments/1bbd7037-2cd2-4366-ad25-c233075f2acd">
jarolrod (Migrated from github.com) reviewed 2024-10-26 23:42:13 +00:00
jarolrod (Migrated from github.com) commented 2024-10-26 23:42:13 +00:00
This should be rebased over https://github.com/bitcoin-core/gui-qml/pull/427
pablomartin4btc (Migrated from github.com) approved these changes 2024-11-08 20:36:34 +00:00
pablomartin4btc (Migrated from github.com) left a comment

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 @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.
MarnixCroes (Migrated from github.com) approved these changes 2024-11-09 09:04:26 +00:00
MarnixCroes (Migrated from github.com) left a comment

tACK 694025a8b4d202a6edf91d59e9c3c9d0c24314ab

tACK 694025a8b4d202a6edf91d59e9c3c9d0c24314ab
johnny9 commented 2024-12-02 01:50:50 +00:00 (Migrated from github.com)
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
GBKS commented 2024-12-05 09:10:18 +00:00 (Migrated from github.com)

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:

  • First-use experience: "Skip" button on the right
  • In-app wallet creation: "Cancel" button on the left
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: - First-use experience: "Skip" button on the right - In-app wallet creation: "Cancel" button on the left
johnny9 commented 2024-12-17 19:24:14 +00:00 (Migrated from github.com)

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).

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.

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:

This is a good idea and I will give myself the task of implementing this

> 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). 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. > 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: This is a good idea and I will give myself the task of implementing this
johnny9 commented 2024-12-17 19:39:52 +00:00 (Migrated from github.com)

Update from 2f04d12 to 482c1f0

  • rebased with main
Update from [2f04d12](https://github.com/bitcoin-core/gui-qml/commit/2f04d1272467b60b948e4e0f504ee759a440b999) to [482c1f0](https://github.com/bitcoin-core/gui-qml/commit/482c1f02fea3a58e29566597302ed114da9d19b8) - rebased with main
johnny9 commented 2025-03-11 19:20:00 +00:00 (Migrated from github.com)

Update from 482c1f0 to be397b6

  • Rebased with main
Update from [482c1f0](https://github.com/bitcoin-core/gui-qml/commit/482c1f02fea3a58e29566597302ed114da9d19b8) to [be397b6](https://github.com/bitcoin-core/gui-qml/commit/be397b6ddc034c3cd29cb3c9d40e9e74b22024c2) - Rebased with main
johnny9 commented 2025-03-11 20:08:59 +00:00 (Migrated from github.com)

Update from be397b6 to 2d2be8c

  • Squashed UI related commits into one
Update from [be397b6](https://github.com/bitcoin-core/gui-qml/commit/be397b6ddc034c3cd29cb3c9d40e9e74b22024c2) to [2d2be8c](https://github.com/bitcoin-core/gui-qml/commit/2d2be8c27c3d20bb6565b2560487ec158b4ffc6a) - Squashed UI related commits into one
johnny9 (Migrated from github.com) reviewed 2025-03-11 20:10:07 +00:00
johnny9 (Migrated from github.com) left a comment

Tested on Ubuntu

  • Click Add Wallet
  • Enter wallet name and click through onboarding
  • Check wallet name now appears in wallet selector and check that it can be selected.

@jarolrod

Tested on Ubuntu - Click Add Wallet - Enter wallet name and click through onboarding - Check wallet name now appears in wallet selector and check that it can be selected. @jarolrod
hebasto (Migrated from github.com) approved these changes 2025-03-17 10:39:38 +00:00
hebasto (Migrated from github.com) left a comment

ACK 2d2be8c27c, tested on Ubuntu 24.10.

ACK 2d2be8c27c3d20bb6565b2560487ec158b4ffc6a, tested on Ubuntu 24.10.
hebasto (Migrated from github.com) commented 2025-03-17 10:39:32 +00:00

nit: Accidental deletion?

nit: Accidental deletion?
Rsed19901 (Migrated from github.com) reviewed 2025-03-17 11:10:55 +00:00
Rsed19901 (Migrated from github.com) commented 2025-03-17 11:10:55 +00:00

@rsed🥰🥰

@rsed🥰🥰
johnny9 (Migrated from github.com) reviewed 2025-03-17 13:36:03 +00:00
johnny9 (Migrated from github.com) commented 2025-03-17 13:36:03 +00:00

yes, ill fix that in the next PR

yes, ill fix that in the next PR
Sign in to join this conversation.
No description provided.