-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Search improvements #2187
Search improvements #2187
Conversation
2635f40
to
8092da6
Compare
8092da6
to
5200d17
Compare
@philippfromme There are conflicts to resolve in this PR |
secondaryTokens: matchAndSplit(element.id, pattern), | ||
element: element | ||
}; | ||
return !isLabel(element) && element !== rootElement; |
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.
👍 for helper usage
Let's fix the conflict, and it is ready to be merged. |
I checked this PR once again, UX wise, as I previously lost one of my reviews 🙈 One thing I found is that clicking anywhere on the canvas with search open would reset the viewport to the previous viewbox. I believe if the user clicks anywhere (closing search), then they want to commit the current viewbox, and do not expect it to "jump back". Things are, of course, different if they press Also I found that sometimes focussing of elements is odd (cf. jumping when selecting different sub-processes that would actually be "in view". Both visualized in the following recording: |
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.
Cf. #2187 (comment).
Let's consider if we want to fix the last bug.
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.
Merge conflicts in the PR. Please resolve them.
Related to bpmn-io/bpmn-js#2187
5200d17
to
44d6303
Compare
@nikku @abdul99ahad I resolved the merge conflicts. This pull request is ready to be reviewed. The remaining issues mentioned by @nikku need to be fixed in diagram-js. I'll work on that. |
* simplify implementation * take location into account when sorting
Improves various aspects of the built-in search. Closes #2189
44d6303
to
09d8711
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.
Great stuff.
Updated on top of latest DEV branch + pulled in [email protected]. |
Did some integration testing on the released changes, and identified potential follow-ups: |
Improves search by
Depends on bpmn-io/diagram-js#913
Closes #2189