[FEATURE REQUEST] Quota improvements from GraphAPI
That comes from https://github.com/owncloud/android/pull/4401#issuecomment-2122995186
Some improvements we could add, taking advantage of GraphAPI:
- If quota is exceeded, currently we show
No storage usage information available. I'd show the bar full instead. We can also take advantage of thestatefield that comes in the response:
"quota": {
"remaining": 0,
"state": "exceeded",
"total": 1000000000,
"used": 1423007244
},
playing with colors depending on the status is another option (normal, nearing, exceeded)
-
Quota is updated in some scenarios, that we could spread to those ones in which the value changes locally:
- Adding a new file
- Deleting a new file
- (Maybe all of these cases can be handled updating the quota in the synchronization/refresh operation)
They could trigger a new request to update the values
-
Show spaces' quota as well
-
Showing the quota in manage accounts dialog
-
Checking if quota can be retrieved from other different endpoint, without fetching whole info about all spaces.
TASKS
- [x] Research (if needed)
- [x] Create branch feature/quota_improvements
- [ ] Development tasks
- [x] Add state and total values in quota properties
- [x] Update drawer when quota is exceeded
- [x] Update drawer when quota is nearing
- [x] Update drawer when quota is critical
- [x] Update quota when a new file is added
- [x] Update quota when a file is removed
- [ ] Update quota when a file is moved
- [x] Show quota in manage accounts dialog
- [ ] ...
- [ ] Implement unit tests (if needed)
- [ ] Code review and apply changes requested
- [ ] Design test plan
- [ ] QA
- [ ] Merge branch feature/feature_name into master
Put an eye on https://github.com/owncloud/enterprise/issues/5808
Could be another fix/improvement to do.
EXCEEDED QUOTA
When the quota is exceeded, the progress bar looks:
NEARING QUOTA
I don't know how to display the quota when the state is nearing. Now, we have the total and the used with the progress bar. In my opinion, in this case, we can replace the color by yellow/orange or something like that, but change the string I don't think it's a good idea.
@jesmrec @JuancaG05 Take a look and comment if you have more ideas 🚀
Adding a (nearing) clarification is a good idea?. Just as an idea, we could have three rows:
1st row: progress bar 2nd row: total / used (if used exist). Just this numerical values 3rd row: message
The message is something like:
if exceeded -> The quota is exceeded
if nearing -> Close to the limit (or similar)
...
if no message, the 3rd row is gone
What do you think?
Yeah, I agree with you. I'll continue with your idea and I'll update the screenshots when it's "finished" 😄
Here, an update about quota in drawer:
| Exceeded Quota | Nearing Quota |
|---|---|
| Critical Quota | Normal limited quota |
|---|---|
(Updated)
cool! just an small clarification, in the nearing message: i think Close to the quota limit sounds better
Hi @tbsbdr! 😄 We have some questions related with this issue. Do you agree with the string below numerical quota: The quota is exceeded, Close to the quota limit, Very close to the quota limit? How can we highlight all these strings to get the user's attention? We consider not to use colors because we could have problems with the branding.
This is how the manage accounts dialog looks with the quota:
| Option 1 | Option 2 |
|---|---|
| Option 3 |
|---|
Some comments about the options:
Option 1: You can see the quota in the progress bar and also in the text below it. But I you have some accounts at the same time, the dialog could be very big.
Option 2: The first option without the progress bar.
Option 3: One line with progress bar (If you have limit in the account) and used/total quota.
(It will be updated with more ideas)
option 3 merges 1 and 2. That's my favorite
@joragua I observed that people don't know the word "quota", because of that I'd start to rename it to storage if you agree.
My proposal is:
The quota is exceeded--> Storage fullClose to the quota limit--> Storage nearly fullVery close to the quota limit--> Storage very nearly full
Would that be an improvement?
get the user's attention
Hm.. I'd expect a color as a visual hint. If somehow possible and if not "too expensive", let's use a color. Note on branding: The comprehensive branding as we still provide it should be cut back in the future. With this in mind, I'd encourage to cut ties with the past where possible which can mean to not pay much attention to branding. just my 2 cents.
Tasks that are done ✅
- Updated the drawer when the quota is nearing, critical or exceeded:
| Exceeded Quota | Nearing Quota |
|---|---|
| Critical Quota | Normal limited quota |
|---|---|
- Updated the quota after a refresh operation or when a file is copied, moved and removed:
Steps that are shown in the video 📹 :
- Upload a file in the personal space (An automatic refresh will be done after this operation)
- Copy the file in the personal space
- Move the copy to a folder which contains the same file and replace it
- Remove the original file from the personal space
https://github.com/user-attachments/assets/78be6ea9-c3a1-4873-a4e8-b9c6d174c248
- Added the quota in the manage accounts dialog: