← All workBalaji SankarCase study 03 / 12
Vehicle platform / dealer operations2026NDA · name withheld

Vehicle DealerHub

I merged a standalone upfitter portal into the main dealer dashboard of a vehicle platform: one login, one design system and one codebase, with no business logic lost.

Case study by Balaji Sankar · Updated October 2026

Client

A vehicle platform for fleets, dealers and upfitters

Role

Frontend engineer - specification and implementation

Timeline

2026

Stack
ReactTypeScriptViteTanStack RouterTanStack Queryshadcn/uiTailwind CSSZoddate-fnsKeycloak
Outcomes
70+

Shared components reused instead of rebuilt

✦

Upfitter workflows moved into the dealer dashboard: one codebase, one login and one design system

01 / 09The opportunity

Why did it need to exist?

The issue
  • Dealers and upfitters on two separate frontends
  • Two design systems, routers, state layers and logins
  • Related order workflows that looked and behaved differently
  • Business rules that could not be dropped
The solution
  • One unified dashboard for dealers and upfitters
  • One login through Keycloak SSO
  • Upfitter screens built from the existing component library
  • A full specification before any code was written
02 / 09The challenge

What made it hard?

Getting work vehicles into a fleet involves the buyer, the dealer that sells the chassis and the upfitter that turns it into a working truck or van. The platform had separate web apps for these groups.

The upfitter portal ran as its own deployment with its own design system, state layer, router and login, so upfitters and dealers got different experiences and the team was maintaining two frontends for closely related order workflows.

03 / 09Approach

How did I approach it?

01

Spec first

I read the legacy portal end to end and wrote a migration requirements doc covering every screen, business rule and edge case, mapping each legacy component to its dealer-dashboard equivalent before writing any code.

02

Re-platform, don’t copy

MUI Joy became shadcn/ui and Tailwind on the dashboard’s tokens, Redux and RTK Query became React Query with scoped context, React Router became file-based TanStack Router, Yup became Zod and moment became date-fns.

03

Reuse what exists

Upfitter screens were built from the dashboard’s existing order-tracking components and page layout, so they look and behave like the rest of the product.

04

Build in phases

The core migration was delivered in seven phases, with analytics kept continuous throughout.

04 / 09Key decisions

Which calls shaped it?

(01)

Write the specification first

Problem

Almost every layer was changing at once, which made it easy to lose a business rule.

Decision

I read the legacy portal end to end and wrote a migration requirements document mapping every screen, rule and edge case.

Outcome
  • Every rule tracked before coding
  • Legacy components mapped to dashboard equivalents
  • A clear plan for phased delivery
(02)

Re-platform rather than copy

Problem

Copying the old code would have kept a second design system and state layer alive inside the dashboard.

Decision

MUI Joy became shadcn/ui and Tailwind, Redux and RTK Query became React Query, React Router became TanStack Router, Yup became Zod and moment became date-fns.

Outcome
  • One stack across the product
  • No parallel UI kit to maintain
  • 70+ existing components reused
(03)

Retire magic-link login

Problem

Migrating the portal's own auth pages would have duplicated login flows.

Decision

Upfitters moved onto the dashboard's Keycloak SSO, so the auth pages did not need migrating at all.

Outcome
  • One login for both groups
  • Less code moved
  • Datadog, Amplitude and PostHog kept in place
05 / 09What I built

What did I build?

Unified dealer and upfitter portal
Unified dealer and upfitter portal1 / 3
  • (01)

    Open and completed order workflows, bulk CSV and Excel import, filtering, search, export and upfitter profile management moved into the unified dashboard.

  • (02)

    Magic-link login retired in favour of the dashboard’s Keycloak SSO, so auth pages didn’t need migrating at all.

  • (03)

    New screens built from a 70+ component internal library rather than a parallel UI kit.

  • (04)

    Datadog kept alongside Amplitude and PostHog so monitoring history survived the cutover.

06 / 09Foundation

What is it built on?

Reuse before building

Use the existing component library rather than creating parallel UI.

Keep every rule

No business logic is dropped just because the stack changes.

Keep monitoring continuous

Analytics and monitoring survive the cutover.

Frontend
ReactTypeScriptTanStack RouterReact Query
UI
shadcn/uiTailwind70+ shared dashboard components
Validation and dates
Zoddate-fns
Auth and analytics
Keycloak SSODatadogAmplitudePostHog
07 / 09Delivery

How was it delivered?

  1. Phase 1

    Legacy review and spec

    End-to-end read of the upfitter portal and a requirements document for every screen and rule.

  2. Phase 2

    Component mapping

    Mapped each legacy component to the dashboard's existing component library and page layouts.

  3. Phase 3

    Phased migration

    Upfitter workflows rebuilt inside the dashboard over seven implementation phases.

  4. Next

    Hardening and retirement

    Tests, lazy loading, CI/CD updates and retirement of the old portal, planned as the final phases.

08 / 09Reflection

What did I learn?

01

Specs make big moves safe

Writing every rule down first made a many-layer change manageable.

02

Delete what you can

Retiring the old login removed a whole set of screens from the migration.

03

Libraries pay off twice

A strong existing component library made the upfitter screens fast to build and consistent.

09 / 09FAQ

Questions about this project

What did Balaji Sankar build in the Vehicle Dealer Hub project?
I merged a standalone upfitter portal into the main dealer dashboard of a vehicle platform: one login, one design system and one codebase, with no business logic lost.
Who was the client?
A vehicle platform for fleets, dealers and upfitters, in vehicle platform / dealer operations. The work is under NDA, so the client is not named.
What was the hardest part?
Getting work vehicles into a fleet involves the buyer, the dealer that sells the chassis and the upfitter that turns it into a working truck or van. The platform had separate web apps for these groups.
What was his role?
Frontend engineer - specification and implementation.
What technology was used?
React, TypeScript, Vite, TanStack Router, TanStack Query, shadcn/ui, Tailwind CSS, Zod, date-fns and Keycloak.
What were the results?
70+ shared components reused instead of rebuilt and Upfitter workflows moved into the dealer dashboard: one codebase, one login and one design system.

Have a project like this?

Tell me what you’re building or what’s broken. I’ll tell you straight whether I’m the right person for it.

Next caseProcurement / spend analytics / B2B SaaS2022 - presentSimfoni Suite→