-
Notifications
You must be signed in to change notification settings - Fork 24
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
Further Time Tacking Improvement #4121
Conversation
fixed wrong positioned tooltip bug
@philippotto This PR is ready for your first review 🙂 |
I just tested the branch on https://improvetimetracking.webknossos.xyz/reports/timetracking but for me no tooltip is rendered? Does it work for you on the dev instance? |
Yes, it does not work for me too. The bug seems to appear only if you have few data rows 🤔 |
fixed bug that caused the tooltip not to be rendered
I found a workaround for this -> see my comments in the code |
// We need to make the tooltip visible again after adjusting the position. | ||
// It is initially invisible as it is mispositioned by the library and would then "beam" to the corrected | ||
// position. We want to avoid that "beaming" behaviour. | ||
tooltip.style.visibility = "visible"; |
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.
The "beaming" behavior e.g. happens in Firefox for me. Chrome works fine even without the workaround.
If you are looking where the tooltip is set to be invisible at the beginning: it is done in the google-charts-overwrites.less
graph_id="TimeLineGraph" | ||
chartPackages={["timeline"]} | ||
width="100%" | ||
height="600px" |
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.
@philippotto: We need a fixed height as the workaround we found, that displays the chart at full height, leaves out the whole y-axis with the actual dates. Having a fixed height solves this.
I also shortly tried to force the y-axis to be rendered below the chart but failed :/
@philippotto This PR should be ready for your next review. I hopefully fixed the bug that causes the tooltip, not to render, |
@philippotto I think I still need your review on this PR. |
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.
Awesome 👍 The workaround works for me in Firefox and Chrome 👍
This PR adds the following suggest improvements to the time tracking view:
URL of deployed dev instance (used for testing):
Steps to test:
minutes:seconds
.Issues:
[ ] Updated migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes[ ] Needs datastore update after deployment