-
Notifications
You must be signed in to change notification settings - Fork 479
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
Progress summary view: Lesson name tooltips #23020
Conversation
@@ -33,6 +33,7 @@ describe('VirtualizedSummaryView', () => { | |||
stages: [ | |||
{ | |||
id: 456, | |||
position: 1, |
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.
Is this already in the data we have, just not in tests?
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.
yes
)); | ||
} | ||
|
||
afterScroll = () => setTimeout(ReactTooltip.rebuild, 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.
It'd be nice to have a comment here explaining why this is needed.
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 looks awesome! I think we'll also want it on the detail view, but no need to do that in this PR.
/> | ||
<ProgressLegend | ||
excludeCsfColumn={scriptData.excludeCsfColumnInLegend} | ||
/> | ||
</div> | ||
} | ||
</div> | ||
{this.renderTooltips()} |
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'm not sure this will be better, but we already have levelDataInitialized
in the render function, so you could have
{`levelDataInitialized` && this.renderTooltips()}
instead of just checking on script data like you did on line 93.
Pair: @Erin007
In the summary view and the detail view, the numeric lesson headers now have tooltips that give the lesson names.