-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Logs UI] Make column configurations reorderable #35736
Comments
Pinging @elastic/infrastructure-ui |
Have we considered a library to help with this so that we can do dnd UI in an accessible way? Something like: https://github.com/atlassian/react-beautiful-dnd ? Alternatively, is @thompsongl working on something for DnD in EUI? |
EUI already has components that wrap react-beautiful-dnd. I just tried it out and it actually is keyboard accessible 🤯 So we should be fine with option 1. |
Haha you are 6 steps ahead of me, great. 🎉 |
Nice! I'll be continuing to add additional styles and context hooks to EUI DnD to extend what you get from react-beautiful-dnd. Seems like this use case is straightforward enough, but let me know if you find any functional gaps or room for improvement |
I updated the ticket to mention EUI drag and drop explicitly. 👍 |
This could be difficult if we want the entire column (as opposed to just the headers) to be picked up and dragged when the user moves their mouse. Since the headers and the columns themselves are rendered in entirely different root components, just having the headers be the draggable elements would be easier. I'll start with that implementation, and if the UX isn't good enough we can look into the heavier approach. |
Having some difficulty getting I'll look for a workaround. |
@Zacqary Have you tried just adding |
@simianhacker That's what I was going for, but it turns out I misinterpreted this ticket and we actually want to just have the column names be draggable in the Config screen, not have the user drag and drop the actual columns themselves. So that's a simpler task. |
I added a mockup to the description for clarity. Sorry again for the ambiguity. |
Summary
At the time of the addition of configurable log columns in #34916, inserting a column in any position but the last was cumbersome. Instead of having to delete the columns after the desired position and adding them again later, there should be an easy way for the user to move a column at any location.
relates to #31463
AC
Mockups
The text was updated successfully, but these errors were encountered: