fix(usage overview): Display add-on categories with reserved volume#104465
fix(usage overview): Display add-on categories with reserved volume#104465isabellaenriquez merged 8 commits intomasterfrom
Conversation
❌ 13 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
| ).flatMap(addOnInfo => addOnInfo.dataCategories); | ||
| const addOnDataCategories = Object.values(subscription.planDetails.addOnCategories) | ||
| .flatMap(addOnInfo => addOnInfo.dataCategories) | ||
| .filter(category => checkIsAddOnChildCategory(subscription, category, true)); |
There was a problem hiding this comment.
Bug: Categories with zero reserved hidden when add-on has mixed values
When an add-on has multiple data categories with mixed reserved values (some with non-zero reserved volume, some with zero), categories with zero reserved become invisible. This happens because: (1) zero-reserved categories are added to addOnDataCategories and filtered out of the main list, (2) but the add-on section returns null when ANY sub-category has non-zero reserved. The comment on line 89-90 claims these categories will render in sortedCategories, but this only applies to categories that fail checkIsAddOnChildCategory - zero-reserved categories pass the check and get excluded from both locations.
Additional Locations (1)
There was a problem hiding this comment.
documenting assumption for now since we don't currently support a mix
…104465) Fixes a bug where we didn't display add-on sub-categories that had a non-reserved budget / non-unlimited volume: <img width="2195" height="763" alt="Screenshot 2025-12-05 at 11 06 05 AM" src="https://github.com/user-attachments/assets/d02f8d59-99a7-4132-ab36-957042f799dc" />
Fixes a bug where we didn't display add-on sub-categories that had a non-reserved budget / non-unlimited volume: