A small panel shows pinned tickets and allows selecting rows for a bulk action. After a recent PR, the behavior became unstable: when the set of pinned tickets changes, the visually selected rows are no longer the correct ones, and the action triggered by the button sometimes applies to elements other than the ones the user sees as selected.
tickets array and displays only items with pinned: true.Archive selected button must archive exactly those pinned tickets that are currently selected in the UI.StrictMode.App.tsx.Select on the Billing delay and Quota request rows.Pin sync incident to add a new pinned ticket to the top of the list.Archive selected.Selected state must remain on the same tickets by id.archived only for the tickets that are actually selected.19.0.05.8.xdevelopment with React.StrictModenpm install and npm run dev are enoughid across rendersUse line comments to explain the problem, its impact, the fix and how to test it.