cat ./work/new-look-club.md

New Look Club

Building a retail loyalty programme end to end on a new headless Next.js storefront — web app, GraphQL BFF, design system and mobile API.

Role
Full-stack engineer (front-end focus), Club / Loyalty squad
Where
New Look
Year
2025
Status
live
  • TypeScript
  • Next.js App Router
  • React
  • GraphQL
  • Apollo
  • Node.js
  • Nx
  • Playwright
  • Storybook
Cover card: New Look Club — loyalty programme, Next.js, GraphQL BFF

The problem

New Look was moving to a new headless Next.js storefront, and the Club loyalty programme had to be rebuilt on it from scratch. It had to work for brand-new customers and existing ones, and talk to SAP and a separate membership service.

What I built

As part of the Club squad, I own features end to end across the stack:

  • The core Club journeys — registration, login, joining as a new or existing customer, the members’ rewards hub, the Club landing page and the leave flow.
  • The website’s GraphQL backend-for-frontend, which brings SAP and the membership service together behind one API for the storefront. Separately, I also cleaned up the mobile app’s API (see below).
  • Shared design-system components — form controls with live validation, modals, tooltips, banners and navigation, each with unit tests, Storybook stories and full keyboard and focus support.
  • CMS-driven content with ContentStack, rendered server-side with validated fields, plus a guide so content editors can run it without engineering.

Everything ships behind Azure App Configuration feature flags, sequenced so the API and the website can deploy independently, in either order. I’m also a release owner for production: release notes, scope and versioning, and running the promotion pipeline through change control.

Hard parts

  • Security debt on the mobile API. It had 195 open security alerts. Across six PRs I took it to zero, which meant major upgrades (Apollo Server 5, graphql-codegen 7) and replacing Lerna. To prove nothing regressed, I built an A/B harness comparing responses from the old and new builds.
  • A bug hiding in the monitoring. Malformed GraphQL requests were coming back as 500s instead of 400s. The cause was the monitoring instrumentation itself, not our resolvers.
  • Tests that weren’t testing. I found monorepo test configuration that let libraries pass while running zero tests. I fixed it, enforced module boundaries, unified dependency versions, and untangled mock-server collisions that were blocking test environments.
  • Privacy by default. Moved authentication to SAP OAuth, masked customer data in logs, blocked open redirects, and made new cookies wait for consent.

Outcome

The core Club journeys shipped on the new storefront, released behind feature flags through the production promotion pipeline. I also built funnel analytics for joins, leaves and CTA engagement, with channel and store attribution.