-
Notifications
You must be signed in to change notification settings - Fork 131
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
Clear storage #376
Clear storage #376
Conversation
|
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.
Already looking good, just a few points:
- I assumed the plan was to create an additional "Info" view (with just "Certificates" + "Free space/Compacting" for now) instead of adding this to the
BookmarkViewController
. By adding it there, I have to choose between "Cancel" and "Save" to return to the server list, which could be confusing to some users. - please update the
ios-sdk
to the latestdevelop
commit, so the Files app running side by side will get notified of updates, too
@felix-schwarz In our last meeting I suggested to put the storage information inside the "Edit" view to avoid adding third swipe action in the server list. And.. it felt just right to do so, since all this stuff is related. So, we agreed ion that approach. I will fix the findings you mentioned. |
@felix-schwarz updated SDK in the branch to |
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.
Code-wise everything's fine, so I'm approving this PR. @mneuwert
@felix-schwarz In our last meeting I suggested to put the storage information inside the "Edit" view to avoid adding third swipe action in the server list. And.. it felt just right to do so, since all this stuff is related. So, we agreed ion that approach. I will fix the findings you mentioned.
I'd certainly agree at first, too, but seeing it in practice, I'm not as sure:
- "Edit" implies that I'm editing the connection. I wouldn't expect cleanup options here.
- on iPhone 6-8, the option "Delete offline copies" is not visible until I scroll. On an iPhone SE, I have to scroll before seeing the Storage section at all
- "Delete Offline Copies" is not a read-only option. Having to choose between "Cancel" and "Save" to return to the list could imply to users that offline copies are not actually deleted if "Cancel" is tapped afterwards (just like anything else in that edit UI will not take effect if "Cancel is tapped) - or that "Save" needs to be tapped for the deletion to actually take place
Compared to that a separate "Info" or "Manage" option would have clearer labelling, show the options without scrolling and just have a "Close", "Back" or "Done" button at the top. It would also be reusable in a branding context where BookmarkViewController
is not used.
iPhone 6-8 | iPhone SE |
---|---|
Codecov Report
@@ Coverage Diff @@
## master #376 +/- ##
=========================================
- Coverage 30.35% 30.2% -0.15%
=========================================
Files 241 243 +2
Lines 16790 16894 +104
=========================================
+ Hits 5096 5103 +7
- Misses 11694 11791 +97
Continue to review full report at Codecov.
|
@felix-schwarz Addressed this.. I agree that especially given the context of non-destructive changes which are cancellable, storage management options are better placed in a different dedicated view. |
@mneuwert looks cool! I would suggest to change the background Color for the row action to make a difference to the edit action. |
Yes, absolutely, changed in latest commit however was not sure if the color should be defined in the color scheme. Also not sure if this blue is not "too blue":) But this is rather question to our UX guy. |
@michaelstingl I actually think (as already pointed out by @felix-schwarz) it is not a good idea to put storage management under "Edit account" since this screen has options to cancel and save changes, but "delete offline files" is rather an action which is performed immediately and will not e.g. be undone if user taps "cancel". May be we could restructure "Edit account" UI in some way which which would allow us to separate these concerns. |
Yeah, open for ideas… |
# Conflicts: # ios-sdk # ownCloud.xcodeproj/project.pbxproj # ownCloud/Resources/en.lproj/Localizable.strings
Sorry for the confusion with labels, i thought i got a weird behaviour but it was my fault. Approved! great job! |
Description
Added option in settings to clean up offline file storage. Also showing how much space is occupied by downloaded files and how much space is available on the device.
Related Issue
#260
Motivation and Context
Helps to avoid cluttering user's device with downloaded offline data.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Test Plan:
https://github.com/owncloud/QA/blob/master/Mobile/iOS-app/Clear%20Storage.md