-
Notifications
You must be signed in to change notification settings - Fork 291
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
Rares/score quality #1324
Rares/score quality #1324
Conversation
it could be worthwhile adding some notes about the schedule quality metrics to our public docs |
I agree with Joey about documentation |
<Text type="secondary">{tooltipContent}</Text> | ||
</VerticalGroup> | ||
</div> | ||
} | ||
> | ||
<div className={cx('root', { [`root__type_${type}`]: true })} onMouseEnter={onHover}> | ||
<div className={cx('root', { [`root__type_${type}`]: true }, { padding: addPadding })} onMouseEnter={onHover}> |
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.
minor: 'add-padding': addPadding naming looks better because it's clear that it's boolean
|
||
const [expanded, setExpanded] = useState<boolean>(false); | ||
{schedule.warnings?.length > 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.
can schedule be null/undefined
here?
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.
No, if it's undefined
then we do not render ScheduleQuality
return null; | ||
} | ||
|
||
const infoComments = comments.filter((c) => c.type === 'info'); |
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.
useMemo
here and below looks more reactish
but doesn't make sense a lot
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.
useMemo
seems an overkill, it's a trivial JSON data, a few comments at most.
# What this PR does #118 ## Checklist - [x] Tests updated - [ ] Documentation added - [x] `CHANGELOG.md` updated
What this PR does
#118
Checklist
CHANGELOG.md
updated