Repository navigation
fix(web-pkg): show resource table columns if any resource has the field - #3512
Merged
Merged
Conversation
JammingBen
approved these changes
Oct 1, 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
ResourceTabledecided which columns to show by looking at the first resource only. Resources of the same type can still differ in their fields. Disabled spaces, for example, come withspaceQuota.totalbut withoutspaceQuota.usedandspaceQuota.remaining. When a disabled space was sorted to the top of the list, the "Used quota" and "Remaining quota" columns were dropped for all spaces.A column is now shown if any resource has the field. The sort fields still come from the first resource, because they only depend on the resource type, which is the same for all rows.
Steps to reproduce (before this fix)
1 disabled).Expected: the quota columns stay visible; the disabled space shows
-for the used and remaining quota.Related Issue
How Has This Been Tested?
ResourceTable.spec.ts: a disabled space without used quota as the first row, followed by an enabled space, still shows all quota columns (fails without the fix)web-pkg,web-app-filesandweb-app-admin-settingspasspnpm check:types, lint and format passTypes of changes