-
Notifications
You must be signed in to change notification settings - Fork 253
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
fix: reorder a rotation in which a user participates more than once #1479
Conversation
Using an index causes subtle issues, especially w.r.t. keyboard use and focus: |
@mastercactapus good catch. I'm a bit stumped on what to do here. We could potentially expose rotation participant ID's from graphql. Any ideas? |
Yeah, I spent an hour or two last week trying to come up with something. Participant IDs wouldn't work either because we update those entries, rather than reorder them, in the backend. We'll need to persist reorder history or something and match it up to get stable IDs of some sort. Maybe this would work:
I think it might work if we just handle the most recent action. That way we don't lose focus on the current element from it being replaced due to a key change. |
Works great! Just had the one thing about maintenance then it looks good to go. Crazy that this has been present for so long 🤯 |
make check
to catch common errors. Fixed any that came up.Description:
Fixes #1478