← All work

SWAP Admin V1/V2 transition

Period Major release in 2025.12

Role
As SWAP FE Part Lead, I developed major screens, reviewed technical choices and code, and contributed to the team’s Admin V2 release.
Result
Helped keep legacy and new task lookups available in the team's Admin V2 release. The related changes were merged in December 2025.

Context

The V2 screens and Fleet API were introduced while legacy task data still needed a lookup path. Screens and data could not change all at once.

Key decisions

  • Keep new and legacy task lookups available

    At release time, task details tried the Fleet API V2 lookup first and used a V1 path if the request failed.

  • Navigate by data version

    The transition included checking task versions on the legacy detail screen and routing V2 tasks to their matching detail screen.

  • Align related operations paths

    I contributed to the transition of subscription, task, and factoring screens alongside permissions, the sidebar, payment lookup, and bulk-work flows.

Implementation details

View implementation flow

For Admin V2, we connected navigation to the data version and integrated new API responses while detail and contract workflows still used legacy APIs.

  • React
  • TypeScript
  • Vite
  • TanStack Query
  • Suspense
  • ErrorBoundary
FLOW / 04Select a stage
SELECTED STAGE / 01

Open details

Fetch task data from the legacy URL

Read every stage
  1. 01
    Open details

    Fetch task data from the legacy URL

  2. 02
    Check version

    Use the task version in the response

  3. 03
    Move to V2

    Navigate to the new detail route with replace

  4. 04
    Continue operations

    Keep new and legacy API workflows available

Version-aware navigation in screens migrated with the team.
ROUTING

Version-based routing

The legacy task detail checked the version in the response and sent V2 data to the new detail screen. Navigation used replace so the transitional entry URL did not add another browser-history entry.

LIST CONTRACT

Filter and pagination state

The factoring list managed filter and page state together and omitted empty filter values from lookups. A filter change returned to the first page; the Fleet API’s total count and page were connected to table pagination.

MIGRATION BOUNDARY

Mixed API boundaries

New lists used Fleet API page responses, while related detail, contract, and attachment workflows still had legacy API paths. I contributed to the team release connecting new entry screens for subscriptions, tasks, and factoring, with loading and error boundaries for the factoring V2 list built using Suspense and ErrorBoundary.

Next projectBike orders and contracts