-
Notifications
You must be signed in to change notification settings - Fork 132
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
Show the used quota inside the app #337
Conversation
@michaelstingl @jesmrec please check out the video showing how current implementation is working. As you can see if user navigates through the folder structure the quota in use changes and the value is corresponding to the total size of files in that particular folder, so only in the root folder you would see the total space allocated by the files of the user. I think on one hand it is useful information (per folder total size) but on the other hand I am not sure if it is intuitive. Also any other suggestions / wishes / ideas are welcome |
@mneuwert thank you for your implementation. I thought the quota should shown in the account list, below the Server URL. Your current implementation can be misunderstood, because user can think the used quota is the size of the current folder. But I like the idea. Maybe you can change it, to only show the size of the folder without "of 5,21 GB" -> "679 kb used" and display the total used size of quota in the account list. Maybe it is possible to use the new custom OCQuery by @felix-schwarz to get the total size of Documents, Photos, Videos, Others, (...) like the iCloud Storage overview: |
Vertical space is valuable. Not sure if we should show it on top of every folder. But quota could be different in every folder, so we could show it with the folder-info… |
A few thoughts:
|
For sub-folders total space occupied by it’s items is shown
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
==========================================
+ Coverage 30.25% 30.32% +0.07%
==========================================
Files 234 234
Lines 15910 15938 +28
==========================================
+ Hits 4813 4833 +20
- Misses 11097 11105 +8
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
==========================================
+ Coverage 30.25% 30.32% +0.07%
==========================================
Files 234 234
Lines 15910 15938 +28
==========================================
+ Hits 4813 4833 +20
- Misses 11097 11105 +8
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
========================================
Coverage ? 30%
========================================
Files ? 234
Lines ? 16316
Branches ? 0
========================================
Hits ? 4896
Misses ? 11420
Partials ? 0
Continue to review full report at Codecov.
|
# Conflicts: # ios-sdk # ownCloud/Client/ClientQueryViewController.swift
(2)I checked the different cases with some findings:
the propfind returns:
in case of
in such case the propfind responses something like
The result should be something like:
same case as
same case as limited quota. |
@jesmrec strictly speaking, the MB calculation is correct. There was an effort to unify data amount units, and actually as in your comment 348737755 bytes are 332.6 MiB (Mebibyte) but not MB (Megabyte). macOS I think is used mixed formats and decimal style (SI prefixes) is used to reflect how much storage is occupied by files and the "old" style (where KB is 1024 Bytes) is used to e.g. show how much memory is used say by a running process. |
thanks for the explanation @mneuwert. Calculation was already fixed. |
Everything fixed. Approved. |
- Update ClientQueryViewController to updated OCCore.rootQuota property layout - Make the footer show always (fixes issues where new accounts would first show separator lines - and then suddenly get replaced with the quota) - Make quota label use correct color (the previous was unreadable with the Classic theme)
|
Description
Related Issue
#228
Motivation and Context
As a user I want to see how much storage space is already in use
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Test plan
https://github.com/owncloud/QA/blob/master/Mobile/iOS-app/User%20Quota.md
Bugs & improvements