server
server copied to clipboard
Unify initial and updated quota display
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.
/backport to stable24