-
Notifications
You must be signed in to change notification settings - Fork 198
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
Do not sort list items alphabetically #1047
Conversation
Hi @nikku , |
@AlexanderSkrock I can confirm that non of the fields you mentioned should be sorting. We can argue about "pure visual only", such as C7 process variables; but then again we can sort on the business logic level. |
Seems like my changes from |
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.
Auto-focus seems to need adjustment in different places (I sketched the change on one example on top of this PR); List#compareFn
could be dropped (I pushed that change on top of this PR).
Cf. bpmn-io/properties-panel#353 (comment) for details.
Thank you for having a look! I tried to follow up on your changes regarding auto-focus, but for the I wanted to add Otherwise if a In addition to both of these approaches with the current Would be great, if you could have a look here again, @nikku , as I am not sure which is the best approach. While the last one mentioned seems best to me at first glance, it might have non-obvious changes I am not aware of. |
@AlexanderSkrock I'll only be able to follow-up on your comments next week. |
@AlexanderSkrock I was able to review your changes, great work! The only thing missing is the auto focus which is now broken in some cases; I fixed it with some follow-up commits. Was not fully able to grasp some of your thoughts in #1047 (comment). I'd propose to make auto-focus work in the most simple way 🙃. This implies:
Of course we could refactor further; but let's take things one step at a time. |
To be clear: I regard
But then again, looking at the small amount of changes needed here I'm fine to accept the contribution as is. |
I'll look into rebasing this. Thanks for your work on this issue 👏 |
Updated to build on top of |
I can reproduce the test single failure locally and am investigating. |
Addressed everything mentioned in #1047 (comment). Waiting for CI to pass. |
No longer necessary as we don't intend to sort anymore.
Thanks for your contribution @AlexanderSkrock. We really apprechiate it 🏅 👏 |
This pull request aims to fix #311 in properties-panel together #353 in properties-panel. Currently, it is being developed.
false
explicitly=> Potentially every component which did not explicitly set
shouldSort
tofalse
, but we should use this opportunity to evaluate where it actually should be sorted.Regarding the
shouldSort
flag, I saw the following throughout this project.Camunda 7 - Camunda Platform
Usages without the
shouldSort
flags, thus using the previous default of sorting:Usages with the
shouldSort
flag set tofalse
, thus already disabling sorting:Camunda 8 - Zeebee
Usages with the
shouldSort
flag set tofalse
, thus already disabling sorting:Related to bpmn-io/properties-panel#311