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

Quota in Files-App takes to much space #10124

Closed
newhinton opened this issue Jul 5, 2018 · 15 comments
Closed

Quota in Files-App takes to much space #10124

newhinton opened this issue Jul 5, 2018 · 15 comments
Labels
Milestone

Comments

@newhinton
Copy link
Contributor

newhinton commented Jul 5, 2018

Steps to reproduce

  1. Set Quota to >100Gb
  2. Fill Nextcloud with big Files
  3. Open File-App

Nextcloud version:
13.0.4

The Quota can break out of the intended bounds. This breaks the style.
I propose to cut off sub-zero decimal places to gather more space if the used and or available exceeds a given size.

2018-07-05 19_52_54-

@newhinton
Copy link
Contributor Author

I could open a pull request for the changes if nessessary.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #2017 (quota), #7329 (Deleted files in shared folder take twice the disk space), #1858 (Unable to create or interact with files containing spaces.), #5142 (Files app not showing files), and #6486 (Quota bar in files app greyed out).

@newhinton newhinton changed the title Quota in Files App takes to much space Quota in Files-App takes to much space Jul 5, 2018
@rullzer
Copy link
Member

rullzer commented Jul 5, 2018

While I agree the .1GB here is pretty useless. It should also need a more flexible solution as certain langauges might translate it still to to long a string.

@newhinton
Copy link
Contributor Author

What could we do?
Create boundaries which create a linebreak when nessessary?
Show only "5MB of 5GB"
Do not show words at all and reduce it only to "5MB/5GB"?

I have no clue whats best here

@rullzer
Copy link
Member

rullzer commented Jul 5, 2018

Me neither. @nextcloud/designers input please :D

@juliushaertl
Copy link
Member

I'd say we can just add an ellipsis at the end if the text gets too long or we can just get rid of the verb and use "300GB of 500GB", since it should be clear that this is about the used space.

@newhinton
Copy link
Contributor Author

I have an open pull request, which edits the fileapp (and even the file which handles the quota).
Can i include a fix there, or should i open a second pull request?
I can then change this text, after a solution was found

@skjnldsv
Copy link
Member

skjnldsv commented Jul 6, 2018

@newhinton do it :)

@MorrisJobke
Copy link
Member

A new PR please. ;)

@newhinton
Copy link
Contributor Author

@MorrisJobke I already added the commit to the existing pr. ^^
I'll revert it and make a new one ;)

@jancborchardt
Copy link
Member

I propose to cut off sub-zero decimal places to gather more space if the used and or available exceeds a given size.

Sounds good, but only if the value is >= 10, because below 10, the decimal is actually a big percentage of the whole number. Also good adding the ellipsis of course.

or we can just get rid of the verb and use "300GB of 500GB", since it should be clear that this is about the used space.

Disagree here @juliushaertl, as that is then way too technical and not so friendly.

Another option would be to make sure that the units are always the same (both GB, or both MB for example), then we only have to show the unit once. So it would be:

261 of 500 MB used

or

2.5 of 500 GB used

@newhinton
Copy link
Contributor Author

At the moment, the filesize is reduced in the following cases:
over 100MB and under 1GB
and
over 100GB and under 1TB

this can easily be changed and or expanded to fit our needs

@jancborchardt
Copy link
Member

@newhinton cool! Could you adjust it as I described then? Would be awesome! :) (Also, it seems your pull request at #10245 is a bit broken cause it has a ton of commits in there?)

@newhinton
Copy link
Contributor Author

@jancborchardt yes that may indeed be true, i guess i made a mistake as i tried to update my fork. I'll update or redo the PR when i have time to do so :)
(And yes, i'll make the changes too ;) )

@newhinton
Copy link
Contributor Author

newhinton commented Jul 20, 2018

@jancborchardt I have recreated the pr. Currently the filesizes are reduced when quota (used and total) shows:
over 10MB and under 1GB
and
over 10GB and under 1TB

Another option would be to make sure that the units are always the same (both GB, or both MB for example), then we only have to show the unit once. So it would be:

This would be way to complicated for little gain. Consider a combination like this:
200B of 500GB
Any combination of different exponents would create a different case, which we would need to cover. Often you would need to show both exponents as well as the number, and only sometimes not. The behaviour would not be consistent over all sizes. And i dont think that this is a good idea

The current display is set to

261MB of 500 MB used

instead of

261 of 500 MB

which was in the old pullrequest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants