Implemented drag and drop reordering of settings management lists and selecting a position to reorder queue waitlists.
API calls are made to reorder guests, so reordering is optimistically updated while data is updated and revalidated. Indexed lists are stored in context and refreshed on revalidation. Headless UI and Framer are used to facilitate drag animation and popover forms.
Waitlist reordering impacts guest wait times, so I worked with the backend developer to create a reorder algo using a datetime order value instead of created datetime for calculating wait times.