Skip to content
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

Merged
merged 8 commits into from
Jun 12, 2018
Merged

Conversation

islemaster
Copy link
Contributor

@islemaster islemaster commented Jun 11, 2018

Pair: @Erin007

In the summary view and the detail view, the numeric lesson headers now have tooltips that give the lesson names.

image

image

@islemaster islemaster changed the title Progress tooltips Progress summary view: Lesson name tooltips Jun 11, 2018
@@ -33,6 +33,7 @@ describe('VirtualizedSummaryView', () => {
stages: [
{
id: 456,
position: 1,
Copy link
Contributor

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?

Copy link
Contributor Author

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);
Copy link
Contributor

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.

Copy link
Contributor

@caleybrock caleybrock left a 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()}
Copy link
Contributor

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.

@islemaster islemaster merged commit 5420fbc into staging Jun 12, 2018
@islemaster islemaster deleted the progress-tooltips branch June 12, 2018 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants