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

WIP feat(selection-visuals): add marker to related elements #290

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pinussilvestrus
Copy link
Contributor

@pinussilvestrus pinussilvestrus commented Oct 24, 2018

  • adds the selection outline to related elements when
    • highlight label(s) when selecting/hovering sequence flow
    • highlight sequence flow when selecting/hovering label
  • adjust SelectionVisualsSpec, because old version did not test expected behavior, since the .djs-outline class is set all the time, regardless the shape is selected before or not

Related to camunda/camunda-modeler#369

@ghost ghost assigned pinussilvestrus Oct 24, 2018
@ghost ghost added the needs review Review pending label Oct 24, 2018
@philippfromme philippfromme requested review from nikku and removed request for philippfromme October 25, 2018 08:19
@nikku nikku force-pushed the 369-highlighting-label-sequence-flow branch from 242aed0 to 8d57bf5 Compare October 25, 2018 17:30
@ghost ghost assigned nikku Oct 25, 2018
@nikku nikku force-pushed the 369-highlighting-label-sequence-flow branch 2 times, most recently from 6228fcd to 6a5e6d0 Compare October 25, 2018 18:56
nikku
nikku previously requested changes Oct 25, 2018
Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

From the user perspective, which alternatives did you consider for implementing this feature?

The following shows a quick recording of the look and feel in bpmn-js:

foo

Two things immediately get apparent:

  • It is not possible for a user to distinguish the actual selected element from the connected element. This is a major UX flaw and needs to be addressed.
  • Highlighting the label that belongs to an element only works for connections. Why is that? Any element may reference external labels (cf. start event in the screencapture shown above).

From the implementation perspective I'd ask you not to patch the stuff into the SelectionVisuals but to provide this as a new feature (call it highlight-related or something). This way users may decide to use it (or not) and the code base remains maintainable.

I already addressed:

  • fix commit message style (using feature name selection as context)
  • correct import to relative path (6a5e6d0); importing from an absolute lib path within the lib directory works in tests only but fails in the final bundle

@pinussilvestrus pinussilvestrus force-pushed the 369-highlighting-label-sequence-flow branch from 6a5e6d0 to e611acf Compare October 30, 2018 07:32
@pinussilvestrus pinussilvestrus force-pushed the 369-highlighting-label-sequence-flow branch 4 times, most recently from edc4b0b to 8d08b9f Compare October 30, 2018 11:53
@pinussilvestrus pinussilvestrus force-pushed the 369-highlighting-label-sequence-flow branch from 8d08b9f to f8a2dda Compare October 30, 2018 12:05
@pinussilvestrus
Copy link
Contributor Author

pinussilvestrus commented Oct 30, 2018

@nikku Thanks for the feedback! Let's discuss the points you've mentioned

It is not possible for a user to distinguish the actually selected element from the connecting element. This is a major UX flaw and needs to be addressed

I've just made the opacity of the related element's outline a little less to make clear, which element is actually selected or hovered. What do you think? Sure, we can discuss coloring the related element boxes with another color or giving them another shape, but this would break the current experience a little bit.

image

Highlighting the label that belongs to an element only works for connections. Why is that? Any element may reference external labels (cf. start event in the screen capture shown above).

Done!

I'd ask you not to patch the stuff into the SelectionVisuals but to provide this as a new feature (call it highlight-related or something).

I've just created a new feature inside the SelectionModule right now, since creating a completely new module highlight-related we would have to adjust the module-loading in the BpmnViewer for activating. For such a small feature I would not do that since it belongs to selection in some way.

@nikku nikku dismissed their stale review March 10, 2019 14:01

Outdated.

@nikku nikku added ready Ready to be worked on and removed needs review Review pending labels Jun 11, 2019 — with bpmn-io-tasks
@nikku nikku added backlog Queued in backlog and removed ready Ready to be worked on labels Jun 17, 2019
@nikku nikku added this to the M30 milestone Jun 17, 2019
@nikku nikku modified the milestones: M30, M31 Jul 8, 2019
@nikku
Copy link
Member

nikku commented Jul 8, 2019

Solution sketch we'd like to try:

image

@nikku nikku removed their assignment Oct 7, 2019
@nikku nikku removed this from the M31 milestone Oct 15, 2019
@pinussilvestrus pinussilvestrus changed the title feat(selection-visuals): add marker to related elements WIP feat(selection-visuals): add marker to related elements Dec 7, 2019
@nikku nikku added the spring cleaning Could be cleaned up one day label Feb 26, 2020
@pinussilvestrus pinussilvestrus removed their assignment Mar 7, 2020
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Niklas Kiefer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog spring cleaning Could be cleaned up one day
Development

Successfully merging this pull request may close these issues.

None yet

3 participants