-
Notifications
You must be signed in to change notification settings - Fork 29
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
Improve bounding box frontend components #5305
Conversation
Code Climate has analyzed commit 9535cd3 and detected 5 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 94.4% (85% is the threshold). This pull request will bring the total coverage in the repository to 95.3% (0.0% change). View more on Code Climate. |
@@ -18,7 +18,6 @@ const boundingBoxColorsList = [ | |||
'#ff701f', | |||
'#ffb21d', | |||
'#cfd231', | |||
'#48f90a', |
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.
Stephanie commented previously that this neon green color makes text hard to read.
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.
{ | ||
box: { bottom: 370, left: 370, right: 390, top: 343 }, | ||
score: 0.987 | ||
} |
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.
Add some extra classes so we could show how classes go into a dropdown.
<span className={styles.showMoreButtonWrapper}> | ||
<Button | ||
appearance="secondary" | ||
onClick={() => {}} |
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.
webview/src/plots/components/comparisonTable/cell/ComparisonTableBoundingBoxColorFilter.tsx
Outdated
Show resolved
Hide resolved
classDetailsArr.unshift([ | ||
'tree', | ||
{ color: getBoundingBoxColor(classDetailsArr.length), selected: false } | ||
]) |
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.
Added a unselected
option that we could view in Storybook since checks rely on the backend.
@@ -189,22 +189,48 @@ $gap: 4px; | |||
display: none; | |||
} | |||
|
|||
.classButtons { | |||
font-family: $font; |
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.
webview/src/plots/components/comparisonTable/ComparisonTableRowClasses.tsx
Outdated
Show resolved
Hide resolved
webview/src/plots/components/comparisonTable/ComparisonTableRowClasses.tsx
Show resolved
Hide resolved
webview/src/plots/components/comparisonTable/cell/ComparisonTableBoundingBoxColorFilter.tsx
Outdated
Show resolved
Hide resolved
webview/src/plots/components/comparisonTable/styles.module.scss
Outdated
Show resolved
Hide resolved
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.
For the "With Many Classes" story, is it possible to add some actions before the snapshot so that we actually see the classes on it? I'm talking about adding play
on the story.
main
<- #5227 <- #5241 <- #5250 <- this <- #5313Updates our class logic to handle different use cases and adds other various improvements I spotted while working in Studio (details inline).
Demo
https://github.com/iterative/vscode-dvc/assets/43496356/50a95839-ce6f-47f5-819a-d8a1ea953cb6Screen.Recording.2024-02-20.at.6.17.42.AM.mov