-
Notifications
You must be signed in to change notification settings - Fork 5
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
ui-spacetimechart: add conflict tooltips #660
Conversation
cc113fd
to
4ef6cf8
Compare
This is feature complete, but leaving as a draft PR since I have one UX question: I don't think it makes sense to have multiple conflicts listed in the tooltip. Will ask around. Shouldn't have a lot of impact either way. |
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.
Nice, LGTM
I will try do another pass tomorrow to find something to nitpick about though ^^
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.
LGTM ✅
4ef6cf8
to
40e54ab
Compare
Updated to follow the latest mockup. Also clarified that the time displayed in green text is wired up to the cursor, it's not the conflict start time. (Reviewers: only the last commit has been edited.) |
40e54ab
to
c761c0b
Compare
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.
We never need anything else from the HoveredItem, and this change simplifies a future commit which adds a new PickingElement variant without a pathId field. Signed-off-by: Simon Ser <[email protected]>
Don't assume that a PickingElement is a segment if it's not a point. This is useful for the next commit which introduces a new PickingElement variant. Signed-off-by: Simon Ser <[email protected]>
Useful to build interactive rectangles: the picking canvas needs to be painted with hand-rolled operations on ImageData. Signed-off-by: Simon Ser <[email protected]>
Signed-off-by: Simon Ser <[email protected]>
Signed-off-by: Simon Ser <[email protected]>
c761c0b
to
674e6e9
Compare
Thanks for the detailed comments, many things I've missed! I'm not super sure all of these details were really intentional UX decisions, but oh well.
Ah yes, I've been formatting numbers according to the current locale, but it seems the expectation is to always use English-style floating point number formatting here… Fixed by forcing the locale to US. |
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.
LGTM ✅
See individual commits.
Mockup: https://www.sketch.com/s/bcbac4ff-7f74-4f1a-9e10-08d115c47ed8/p/93690D83-1F83-4AC1-B403-560752B06658/canvas#Inspect
Closes: #418