Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign local folder information in the account-adding wizard #4638

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

claucambra
Copy link
Collaborator

@claucambra claucambra commented Jun 13, 2022

Addresses point 3 of #4052

Screenshot 2022-06-16 at 15 15 06

Signed-off-by: Claudio Cambra claudio.cambra@gmail.com

@codecov
Copy link

codecov bot commented Jun 13, 2022

Codecov Report

Merging #4638 (d8d72e8) into master (bc7519a) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4638      +/-   ##
==========================================
- Coverage   56.56%   56.51%   -0.05%     
==========================================
  Files         138      138              
  Lines       17071    17071              
==========================================
- Hits         9656     9648       -8     
- Misses       7415     7423       +8     
Impacted Files Coverage Δ
src/libsync/propagatedownload.cpp 64.00% <0.00%> (-1.19%) ⬇️

@claucambra claucambra requested a review from nimishavijay June 15, 2022 10:28
@nimishavijay
Copy link
Member

Looks good! :) I'm also thinking if the path is more than 4 levels long we could show only the first and last folders and ellipsise in the middle?

@claucambra
Copy link
Collaborator Author

Looks good! :) I'm also thinking if the path is more than 4 levels long we could show only the first and last folders and ellipsise in the middle?

This is possible but difficult to do properly when it comes to a flexible layout, or window resizing, as QPushButton does not properly support things such as eliding on width changing :(

Would it be a better idea to display the folder path as a label, as we do with the remote location, and then have the button explicitly say "Change local folder" or something along those lines?

@nimishavijay
Copy link
Member

Ah okay okay, then your solution makes sense :)
We could say "Choose another folder" or "Choose a different folder" or just "Choose folder" cc @jancborchardt on the wording here. If we are just using labels then can we ellipsise?

Also unrelated detail but we should middle align the 3 big icons (the avatar icon, the arrow, and the folder icon) if possible :)

@claucambra
Copy link
Collaborator Author

Ah okay okay, then your solution makes sense :) We could say "Choose another folder" or "Choose a different folder" or just "Choose folder" cc @jancborchardt on the wording here. If we are just using labels then can we ellipsise?

Labels can be elided, no problem!

Also unrelated detail but we should middle align the 3 big icons (the avatar icon, the arrow, and the folder icon) if possible :)

Sure, I will align them

@jancborchardt
Copy link
Member

👍 on the middle-aligning of the avatar, arrow and folder icon. Username and "Local folder" text should be at the same height.

Also, the avatar is huge, can you reduce the size of it to match the folder icon? :)

And yep, we can do:

Local folder
Documents / Nextcloud (6 GB free space) [subline style, in grey]
Choose different folder [button]

@claucambra claucambra force-pushed the feature/local-folder-button branch from 6e2d686 to a2c3667 Compare June 16, 2022 13:16
@claucambra claucambra changed the title Local folder path button in wizard always displays full path Redesign local folder information in the account-adding wizard Jun 16, 2022
@claucambra
Copy link
Collaborator Author

claucambra commented Jun 16, 2022

👍 on the middle-aligning of the avatar, arrow and folder icon. Username and "Local folder" text should be at the same height.

Also, the avatar is huge, can you reduce the size of it to match the folder icon? :)

And yep, we can do:

Local folder
Documents / Nextcloud (6 GB free space) [subline style, in grey]
Choose different folder [button]

@jancborchardt @nimishavijay

Turned out to not be as easy as expected, but here is a screenshot:

Screenshot 2022-06-16 at 15 15 06

I moved the free space data to its own line as I felt in 99% of cases, the path text was too long to put the free space data alongside it, and it would elide the path too much to be useful

Copy link
Member

@nimishavijay nimishavijay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks amazing now! Super nice :) 🚀

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! :)

@mgallien mgallien force-pushed the feature/local-folder-button branch from a2c3667 to 4152e8f Compare June 17, 2022 07:24
@claucambra claucambra force-pushed the feature/local-folder-button branch from 4152e8f to 0ac8902 Compare June 17, 2022 11:06
@mgallien mgallien force-pushed the feature/local-folder-button branch from 0ac8902 to 46c43a4 Compare June 20, 2022 08:29
@mgallien mgallien force-pushed the feature/local-folder-button branch 2 times, most recently from dcac944 to 97f0029 Compare June 23, 2022 20:44
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
@mgallien mgallien force-pushed the feature/local-folder-button branch from 97f0029 to d8d72e8 Compare June 24, 2022 08:19
@sonarcloud
Copy link

sonarcloud bot commented Jun 24, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-4638-d8d72e81bb6568fad7ee12d0435819923c541e5d-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit 5337d4b into master Jun 24, 2022
@mgallien mgallien deleted the feature/local-folder-button branch June 24, 2022 09:50
@mgallien mgallien added this to the 3.6.0 milestone Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants