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

Unify initial and updated quota display #33495

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

danxuliu
Copy link
Member

Unlike the initial quota display, the updated quota display used the quota rather than the total available space. Due to this there was a "jump" in the quota when the display was updated if the quota is larger than the total available space. The relative usage is based on the total available space, so the updated quota display was changed to also use the total available space.

The tooltip was also inconsistent between the initial quota display and the updated quota display. It was unified to use only the relative usage percenteage, as showing again the total available space in the tooltip was redundant, and to round the value to make it consistent also with the quota display in the personal information page. Unfortunately this change requires new translation strings, but they just show a percenteage symbol after a number, so even if untranslated they should be fine in a lot of languages.

How to test

  • Configure a quota for a user larger than the available space
  • Log in as that user
  • Open the Files app
  • Upload a file

Expected result

The updated quota display still shows the total available space. The tooltip with the usage percenteage matches the usage bar below.

Actual result

The updated quota display now shows the quota rather than the total available space. The tooltip with the usage percenteage matches the proportion between the used space and the quota, although it is different from the usage bar below.

The initial quota display uses the total available space rather than the
quota. Moreover, the relative usage is based on the total space rather
than the quota. Due to this now the total available space is also used
when updating the quota display.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The tooltip of the initial quota display showed the usage percenteage
and the total available space. However, the total available space was
redundant, as it was shown just below. The tooltip of the updated quota
display showed the usage percenteage, but based on the quota rather than
the total available space, so there was a mismatch between the tooltip
and the bar below. Now the tooltip of the initial and the updated quota
display both show just the usage percenteage based on the total
available space.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added this to the Nextcloud 25 milestone Aug 10, 2022
@danxuliu
Copy link
Member Author

/backport to stable24

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 code looks good

@PVince81 PVince81 requested review from Pytal and artonge August 10, 2022 20:30
@skjnldsv skjnldsv mentioned this pull request Aug 12, 2022
@PVince81 PVince81 merged commit cb97e8f into master Aug 15, 2022
@PVince81 PVince81 deleted the unify-initial-and-updated-quota-display branch August 15, 2022 09:26
@skjnldsv skjnldsv mentioned this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants