-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Frontend to show watch app size metrics #103199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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 |
67b814a to
b136a1c
Compare
| <Text>{formatBytesBase10(sizeInfo.install_size_bytes)}</Text> | ||
| <Text> | ||
| {formatBytesBase10( | ||
| getPrimarySizeMetric(sizeInfo)?.install_size_bytes ?? 0 |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
8621e31 to
3a9a741
Compare
3a9a741 to
fb7f1f7
Compare
fb7f1f7 to
b8e4c53
Compare
<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

The above screenshots are correct, I just duplicated the original size metric and changed the artifact type to
WATCHResolves EME-580