Skip to content

Plot tooltip for truncated titles #4858

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

Merged
merged 12 commits into from
Oct 20, 2023
Merged

Plot tooltip for truncated titles #4858

merged 12 commits into from
Oct 20, 2023

Conversation

sroy3
Copy link
Contributor

@sroy3 sroy3 commented Oct 18, 2023

Demo

Screen.Recording.2023-10-18.at.10.15.13.AM.mov

I'm unsure whether the tooltip should contain the whole thing every time and be there on every plot or not. That would certainly make the code simpler if we removed the part of the code that checks whether or not it is truncated.

@sroy3 sroy3 changed the title Plot tooltip Plot tooltip for truncated titles Oct 18, 2023
@@ -262,11 +262,23 @@ export const truncateVerticalTitle = (
const isEndValue = (valueType: string) =>
['string', 'number', 'boolean'].includes(valueType)

type SpecTitle = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be removed if we always showed everything in the tooltip

@sroy3 sroy3 marked this pull request as ready for review October 19, 2023 15:19
Copy link
Contributor

@mattseddon mattseddon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

If you look at #4734 most of this logic gets deleted. I'll have to move the tooltip creation to the webview when I get back to it 🙏🏻.

@sroy3 sroy3 enabled auto-merge (squash) October 20, 2023 13:24
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 984aae4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 97.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.0%.

View more on Code Climate.

@sroy3 sroy3 merged commit fb792b4 into main Oct 20, 2023
@sroy3 sroy3 deleted the plot-tooltip branch October 20, 2023 15:32
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.

2 participants