UI Only AU Snapshot Loading Flow #421

Closed
D33r-Gee wants to merge 1 commit from qml-au-display into main AGit
D33r-Gee commented 2024-09-18 21:37:23 +00:00 (Migrated from github.com)

Introducing the UI flow to be able to import a AssumeUTXO (AU) snapshot into the Bitcoin Core App.

The user will be able to load an AU snapshot from the "Connection Settings" page as designed here also AU figma

*This is a UI only commit no actual functionality has been coded. Wiring to actually import a AU snapshot will happen in a future PR

Ubuntu 22.04 Screenshots

Screenshot 2024-09-18 142821
Screenshot 2024-09-18 142834
Screenshot 2024-09-26 111410
Screenshot 2024-09-18 142910
Screenshot 2024-09-18 142930

Introducing the UI flow to be able to import a AssumeUTXO (AU) snapshot into the Bitcoin Core App. The user will be able to load an AU snapshot from the "Connection Settings" page as designed [here](https://bitcoincore.app/snapshot/) also AU [figma](https://www.figma.com/file/ek8w3n3upbluw5UL2lGhRx/Bitcoin-Core-App-Design?type=design&node-id=8842%3A848807&mode=design&t=URVaraZVchEvzHX0-1) *This is a UI only commit no actual functionality has been coded. Wiring to actually import a AU snapshot will happen in a future PR <details> <summary>Ubuntu 22.04 Screenshots</summary> ![Screenshot 2024-09-18 142821](https://git.fish.foo/attachments/3c45b158-213c-4344-8836-0d53e36de326) ![Screenshot 2024-09-18 142834](https://git.fish.foo/attachments/9bb15669-41c0-4c96-aa0d-76bf57f6a57a) ![Screenshot 2024-09-26 111410](https://git.fish.foo/attachments/89a50f4f-91d7-4349-9eeb-2309911803c5) ![Screenshot 2024-09-18 142910](https://git.fish.foo/attachments/273d2999-b23a-49af-a22e-01a331b1293d) ![Screenshot 2024-09-18 142930](https://git.fish.foo/attachments/9befe501-daa9-4cf7-94d2-74d1f77098a6) </details>
jarolrod commented 2024-09-19 13:39:26 +00:00 (Migrated from github.com)

Concept ack

Concept ack
MarnixCroes (Migrated from github.com) reviewed 2024-09-20 17:49:55 +00:00
MarnixCroes (Migrated from github.com) left a comment
  • Doesn't it make more sense to (also) have this part of the onboarding workflow? nvm, I think we shouldn't do this (maybe later)
  • Also, having it at Connection menu would not be something where I would be looking at to find this feature. Maybe it needs an Advanced section?
  • A UI for an incorrect snapshot and/or failure of importing the snapshot is missing
- ~Doesn't it make more sense to (also) have this part of the onboarding workflow?~ nvm, I think we shouldn't do this (maybe later) - Also, having it at `Connection` menu would not be something where I would be looking at to find this feature. Maybe it needs an `Advanced` section? - A UI for an incorrect snapshot and/or failure of importing the snapshot is missing
MarnixCroes (Migrated from github.com) commented 2024-09-20 17:34:58 +00:00

as you said correctly in the import snapshot dialog, it doesn't speed up the download itself.
So this might be misleading.

I think it's better to rephrase it, something like this might be more appropriate Start using right away and do initial synchronization in the background or maybe something short like Do initial synchronization in the background

as you said correctly in the import snapshot dialog, it doesn't speed up the download itself. So this might be misleading. I think it's better to rephrase it, something like this might be more appropriate `Start using right away and do initial synchronization in the background` or maybe something short like `Do initial synchronization in the background`
MarnixCroes (Migrated from github.com) commented 2024-09-20 17:46:47 +00:00
// Copyright (c) 2024-present The Bitcoin Core developers

nit
and at other files you created it has 2023 instead of 2024

```suggestion // Copyright (c) 2024-present The Bitcoin Core developers ``` nit and at other files you created it has 2023 instead of 2024
yashrajd commented 2024-09-23 18:47:32 +00:00 (Migrated from github.com)

Great to see this come to PR stage... how long is the loading process expected take to take on an avg computer? like in the range of seconds or minutes or hours?
We should probably discuss the designs in one of the design community calls.

Great to see this come to PR stage... how long is the loading process expected take to take on an avg computer? like in the range of seconds or minutes or hours? We should probably discuss the designs in one of the design community calls.
D33r-Gee (Migrated from github.com) reviewed 2024-09-23 20:23:35 +00:00
D33r-Gee (Migrated from github.com) commented 2024-09-23 20:23:35 +00:00

thanks for catching that... updated it

thanks for catching that... updated it
D33r-Gee (Migrated from github.com) reviewed 2024-09-23 20:51:59 +00:00
D33r-Gee (Migrated from github.com) commented 2024-09-23 20:51:59 +00:00

Great catch updated the headers with the latest push ed27a5a

Great catch updated the headers with the latest push [ed27a5a](https://github.com/bitcoin-core/gui-qml/commit/ed27a5a523c4fc6586e758df940daa80e8d0dc41)
D33r-Gee commented 2024-09-23 20:53:22 +00:00 (Migrated from github.com)

With ed27a5a addressed comments and added loading snapshot simulation for better testing and feedback

With [ed27a5a](https://github.com/bitcoin-core/gui-qml/commit/ed27a5a523c4fc6586e758df940daa80e8d0dc41) addressed comments and added loading snapshot simulation for better testing and feedback
D33r-Gee commented 2024-09-24 18:49:58 +00:00 (Migrated from github.com)

how long is the loading process expected take to take on an avg computer?

That depends on the user's device and the snapshot (signet, testnet, and mainnet) they are importing. Averages are difficult to calculate since every device is different...
Once we test the functionality (which this PR does not address, being UI only) it will become clearer how long the import process takes.

> how long is the loading process expected take to take on an avg computer? That depends on the user's device and the snapshot (signet, testnet, and mainnet) they are importing. Averages are difficult to calculate since every device is different... Once we test the functionality (which this PR does not address, being UI only) it will become clearer how long the import process takes.
D33r-Gee commented 2024-09-24 18:54:11 +00:00 (Migrated from github.com)

We should probably discuss the designs in one of the design community calls.

That's a great idea! Will be joining future calls so we can discuss design and UX matters.

meanwhile please take the time to test it on your device using one the builds here

> We should probably discuss the designs in one of the design community calls. That's a great idea! Will be joining future calls so we can discuss design and UX matters. meanwhile please take the time to test it on your device using one the builds [here](https://github.com/bitcoin-core/gui-qml/actions)
D33r-Gee commented 2024-09-24 18:55:44 +00:00 (Migrated from github.com)

minor tweak with 5c61613 changed the "Import Snapshot" description to "Instant use with background sync"

minor tweak with 5c61613 changed the "Import Snapshot" description to "Instant use with background sync"
pablomartin4btc (Migrated from github.com) reviewed 2024-09-25 22:18:54 +00:00
pablomartin4btc (Migrated from github.com) left a comment

Concept ACK

  • Load/ Loading instead of Import. Everywhere in the documentation is using this term I'd keep it consistent.
  • Import label description "Speed up initial download". This is not entirely true, that would be more the assume-valid feature. The point of assume-utxo is to allow the user to see recent transactions and spend them before having to wait until the full sync is done.
  • Once the snapshot load is completed, the last page in figma, a message says that the snapshot file will be removed, perhaps this can be optional or asked to the user before starting the process.
  • Last thing, the green ticked icon indicating completion (and background validation), once the validation of the snapshot chain is done, those files related with assume-utxo will be deleted automatically (chain state directory), so there's no way whether a node was "utxo-set" sped up or not. So not sure how long this green indicator would last.. definitely won't be there next restart as explained.

Please also add the figma link of the designers team definitions in the description, I'll add these comments also there.

cc @fjahr, @Sjors, @GBKS

Concept ACK - Load/ Loading instead of Import. Everywhere in the documentation is using this term I'd keep it consistent. - Import label description "Speed up initial download". This is not entirely true, that would be more the [assume-valid](https://river.com/learn/terms/a/assume-valid/) feature. The point of [assume-utxo](https://bitcoinops.org/en/topics/assumeutxo/) is to allow the user to see recent transactions and spend them before having to wait until the full sync is done. - Once the snapshot load is completed, the last page in figma, a message says that the snapshot file will be removed, perhaps this can be optional or asked to the user before starting the process. - Last thing, the green ticked icon indicating completion (and background validation), once the validation of the snapshot chain is done, those files related with assume-utxo will be deleted automatically (chain state directory), so there's no way whether a node was "utxo-set" sped up or not. So not sure how long this green indicator would last.. definitely won't be there next restart as explained. Please also add the [figma](https://www.figma.com/design/ek8w3n3upbluw5UL2lGhRx/Bitcoin-Core-App-Design) link of the designers team definitions in the description, I'll add these comments also there. cc @fjahr, @Sjors, @GBKS
D33r-Gee commented 2024-09-26 20:09:10 +00:00 (Migrated from github.com)

With github.com/bitcoin-core/gui-qml@a1193fcb16 Changed "Import" to "Load" based on @pablomartin4btc suggestion

Also updated the description to include figma link and a screenshot of the "Progress Bar" page

With https://github.com/bitcoin-core/gui-qml/commit/a1193fcb162eb020e4fd1de29a05bbe5f4d5aea9 Changed "Import" to "Load" based on @pablomartin4btc suggestion Also updated the description to include figma link and a screenshot of the "Progress Bar" page
D33r-Gee commented 2024-09-26 20:11:17 +00:00 (Migrated from github.com)
  • Once the snapshot load is completed, the last page in figma, a message says that the snapshot file will be removed, perhaps this can be optional or asked to the user before starting the process.

Yeah maybe a button can be added so that the user has the option to delete the snapshot file. This will be especially relevant for mobile (android) users looking to save storage space on their device.

> * Once the snapshot load is completed, the last page in figma, a message says that the snapshot file will be removed, perhaps this can be optional or asked to the user before starting the process. Yeah maybe a button can be added so that the user has the option to delete the snapshot file. This will be especially relevant for mobile (android) users looking to save storage space on their device.
D33r-Gee commented 2024-09-26 20:16:18 +00:00 (Migrated from github.com)
  • Last thing, the green ticked icon indicating completion (and background validation), once the validation of the snapshot chain is done, those files related with assume-utxo will be deleted automatically (chain state directory), so there's no way whether a node was "utxo-set" sped up or not. So not sure how long this green indicator would last.. definitely won't be there next restart as explained.

Great point, maybe the option can be greyed out with a check mark to indicate the snapshot has been fully validated and the node is synced.

Thoughts @yashrajd @GBKS?

> * Last thing, the green ticked icon indicating completion (and background validation), once the validation of the snapshot chain is done, those files related with assume-utxo will be deleted automatically (chain state directory), so there's no way whether a node was "utxo-set" sped up or not. So not sure how long this green indicator would last.. definitely won't be there next restart as explained. Great point, maybe the option can be greyed out with a check mark to indicate the snapshot has been fully validated and the node is synced. Thoughts @yashrajd @GBKS?
D33r-Gee commented 2024-09-27 21:00:16 +00:00 (Migrated from github.com)

update f016406 rebase over main

update [f016406](https://github.com/bitcoin-core/gui-qml/commit/f016406c8c239c4495043318de20a24283593371) rebase over main
GBKS commented 2024-10-01 11:38:50 +00:00 (Migrated from github.com)

Thanks for working on this. I just tested locally, and there are a lot of visual details that need tweaking (icon needs to be bigger, title text bold, vertical spacing too tight, line-height too tight, etc). Do you want me to list those out? It's pretty easy to spot them comparing the application to the designs.

A larger thing is the page transitions. The idea here is that the snapshot flow is just "one page deep". So instead of this:

Settings -> Snapshot -> Loading snapshot -> Done

It's just this:

Settings -> Snapshot

So you stay in the same screen, but the state of the screen changes and therefore the info you see, with fade out/in transitions. You can see this in the web prototype.


Regarding the point about indicating that the snapshot was validated completely. My assumption was that at that point (snapshot is validated and the user has seen the screen that states so) we replace the "Load snapshot" functionality with the "Create snapshot" functionality. Does that work?

Thanks for working on this. I just tested locally, and there are a lot of visual details that need tweaking (icon needs to be bigger, title text bold, vertical spacing too tight, line-height too tight, etc). Do you want me to list those out? It's pretty easy to spot them comparing the application to the designs. A larger thing is the page transitions. The idea here is that the snapshot flow is just "one page deep". So instead of this: > Settings -> Snapshot -> Loading snapshot -> Done It's just this: > Settings -> Snapshot So you stay in the same screen, but the state of the screen changes and therefore the info you see, with fade out/in transitions. You can see this in the [web prototype](https://lively-kashata-cfde7e.netlify.app/screen/snapshot?t=slide-left). --- Regarding the point about indicating that the snapshot was validated completely. My assumption was that at that point (snapshot is validated and the user has seen the screen that states so) we replace the "Load snapshot" functionality with the "Create snapshot" functionality. Does that work?
GBKS commented 2024-10-01 11:43:32 +00:00 (Migrated from github.com)

Also, would it be possible to fix the actions? They are currently not building all the artifacts correctly. Thanks.

Also, would it be possible to fix the actions? They are currently not building all the artifacts correctly. Thanks.
D33r-Gee commented 2024-10-01 16:42:21 +00:00 (Migrated from github.com)

Also, would it be possible to fix the actions? They are currently not building all the artifacts correctly. Thanks.

from @jarolrod in discord PM: "the ci error is unrelated to code and just needs to be rerun"

> Also, would it be possible to fix the actions? They are currently not building all the artifacts correctly. Thanks. from @jarolrod in discord PM: "the ci error is unrelated to code and just needs to be rerun"
D33r-Gee commented 2024-10-01 16:45:27 +00:00 (Migrated from github.com)

Do you want me to list those out?

No worries, I'll make the tweaks and see if they are addressed...

> Do you want me to list those out? No worries, I'll make the tweaks and see if they are addressed...
pablomartin4btc (Migrated from github.com) reviewed 2024-10-02 18:53:21 +00:00
pablomartin4btc (Migrated from github.com) left a comment

ACK f016406c8c239c4495043318de20a24283593371

Regarding the commits, the first commit adds the files that don't exist yet, I'd move the first commit to the end, becoming the 4th.

The 2nd commit imports the controls that are being updated in the 3rd, so I'd swap these 2 commits.

That's all, I'll review the code when I play around with the testing.

ACK f016406c8c239c4495043318de20a24283593371 Regarding the commits, the first commit adds the files that don't exist yet, I'd move the first commit to the end, becoming the 4th. The 2nd commit imports the controls that are being updated in the 3rd, so I'd swap these 2 commits. That's all, I'll review the code when I play around with the testing.
D33r-Gee commented 2024-10-02 22:30:53 +00:00 (Migrated from github.com)

That's all, I'll review the code when I play around with the testing.

Thanks for taking a look... I'm about to update the commits incorporating Christoph's comments... So please wait before testing?

> That's all, I'll review the code when I play around with the testing. Thanks for taking a look... I'm about to update the commits incorporating Christoph's comments... So please wait before testing?
D33r-Gee commented 2024-10-03 19:15:28 +00:00 (Migrated from github.com)

with e5bbabd squashed the commits into one, addressed spacing issues, and got rid off pages using Stack layout in SnapshotSettings.qml

with [e5bbabd](https://github.com/bitcoin-core/gui-qml/commit/e5bbabdc68c36e4beca7d12fdbb2f102fc259e8c) squashed the commits into one, addressed spacing issues, and got rid off pages using Stack layout in SnapshotSettings.qml
pablomartin4btc commented 2024-10-03 20:48:46 +00:00 (Migrated from github.com)

with e5bbabd squashed the commits into one

Ok, it was not necessary as per my review, the separation made sense, just the order, but up to you.

I think for the lint failure you'll need to exclude the QML resources as it's done for QT in get_pathspecs_exclude_whitespace (test/lint/test_runner/src/main.rs): "src/qt/res/src/*.svg",

> with [e5bbabd](https://github.com/bitcoin-core/gui-qml/commit/e5bbabdc68c36e4beca7d12fdbb2f102fc259e8c) squashed the commits into one Ok, it was not necessary as per my [review](https://github.com/bitcoin-core/gui-qml/pull/421#pullrequestreview-2343844862), the separation made sense, just the order, but up to you. I think for the lint failure you'll need to exclude the `QML` resources as it's done for `QT` in `get_pathspecs_exclude_whitespace` (`test/lint/test_runner/src/main.rs`): `"src/qt/res/src/*.svg",`
D33r-Gee commented 2024-10-03 23:51:53 +00:00 (Migrated from github.com)

the separation made sense

Thanks, decided to adhere to the CONTIBUTING guidelines more thoroughly ;)

For the lint it turns out a couple of svg files had trailing whitespaces, 3ca75a4 addresses that

> the separation made sense Thanks, decided to adhere to the CONTIBUTING guidelines more thoroughly ;) For the lint it turns out a couple of svg files had trailing whitespaces, [3ca75a4](https://github.com/bitcoin-core/gui-qml/commit/3ca75a4e69a984cb58555af98114606c735e98f2) addresses that
D33r-Gee commented 2025-04-24 21:02:13 +00:00 (Migrated from github.com)

Closing this PR since most of the work has moved to #424 and #446

Closing this PR since most of the work has moved to #424 and #446
Sign in to join this conversation.
No description provided.