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

Support list re-ordering #378

Open
Tracked by #324
Skaiir opened this issue Aug 7, 2024 · 3 comments
Open
Tracked by #324

Support list re-ordering #378

Skaiir opened this issue Aug 7, 2024 · 3 comments
Labels
backlog Queued in backlog enhancement New feature or request

Comments

@Skaiir
Copy link
Contributor

Skaiir commented Aug 7, 2024

Is your feature request related to a problem? Please describe.

There are plenty of cases where it is relevant to define a set of specifically ordered items. For example a list of fallback values in order of priority. Yes, this can be handled via adding another 'priority' item in the list, but this is less than ideal UX and it would be nice to have a native properties panel solution for this.

Describe the solution you'd like

Ideally, I would like to be able to configure my list with a 'sortable' or 'canReorder' boolean, which when active, would show little up and down arrows to move an element up or down one. This is probably enough, I wouldn't expect to support any sort of drag and drop functionality as this becomes to much to implement, and too visually noisy.

I think this keeps the scope small while fixing the one current pain of ordering which cannot be fixed without modifying the schema (or if you don't have access to it, delete and re-add everything in the order you want).

Describe alternatives you've considered

As mentioned, defining the order via another field in the items, but it's not ideal.

Additional context

Discussion: https://camunda.slack.com/archives/C0693F1NFK5/p1723017247141529
Relevant epic: https://github.com/camunda/product-hub/issues/1761

@Skaiir Skaiir added enhancement New feature or request backlog Queued in backlog labels Aug 7, 2024
@Skaiir Skaiir changed the title Support sortable lists (not autosort) Support list re-ordering Aug 7, 2024
@Skaiir
Copy link
Contributor Author

Skaiir commented Aug 7, 2024

@nikku If you think this makes sense, we can provide a simple design proposal and a PR relatively promptly. This would be opt in, so it wouldn't affect any existing implementations.

@Skaiir
Copy link
Contributor Author

Skaiir commented Aug 7, 2024

For our particular use case, it's about re-ordering options in form dropdowns, which isn't technically crucial but a nice to have. There certainly are more scenarios where this is more of a requirement such as priority lists.

@barmac
Copy link
Member

barmac commented Aug 19, 2024

Thanks! I think it makes sense. Even if we don't prioritize BPMN implementation, it should still significantly reduce the effort when you provide the core implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog enhancement New feature or request
Development

No branches or pull requests

2 participants