Skip to content

Commit 3ee8ff6

Browse files
authored
fix(preprod): Add audio to treemap (#102086)
Partially resolves EME-443. Matching launchpad change: getsentry/launchpad#428
1 parent c0de8e1 commit 3ee8ff6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

static/app/views/preprod/components/visualizations/appSizeTheme.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function getAppSizeCategoryInfo(
1111
return color(baseColor).alpha(0.6).string();
1212
};
1313

14-
const colorPalette = theme.chart.getColorPalette(6);
14+
const colorPalette = theme.chart.getColorPalette(7);
1515

1616
const neutralColor = 'hsla(270, 20%, 50%, 0.5)';
1717
const groupColor1 = colorPalette[0];
@@ -20,6 +20,7 @@ export function getAppSizeCategoryInfo(
2020
const groupColor4 = colorPalette[3];
2121
const groupColor5 = colorPalette[4];
2222
const groupColor6 = colorPalette[5];
23+
const groupColor7 = colorPalette[6];
2324

2425
return {
2526
[TreemapType.FILES]: {
@@ -157,5 +158,10 @@ export function getAppSizeCategoryInfo(
157158
headerColor: createHeaderColor(groupColor1),
158159
displayName: t('Code Signature'),
159160
},
161+
[TreemapType.AUDIO]: {
162+
color: groupColor7,
163+
headerColor: createHeaderColor(groupColor7),
164+
displayName: t('Audio'),
165+
},
160166
};
161167
}

static/app/views/preprod/types/appSizeTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export enum TreemapType {
6666
MANIFESTS = 'manifests',
6767
SIGNATURES = 'signatures',
6868
FONTS = 'fonts',
69+
AUDIO = 'audio',
6970

7071
// iOS-specific categories
7172
FRAMEWORKS = 'frameworks',

0 commit comments

Comments
 (0)