mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:18:39 +00:00
Introduce the StorageOptions component and TextButton control #102
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!102
Loading…
Reference in a new issue
No description provided.
Delete branch "storageoptions-component"
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?
This introduces the StorageOptions component which represents the storage options page as designed in the main design file.
This component reuses the
OptionButtoncontrol by making modifications to it. We refactor theOptionButtoncontrol to reuse theHeadercontrol instead of specifying separate labels. This simplifies the control itself.The demo of this component can be found here: storageoptions-demo. In the demo, the
StorageOptionscomponent is added to our stack. Now that there are several elements in the stack, we need some navigation. Therefore, this also introduces theTextButtoncontrol which represents text based buttons such as the "back" navigation button and the "detailed settings" button. This addedTextButtoncontrol is then given the text "< Back" and added to the header of our ApplicationWindow. When clicked, this button will rewind the stack. Only visible when the currentIndex of the stack is < 0.Images of added elements
@jarolrod please take a look at #103 for an alternative to the option button change.
updated from 4c1a5b8 -> e98b0e5
Changes:
Updated from e98b0e5 -> a57fbb0:
Changes:
Looks great. Could we also introduce an "Icon text button", so we don't need to rely on text characters for the caret on the Back button?
Updated from a57fbb0 ->
f440d82@GBKS
Sure! We'll leave this for a follow-up.
Changes:
What workflow is supposed for a user to interact with
StorageOptions?Why
descriptionandprogressare hardcoded?ACK
f440d82943Going commit wise:
The application of the OptionButton LGTM. However, we need to eliminate the use of hardcoded ProgressIndicator. We can experiment with using
GetFreeDiskSpace(see this article). Still, we can do so in a c++ implementation-specific follow-up PR.Taking @GBKS this suggestion, I think we can modify this control file to incorporate an optional icon loader that displays the icon if its location is provided. I think I can give it a shot as a follow-up to this PR.
I realize this is the early stage for this page and the repository. Still, I would like to give my humble review on the design side of the StorageOption component. I would request @GBKS to take a look at this, and help improve this review and correct me where my analysis is erroneous.
Tested using @Jarol storage-options-demo branch on a 13 inch screen with 16:9 aspect ratio, 1920*1080 resolution.
Let us go component-wise:
Back Button:
Bitcoin Logo:
Heading description:
Subtext:
Progress bar:
Button:
Page indicator (the three dots at the bottom of page):
I hope my observation will help make this PR better. If any of my observations are erroneous, I humbly welcome you to correct me. Thank you.
@shaavan
In regards to subtext, heading description and recommended button: They are implemented as specified in the main design file. Any suggestions for designs should be opened as an issue in the BitcoinDesign/Bitcoin-Core-App repo. In this repo we aim to implement the designs.
In regards to the bitcoin logo, progress bar, and page indicator: What is shown in the demo branch is just that; a demo of the components. In introducing a
StorageOptionscomponent there's no reason for me to change the position and size of unrelated components in the stub file.Take a look at #106 where a lot of your concerns would be addressed. The demo here is just to demo the
StorageOptionsandTextButtonelements, nothing else.Got it! I shall take care of this for my future reviews.
I shall take a look at #106.
@shaavan thanks for the detailed feedback. Are you comfortable using Figma? If so, you are very welcome to duplicate the Figma file and apply your recommendations. That approach would require less interpretation and back and forth. But let me know if that's something you do not want to get into and we'll find a different way. Also, feel free to leave comments directly in Figma.
Generally, we try to finalize everything in design (Figma) first, and then replicate it 1:1 in code (as much as possible). It can happen very easily that design and code get out of sync, which makes it really hard for any non-developer to fully understand what the user experience is like, comment on certain areas, propose improvements, etc. Design is a great planning tool and can save a lot of front-end implementation time.
Also, one more thing to consider in design reviews. These designs are optimized for mobile. Most likely, buttons and text will very slightly bigger than normal desktop interfaces (fingers are less precise than a mouse cursor, requiring larger tap areas).
Keep it coming.
@GBKS
I am pretty comfortable using Figma. Let me experiment with some design changes to make it look good on a Desktop screen.
I agree. It's better to plan the architecture before starting putting bricks.
Makes sense. However, it would be awesome if we could go with a responsive design for the app that adjusts the design based on the screen resolution and size. But that could come later in the project's journey.