-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Show/Hide auto upload list items #4784
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
Conversation
1c45d51 to
4a4fb60
Compare
|
@jancborchardt @nextcloud/designers I need some feedback/input on how to better hadnle certain things when it comes to show/hide items in the auto upload list. This PR adds this feature and does it as discussed in #4331 (comment) and #4331 (comment). Summarizing the issues I am having (UI/UX wise at the moment)
Looking at the description this all seems complex even to describe. I believe we can do better here 😃 So here are the screenshots 🖼 to give you an idea 💡 what I am talking 💬 about. Empty view in case all folders have been hidden before (hidden folder info is kind of duplicated here...) List in case a folder is hidden (clicking the footer will show the hidden folders) Menu of a (originally) hidden item in case you choses to show all items Possible solutions
|
28ff695 to
484626a
Compare
Codecov Report
@@ Coverage Diff @@
## master #4784 +/- ##
============================================
+ Coverage 17.58% 17.74% +0.15%
Complexity 3 3
============================================
Files 384 384
Lines 32528 32650 +122
Branches 4588 4597 +9
============================================
+ Hits 5720 5793 +73
- Misses 25887 25931 +44
- Partials 921 926 +5
|
625f643 to
7d5129f
Compare
14f1159 to
8a51774
Compare
|
Alright! Only have 2 pieces of feedback: The emptycontent view could do without a button, instead the subline just saying "Show 2 hidden folders", then it’s consistent, doesn’t duplicate, and doesn’t call to attention what someone hid in the first place.
Yes please, that makes it more obvious. I was a bit confused when I saw the screenshot with the menu open saying "Show folder" cause it was already shown. |
|
Thanks for the feedback @jancborchardt ❤️ |
526f621 to
17373e1
Compare
17373e1 to
fd20ced
Compare
e0bd977 to
2fb5873
Compare
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
… + action button Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
…ded boolean boxing Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
… [skip ci] Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
…display (design review) Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
5767c30 to
553df43
Compare
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
553df43 to
d17c853
Compare
|
@tobiasKaminsky @ezaquarii all your review comments have been fixed, thanks for the review. Would you mind giving it another look / test drive? 🙏 @ArisuOngaku Since you made some changes to these files recently and I had to resolve some larger conflicts due to the fact that I moved some code around I'd appreciate if you could also have a look so I don't break your recent changes (which I shouldn't have, but one never knows...) ❤️ |
… [skip ci] Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11769.apk |
|
Issues
======
+ Solved 2
- Added 1
Complexity increasing per file
==============================
- src/main/java/com/owncloud/android/ui/adapter/SyncedFolderAdapter.java 2
- src/main/java/com/owncloud/android/providers/FileContentProvider.java 3
- src/main/java/com/owncloud/android/ui/dialog/parcel/SyncedFolderParcelable.java 2
See the complete overview on Codacy |
| @Override | ||
| public void onCancelSyncedFolderPreference() { | ||
| mSyncedFolderPreferencesDialogFragment = null; | ||
| syncedFolderPreferencesDialogFragment = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy333Lint
SpotBugs (new)
SpotBugs (master)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndyScherzinger everything looks fine regarding my PR. You only modified lines (files) in a way that can't undo my fix. I see no regression! :)
|
Thanks a lot @ArisuOngaku ❤️ Highly appreciate you taking a look 🎉 |
2c57e37 Merge pull request #4784 from nextcloud/hideAutoUploadEntries 5257fb2 [tx-robot] updated from transifex aa43181 Merge pull request #4882 from nextcloud/dependabot/gradle/com.google.android-flexbox-2.0.0 1f4e857 Drone: update FindBugs results to reflect reduced error/warning count [skip ci] d17c853 re-add button/action and improve upon code review 74bfe47 remove action button, use checkable menu item for shown/hidden state display 3e872df add more spotbug exclusions (for 3rd party libs) 4e0b405 Drone: update FindBugs results to reflect reduced error/warning count [skip ci] 7c62ad6 unify use of boolean, make use of lombok getter/setters, remove unneeded boolean boxing bedc2b4 housekeeping, removing unused resources ca6918f show/hide improvements when list is completed hidden + nicer empty UI + action button 23e4424 show/hide auto upload list items 540c649 Merge pull request #4894 from nextcloud/dependabot/gradle/kotlin_version-1.3.61 f34ba2c Bump kotlin_version from 1.3.60 to 1.3.61 48038d5 Merge pull request #4883 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.0 83e0ebc [tx-robot] updated from transifex 21c0de3 daily dev 20191127








Resolves #3263
TODO
Empty view in case all folders have been hidden before

List in case a folder is hidden (clicking the footer will show the hidden folders)

List with "show all" state

Menu of a (originally) hidden item in case you choses to show all items

Menu of a visible item
