-
Notifications
You must be signed in to change notification settings - Fork 16
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
SEAB-6341: Add Metrics type icons in versions tab and Rescent Versions sidebar #2048
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2048 +/- ##
========================================
Coverage 41.82% 41.82%
========================================
Files 395 395
Lines 12370 12379 +9
Branches 2969 2970 +1
========================================
+ Hits 5174 5178 +4
- Misses 4870 4875 +5
Partials 2326 2326 ☔ View full report in Codecov by Sentry. |
Quality Gate failedFailed conditions |
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.
This is annoying feedback since I see this was the case back in the storytime mock-up, while I get "validation" from the validation icon, I'm not really getting a sense of "statistics" from the execution metrics icon.
I don't feel strongly about it but am curious how others feel and/or what the alternatives are in terms of icons
@@ -217,7 +217,18 @@ | |||
> | |||
</th> | |||
<td mat-cell *matCellDef="let version"> | |||
<mat-icon data-cy="metrics" *ngIf="version.metricsByPlatform && (version.metricsByPlatform | json) !== '{}'">check</mat-icon> | |||
<img | |||
*ngIf="hasExecutionMetrics" |
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.
Instead of relying on event emitter, can't you just tell by looking a version.metricsByPlatform
where there are execution and validation metrics or not? I may be missing something, and you may need a pipe to figure it out, but it seems more straightforward than having an event emitter from the executions-tab-component.
Some kind of graph [bar graph?] might be good as the "executions metrics" icon, the gears typically indicate "settings"/"configuration"/etc in most UIs. Also, both current icons have a strong diagonal visual weight, which looks kinda funny, especially when they're displayed together, so one being less diagonal would be an improvement. |
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.
Don't really care for the metrics icons in the "Recent Versions" box, it's added visual clutter and feels tangential to the box's purpose. But if that's what was in the spec and the team decided was best, no need to change it.
We could re-purpose the verified icon which is just a checkmark? But then it would need to be in a bubble and might look confusing in the versions table which already has a bunch of checkmarks |
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.
Was here, following discussion.
The Recent Versions box does look busy when both icons are there and the box is kind of small. Maybe it's not worth it to have it there, or we just display a generic metrics icon, but then there would be 3 metrics icons and that might be too much
On the fence on this one, I agree that the icons in the more detailed versions tab is more intuitive |
Description
This PR adds metrics type icons to indicate which type of metrics a version has.
Has both execution and validation metrics )see the version tab and the "Recent Versions" sidebar:
Only one metrics type:
No Metrics:
Review Instructions
Go to various workflows and test that the icons are shown correctly and the tooltips are clear.
Workflow with only validation metrics: https://qa.dockstore.org/workflows/github.com/ICGC-TCGA-PanCancer/wdl-pcawg-sanger-cgp-workflow:master?tab=metrics
Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6341
Security
If there are any concerns that require extra attention from the security team, highlight them here.
Please make sure that you've checked the following before submitting your pull request. Thanks!
npm run build
markdown-wrapper
component, which does extra sanitizationnpm audit
and ensure you are not introducing new vulnerabilities