← All work

Heavy Fleet Operations Client (via DOT Indonesia) · 1 Sept 2026

Fleet Reliability and Decision Engine Platform

Full-stack fleet operations platform turning raw Excel data into matrix-driven repair and spare-part stock recommendations for a DOT Indonesia client.

Role Full-Stack Engineer
Stack
ReactTypeScriptAnt DesignTanStack QueryNestJSTypeORMPostgreSQLPlaywright

The problem

Heavy fleets in mining, plantation, and logistics deal with frequent breakdowns and limited maintenance budgets. Operational and finance teams kept unit records, breakdowns, purchase invoices, spare parts, and revenue in separate Excel spreadsheets across departments.

That manual setup caused two expensive problems. When multiple units broke down at once, teams had no matrix to rank which unit to repair first, so high-earning units sat idle and lost revenue while budget went elsewhere. Units also stayed in downtime because frequently needed spare parts were not bought ahead of time.

What I built

As a full-stack engineer at DOT Indonesia, I worked on both the React frontend and NestJS backend of a fleet reliability and operations platform for a DOT Indonesia client. The platform ingests raw Excel files and runs them through two matrix-based decision engines.

Main parts I built and hardened:

  • A repair recommendation engine that scores raw operational, maintenance, and revenue data through a matrix to rank which broken units should be repaired first so the business avoids revenue loss on a small maintenance budget.
  • A stock recommendation engine that identifies which spare parts failing units need most often and recommends what to buy early, with partial purchase quantity validation tied to each item’s unit of measure so units do not wait on stock.
  • Excel and CSV import pipelines covering master data (customers, suppliers, item price references, asset investors, delay reasons) and financial records (purchase invoices, petty cash lines, revenue lines).
  • Playwright API test suites on the NestJS backend and Playwright E2E test suites on the React frontend split across master data, operations, and transactions.

The hard part

Both decision engines depend on clean spreadsheet ingestion. In practice, operators edited Excel templates, shifted column order, renamed sheets, or uploaded rows pointing to missing master records. If bad rows made it into the database, the repair matrix and stock recommendations produced wrong priorities.

I tightened both template generation and backend parsing. The importer now checks exact sheet counts, sheet names, header names, and column sequences before reading rows, syncs Excel dropdown templates with live master data, and enforces partial purchase quantity rules per unit of measure in the NestJS service layer. On the frontend, I fixed lazy-route error boundaries so React suspense errors could not hide the real data error when a table received bad rows.

Results

Teams upload raw departmental Excel files and get ranked unit repair priorities plus spare-part purchase recommendations backed by strict import checks, consistent DataTable pagination and sorting, and automated Playwright API and UI tests across every domain.

What I learned

Validating spreadsheet structure before parsing rows catches most operator mistakes early. Checking sheet count, sheet names, and exact column order upfront gave clearer errors than letting malformed rows fail inside database inserts.

Unit-of-measure rules for partial stock purchases have to live in the backend service layer. Frontend input limits help during manual entry, but bulk imports and direct API calls bypass them unless the service enforces the same rules.