Skip to content
Prajwal Bhatia
All work

Virtual Internships · 2026

Batch Selection

Batch selection had a 500-line component that duplicated backend rules. I split the frontend into focused hooks, moved eligibility decisions to the API and deleted state that no longer needed to exist in the browser.

A smaller frontend

The component became separate hooks for data, submission and event logging. I replaced legacy Redux thunks with RTK Query and changed the API to return only relevant batches. That removed frontend copies of lock and single-batch rules that could drift from the server.

A bug the rewrite exposed

Partner and batch filters had silently been dropped from requests because our custom RTK Query base query ignored its params field. I fixed the URL construction and added tests and an accessibility pass alongside the rewrite.

Interested in the rest of the work?

Browse projects