The PR below shows changes in a small kanban column panel. After the update, users report that actions are sometimes applied to the wrong card, especially after changing the order, and the visual row highlight behaves strangely.
You need to review the diff and find the defects.
TaskCard cards.Move up button must change the order only of the selected card.Done button must call onToggleDone for exactly the card in whose row it was clicked.selectedTaskId must remain tied to the same entity after reordering the list.StrictMode in development mode and in production.Write docs, Fix toast, Ship release.Fix toast row to select it.Move up on that same row.Done on the top row several times after reordering.id should remain selected, not the row that used to be in that position.19.0.05.8.2createRootStrictMode in development; the defect must be considered real for production as welltask.id is unique and stable, selectedTaskId stores exactly the card idUse line comments to explain the problem, its impact, the fix and how to test it.