Skip to content

Conversation

@rbro112
Copy link
Member

@rbro112 rbro112 commented Nov 11, 2025

Screenshot 2025-11-11 at 3 36 29 PM Screenshot 2025-11-11 at 3 36 27 PM

The above screenshots are correct, I just duplicated the original size metric and changed the artifact type to WATCH

Resolves EME-580

@rbro112 rbro112 requested a review from a team as a code owner November 11, 2025 23:34
Copy link
Member Author

rbro112 commented Nov 11, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #103199   +/-   ##
========================================
  Coverage   80.66%    80.66%           
========================================
  Files        9241      9241           
  Lines      393658    393652    -6     
  Branches    25055     25053    -2     
========================================
  Hits       317557    317557           
+ Misses      75639     75633    -6     
  Partials      462       462           

@rbro112 rbro112 force-pushed the ryan/frontend_to_show_watch_app_size_metrics branch from 67b814a to b136a1c Compare November 11, 2025 23:55
@linear
Copy link

linear bot commented Nov 11, 2025

<Text>{formatBytesBase10(sizeInfo.install_size_bytes)}</Text>
<Text>
{formatBytesBase10(
getPrimarySizeMetric(sizeInfo)?.install_size_bytes ?? 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe getMainArtifactSizeMetric() so we don't have to translate primary == main

if (isSizeInfoCompleted(build?.size_info)) {
return formatBytesBase10(build.size_info.install_size_bytes);
const primarySizeMetric = getPrimarySizeMetric(build.size_info);
return formatBytesBase10(primarySizeMetric?.install_size_bytes ?? 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't ?? 0 here, we should try to fall through to return '-';

}
}

export function formattedInstallSize(build: BuildDetailsApiResponse): string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these functions might need renaming

@rbro112 rbro112 force-pushed the ryan/frontend_to_show_watch_app_size_metrics branch from 8621e31 to 3a9a741 Compare November 12, 2025 00:16
@rbro112 rbro112 force-pushed the ryan/frontend_to_show_watch_app_size_metrics branch from 3a9a741 to fb7f1f7 Compare November 12, 2025 01:41
Base automatically changed from ryan/add_all_size_metrics_to_build_details_response to master November 12, 2025 02:20
@rbro112 rbro112 merged commit cc22538 into master Nov 12, 2025
48 checks passed
@rbro112 rbro112 deleted the ryan/frontend_to_show_watch_app_size_metrics branch November 12, 2025 17:53
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
<img width="365" height="179" alt="Screenshot 2025-11-11 at 3 36 29 PM"
src="https://github.com/user-attachments/assets/70be4022-7233-4cd1-a582-4609e1e3679f"
/>
<img width="324" height="159" alt="Screenshot 2025-11-11 at 3 36 27 PM"
src="https://github.com/user-attachments/assets/e8a2b295-ed80-460b-8a3c-e4ad88084da3"
/>

The above screenshots are correct, I just duplicated the original size
metric and changed the artifact type to `WATCH`

Resolves EME-580
rbro112 added a commit that referenced this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants