-
Notifications
You must be signed in to change notification settings - Fork 34
Show visualization on output port hover. #1363
Show visualization on output port hover. #1363
Conversation
df53137
to
f6ae178
Compare
f6ae178
to
22d4e1c
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.
Michael, it looks amazing. I would definitely change two behaviors:
Nodes without type information will show the visualization immediately
- this should not be here. The thing is that we do not show vis preview immediately in order not to have blinking in GUI, so no type information should not affect our visuals.- The error should be shown not only on output port hover, but just on this node hover.
frp.source.on_reset <+ transition.value.map(|t| (t - 0.0).abs() < std::f32::EPSILON).on_true(); | ||
frp.source.on_end <+ transition.value.map(|t| (t - 1.0).abs() < std::f32::EPSILON).on_true(); |
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.
too long - please check all new lines in the codebase and check if they cross the 100chars boundary
c9e150a
to
99397a4
Compare
Michael, could you please also move the popup below the mouse, like it is on main now? I was playing with main today and it looks so beautiful and consistent with the popup below the mouse, not on the right? If you could just make it configurable (I think it is), it would be cool, so we will play with both versions |
Done. This can be configured on a per-tooltip basis. (See last commit on this branch) |
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.
I've run the test scenarios. Here are the issues I've written down:
BASIC SCENARIO
-
When I press tab and start typing a new node (with no prior selection), the tooltip appear, despite not having content.
Tooltip should not appear while we are creating node.
Also, tooltip should never appear empty. It should either not appear in such cases or include some diagnostics, as to why it is empty. -
Histogram visualization has broken panning. When I move mouse with MMB pressed, it quickly goes wild.
-
"Fit all" button in histogram stops working after too much panning is done.
-
Likewise, visualization zooming is broken when dragging with RMB pressed.
-
Engine reports execution failures:
Execution failed in context f8ff239e-dc10-4521-b96c-ec507a128412. Error: Methods cannot be overloaded, but you have tried to overload Histogram.enso_project.
. -
It is impossible to enter the node with
func1
after adding a new defaulted parameter. (test scenario 1): error in consoleError while performing UI action on controllers: The suggestion with id 1567 has not been found in the database.
-
It is impossible to connect additional input to
func1
as there is no placeholder for it on node. -
Due to above issues some testings steps have been omitted. Once issues are addressed, the full test scenario should be once more checked.
TRAMS SCENARIO
-
The table visualization does not appear on
fields.get "vehicles"
. Can be triggerred though.. -
There is no such method as
Geo.points
. -
The geo map visualization not only does not open bubt it is impossible to be selected (missing from visualziations list).
-
Further steps of the scenario are too sketchy for me to follow. Will need to chat with @sylwiabr later.
Some well known issues are omitted for clarity,
I spotted those two also on my branch, so those are likely regressions on develop.
Those are engine issues and were reported some time ago.
This also was reported as a develop regression |
This is somewhat fixed. The really proper solution would be to check whether the node has an output value from the engine, but that information is not currently available to the node. So now this only skips nodes that do not yet have content to avoid the pop-up on empty nodes.
Regression unrelated to this PR.
Regression unrelated to this PR.
Regression unrelated to this PR.
As Adam mentioned on stand-up: unrelated to this PR and under investigation. |
Regression on develop. When opening the table vis on this node it opens up as empty for me.
I believe there is only a |
Yes, it was fixed when me and Michał went through the scenario together recently. |
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.
@MichaelMauderer
I did the following:
- start a new unnamed project
- move nodes
- save
- reopen IDE
- hover nodes
The first nodes has tooltip with type. The second node (sort) has no tooltip. Though it likely is caused by a factor external to this PR, as node output port is also missing colors. Still might be worth investigating, as this PR makes the issue more visible.
Observed this when I was about to perform the copying step of the scenario.
Visualization automatically appears when I try to add a node after File.read.
Enso.2021-03-30.11-06-55.mp4
I haven't tested further, once those issues are resolved (or confirmed as known issues unrelated to the PR) I will retest.
Please also merge develop, it should bring at least some fixes.
This is expected behaviour, if the node has no type information (which would explain why it has no colour either). If there is no type information to display, no tooltip is shown. But otherwise this is a bug that should be reported as "Node that should have a type does not have a type".
I believe this has been addressed on Discord?
It looks like you are still hovering another node, so this is expected behaviour unless we want to prevent hovering while editing a node.
Branch is updated to newest develop. |
To me it looks like bug, even if it was designed this way. User must hover node to click on it to select. Then they open searcher to create a new node. And after a moment a strange popup appears, obscuring everything. They should not be required to move mouse away from node before opening searcher. This looks to me like a very common scenario. Also, observe behavior on the video closely. At the moment when visualization appears, the output port is not hovered. It was hovered for a brief moment before, however mouse was moved and the type tooltip was hidden. |
@mwu-tow You are right! It seems the FRP endpoint I hooked into was not only triggered when hovering the output port but some additional area. This is fixed now. |
…put-port-hover # Conflicts: # CHANGELOG.md # src/rust/ide/view/graph-editor/src/component/visualization/container.rs # src/rust/ide/view/graph-editor/src/lib.rs
The issue seems resolved to me. |
[ci build]
1e1e044
to
59fba43
Compare
Pull Request Description
Introduces a quick preview for visualizations and errors. Hovering a node output will first show a tooltip with the type information and then after some time, will show the visualization of the node. The preview visualization will be located above other nodes, whereas the normal view, will be shown below nodes.
Some notes: errors will show the preview visualization immediately. Nodes without type information will show the visualization immediately. If you press and hold
ctrl
tooltips are skipped and the preview visualization shows up immediately.Peek.2021-03-23.16-27.mp4
Checklist
Please include the following checklist in your PR:
CHANGELOG.md
was updated with the changes introduced in this PR.All code has automatic tests where possible.All code has been manually tested in the "debug/interface" scene.