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

Automatically initialize title tooltips after loading a report #12800

Merged
merged 3 commits into from May 1, 2018

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 30, 2018

not sure if there would be a better place to handle that, but at least it seems to work this way ;-)

fixes #12676

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Apr 30, 2018
@sgiehl sgiehl added this to the 3.5.0 milestone Apr 30, 2018
Copy link
Member

@diosmosis diosmosis left a comment

Choose a reason for hiding this comment

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

Appears to work, tested tooltips in datatable, visitorlog, etc., existing tooltips work, and other places have tooltips now. Left one minor comment.

Actually, one possible idea, though not sure how good it is. An alternative solution might be to make the title= attribute an angular directive that uses $(element).tooltip(). This might be better than calling it on a root element, which I believe would have to select each sub element w/ a title? Nah, that's probably not really better. I think the solution in the PR is good 👍

},
show: false,
hide: false
});
Copy link
Member

Choose a reason for hiding this comment

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

Should we also destroy the tooltip when the scope is destroyed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Guess it doesn't hurt to do so. Will add it...

@diosmosis
Copy link
Member

There's a UI test failing: https://builds-artifacts.matomo.org/matomo-org/matomo/3.x-dev/27273/UIIntegrationTest_segmented_visitorlog.png

looks like the row in visitor logs shouldn't have a tooltip?

@sgiehl
Copy link
Member Author

sgiehl commented May 1, 2018

That's caused by the way the ui test is done. It triggers a direct click on the icon without moving the mouse. The tooltips seems to come from the datatable that opens the segmented visitor log.
I'll try to adjust the test so the tooltip is hidden again

@sgiehl
Copy link
Member Author

sgiehl commented May 1, 2018

Tests work again...

@diosmosis diosmosis merged commit 9eff672 into 3.x-dev May 1, 2018
@diosmosis diosmosis deleted the fixtooltips branch May 1, 2018 15:09
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
…o-org#12800)

* Automatically initialize title tooltips after loading a report

* destroy tooltips upon scope destroy

* avoid tooltip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltips in conversion overview not working properly
2 participants