/goal Modernize the entire payments module: replace deprecated APIs, remove dead code, collapse duplicates. Preserve exact external behavior. Create a checklist in REFACTOR.md and mark items done only after tests + manual verification pass.
/goal Refactor src/auth/ to use the new JWT service. Only edit files in src/auth/ and tests/. Keep all existing behavior. Run npm test && npm run coverage after each major change. Stop when tests pass and coverage >= 75%.
/goal Migrate all React class components in src/ to functional + hooks. Do it file-by-file. Run full test suite after every 3 files. Stop when no class components remain and all tests are green.