Repository navigation
feat: show used quota in admin user details - #3492
Merged
Merged
Conversation
Base automatically changed from
fix/space-quota-progress-background
to
main
September 30, 2026 07:42
JammingBen
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The user details in the admin settings only showed the total quota of a user (e.g. "2 GB"), so admins couldn't see how much of it was actually used. The details now also show the used quota, in the same way as the space details in the files app: "1.1 GB of 2 GB used (53.69% used)" with a progress bar. The bar turns red when the quota state isn't
normal.The data was already there: when a user is selected, the panel loads the user with
$expand=drive, anddrive.quotacontainsused,remainingandstatenext tototal. The panel now passes it to the existingSpaceQuotacomponent instead of only formattingtotal.SpaceQuotanow hides the bar whentotalis 0, which also applies to the space details. Before, it computedused / 0as the bar width.This PR is based on #3491 (quota progress bar background), so the bar's track is visible in the screenshots. It will be retargeted to
mainonce #3491 is merged.Screenshots
Related Issue
How Has This Been Tested?
SpaceQuota(limited and unlimited quota) and for the quota in the userDetailsPanel(with and without a drive); unit tests, type check, lint and format passTypes of changes