← All Work
Macy's · 2022Featured

Global Header Migration

Senior Software Engineer (Repository Owner)

Full migration of Macy's global header from Backbone/Marionette to Vue 3 + TypeScript under microfrontend architecture.

legacy-modernizationmicrofrontendsperformanceaccessibilityarchitecture
Backbone / MarionetteVue 3 + TypeScript
~2M
Daily active users impacted
100%
Feature parity maintained
-35%
Bundle size reduction

Overview

The global header is a mission-critical shared component used across Macy's digital ecosystem, handling navigation, search, cart, account, and promotional logic for millions of users.

The legacy implementation was written in Backbone, Marionette, jQuery, and Handlebars with tightly coupled logic and deeply nested state.

When I joined, I had no prior experience in that stack. I reverse-engineered the legacy architecture, mapped state flows, and led the modernization strategy.

I owned the entire header repository, led migration architecture discussions, converted complex nested legacy logic into modular Vue 3 + TypeScript patterns, rewrote data transformation algorithms from jQuery-heavy logic to modern JS, designed scalable state handling, ensured zero production regression during rollout, and mentored another engineer during the transformation.

This was not a rewrite — it was a live migration inside active production traffic.

Context

Macy's web platform was running on a legacy Backbone/Marionette frontend that was increasingly difficult to maintain and hire for. The global site header — navigation, search, cart indicator, account menu — was the highest-visibility component on the site, rendering on every single page for millions of daily shoppers.

Constraints

  • The header appears on every page — any bug is site-wide
  • Legacy Backbone/Marionette codebase with years of accumulated complexity
  • Must maintain exact feature parity (mega menus, search typeahead, cart count, account state)
  • Incremental migration required — cannot take down the site for a rewrite
  • Multiple teams depend on header events and APIs
  • SEO-sensitive: header contains critical navigation links

Role & Ownership

I owned the entire header repository end-to-end. I designed the Vue 3 + TypeScript architecture, established the migration playbook, coordinated with the platform team on integration strategy, and directly implemented the navigation mega menu, search integration, and cart indicator components. I mentored a junior engineer through the transformation process.

Key Technical Decisions

Vue 3 Composition API with TypeScript

Chose Vue 3 with Composition API over Options API to improve code organization and type safety. This aligned with Macy's broader frontend modernization direction while providing better TypeScript integration than the alternatives considered.

Bridge pattern for legacy integration

Designed a bridge layer that allowed the new Vue header to communicate with remaining Backbone modules through a shared event bus. This enabled incremental migration — the new header could be deployed while other page sections were still on the legacy stack.

Accessible mega menu from scratch

Rebuilt the mega navigation menu with proper ARIA roles, keyboard navigation (arrow keys, escape to close, tab trapping), and screen reader announcements. The legacy implementation had significant accessibility gaps that were resolved in the migration.

Performance-focused rendering

Implemented lazy rendering for mega menu panels (only mount on hover/focus), virtualized the search typeahead results list, and used Vue's built-in keep-alive for frequently toggled panels. Combined with tree-shaking unused Backbone code, achieved a 35% bundle reduction.

Testing & Quality

Created a visual regression testing suite using Chromatic to ensure pixel-perfect parity between the legacy and new header across all breakpoints and states (logged in, logged out, cart empty, cart full, etc.). Combined with unit tests for navigation logic and E2E tests for critical user flows.

Outcomes & Impact

  • Migrated the header serving ~2M daily active users with zero rollbacks
  • Achieved 100% feature parity while resolving 12 known accessibility issues
  • -35% reduction in header JavaScript bundle size
  • Migration playbook adopted by 3 other teams for their component migrations
  • Zero production regressions during the entire rollout period

Tech Stack

Vue 3TypeScriptComposition APIPiniaViteJestChromaticARIAWebpack

Next Case Study

New Digital Platform Launch

Toyota Financial Services · 2021–2022

Read