Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Hide eye icon on error #1819

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft

Hide eye icon on error #1819

wants to merge 3 commits into from

Conversation

s9ferech
Copy link
Contributor

@s9ferech s9ferech commented Aug 26, 2021

Pull Request Description

This solves issue #1595. The eye icon on nodes will not be shown when the node is in an error state.

Important Notes

The will hide the whole action bar when there is an error. (There is only a single action at the moment.) If that behavior is not desired then some design decisions are necessary.

Checklist

Please include the following checklist in your PR:

  • The CHANGELOG.md was updated with the changes introduced in this PR.
  • The documentation has been updated if necessary.
  • All code conforms to the Rust style guide.
  • All code has automatic tests where possible.
  • All code has been profiled where possible.
  • All code has been manually tested in the IDE.
  • All code has been manually tested in the "debug/interface" scene.
  • All code has been manually tested by the PR owner against our test scenarios.
  • All code has been manually tested by at least one reviewer against our test scenarios.

@s9ferech s9ferech added Priority: High Should be scheduled as soon as possible Type: Bug A bug in Enso IDE Category: GUI The Graphical User Interface labels Aug 26, 2021
@s9ferech s9ferech requested a review from wdanilo as a code owner August 26, 2021 13:27
@s9ferech s9ferech self-assigned this Aug 26, 2021
frp::extend! { network
out.source.skip <+ action_bar.action_skip;
out.source.freeze <+ action_bar.action_freeze;
frp.show_quick_action_bar_on_hover <+ no_error_set;
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be more tricky than this solution. We don't necessarily want to hide ALL quick action icons. While there is just one at the moment, there will be others, and they might be independent of the error state of the node. So hiding all of them would not be what is needed. Instead, we just want to hide the visibility action icon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should happen with the other icons then? Should they move to the left to take the place of the eye icon, or should they stay where they are?

Copy link
Contributor

Choose a reason for hiding this comment

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

They should move to the left. If I do remember correctly, this might require some refactoring of the logic, though, as the positions might be fixed at the moment.

Copy link
Member

Choose a reason for hiding this comment

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

Moving icons is bad solution IMO. The eye icon can be grayed out instead. Changing controls placement is super confusing to users. Peopel will get used to the fact that first icon is visualization. Imagine a situation when you try to click it, but then error occurs and you click other icon because it just changed place - this is a very bad UX

Copy link
Contributor

Choose a reason for hiding this comment

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

@wdanilo Then we need to come up with a proper visual design for this. Fading out would probably not work because it would be confusable with the current active/not-active semantics, unless we re-design those.

@MichaelMauderer MichaelMauderer marked this pull request as draft September 16, 2021 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: GUI The Graphical User Interface Priority: High Should be scheduled as soon as possible Type: Bug A bug in Enso IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants