All work
Travel / Case study
Multi-tenant travel booking platform
One codebase serving three brands, with a booking flow that converts 14% better.
- Client
- European tour operator
- Period
- 2021 – 2023
- Role
- Frontend developer, booking flow owner
- Result
- +14% booking conversion after the flow rewrite
- Next.js
- TypeScript
- React Query
- Contentful
- Playwright
Problem
The operator ran three country brands on three forks of the same storefront. Every fix had to land three times, the forks had drifted apart, and the booking flow — six steps, two of them slower than three seconds on mobile — was losing customers between search and payment.
My role
I owned the booking flow end to end on the frontend and co-designed the multi-tenant architecture with the tech lead. I also set up the visual regression suite that let us merge the forks without breaking any brand.
Key decisions
- Tenancy as configuration, not code. Each brand became a config object (theme tokens, enabled features, content space). Components read from a typed tenant context, so a new brand is a PR with one file.
- Booking flow as a state machine. Six implicit steps with shared mutable state became an explicit machine. Invalid transitions became impossible instead of "handled", and every step became deep-linkable.
- Fetch on intent. Availability for the next step is prefetched when the user focuses the CTA, not after the click. Perceived step latency dropped to near zero without extra load on the pricing API.
- Visual regression before refactors. Playwright screenshots for each brand × breakpoint ran in CI before we touched the forks, so merging them was measurable, not hopeful.
type Step = 'search' | 'room' | 'extras' | 'travellers' | 'review' | 'payment';
const transitions: Record<Step, Step[]> = {
search: ['room'],
room: ['search', 'extras'],
extras: ['room', 'travellers'],
travellers: ['extras', 'review'],
review: ['travellers', 'payment'],
payment: ['review']
};
export const canGo = (from: Step, to: Step) => transitions[from].includes(to);Result
- Three forks merged into one codebase; new brand setup went from weeks to two days.
- Booking conversion up 14% in the quarter after launch, with step latency under 300 ms at p75 on mobile.
- Visual regression suite of 400+ snapshots still guarding releases.