You are working on a React employee list panel. The app must run in React 19 and TypeScript 5.8, in the browser, in StrictMode. The build is done with Vite 6.x without additional dependencies. The component receives an initial list of employees and allows: 1) toggling sort by name, 2) selecting a row with ArrowUp/ArrowDown keys, 3) marking the selected employee as "working" with the Enter key. After any sorting, the selection must remain on the same employee, not on the same position. After confirmation, the status must change for the selected employee.
Expected behavior for manual verification:
Assumptions:
React 19.0.0, TypeScript 5.8.2, Vite 6.1.0, browser; run in development with React.StrictMode enabled and verify behavior in production build too.
Use line comments to explain the problem, its impact, the fix and how to test it.