I mainly fixed bugs within team B for the e-commerce portal in support mode.
I reviewed user reports, created tickets, and fixed what I could.
(A couple of times I received screenshots of bugs from users as an Excel table with one photo.)
Team A was working on a rewrite from scratch. (not without reasons)
90% — small bugs like:
- DatePicker doesn’t reset the date
- Incorrect autofill of order form fields
- Component A state lost on B
- Translation broke
- Searches for the wrong product by special number
Task: create a ticket, request the data needed for bug tracing from the report author (reproduction steps, site version, account category), localize the bug, fix it, and send a PR for review.
Dubious pleasure
Perhaps the worst codebase I’ve had to work with.
Finding the cause of a basic bug periodically took hours.
A few fun examples:
- 3 repositories:
Site,UI Kit,Redux store. (UI-kit and store are connected as external modules/libraries.) - Part of the state is
Redux, part isZustand. The@tanstack/querycache is ignored and usually falls intoZustand. - One-off custom hooks
- Components with inline logic of 1500 lines (literally. “Ahem, the previous point…”)
- Constant
prop-drilling3–4 levels deep despite the abundance of state management - A mix of
legacyand new components for different site versions (by country)
On the other hand, it was good experience working with a problematic codebase.
Since I didn’t participate in writing the actual application code and was only indirectly familiar with the business logic and component base, bug hunting became a separate challenge.
I joined other projects either at an early or initial stage, so I had practically no such experience.
Team
Frontend: 6 Backend: 3 QA: 2 Management: 2
Stack
Frontend: React, TypeScript, Redux, Zustand, Micro Frontend, Material UI, i18n, @tanstack/query Toolchain: Azure Devops, ServiceNow
Interesting tasks
Catalog tree
The site has a huge catalog of several tens of thousands of products. Maximum category depth is 8 or 9 levels.
When opening the catalog, the application made a request for the tree structure with depth 5, which already took several seconds. The backend recursively collected preview data such as “number of products in a category”, etc.
When navigating deeper than level 5, metadata was missing: product count, images.
I wrote an on-demand request system:
- For the current level, 2 requests are made:
selfandparent. - The request cache remains in
@tanstack/query. - Thanks to the
parentrequest, on first visit (not arootcategory) all the needed navigation data is already available. - When navigating up/down,
parent/childis already in the cache. - Navigation to a route that isn’t in the cache — ~300 ms instead of several seconds.