← The Drink Compliance case study

Fictional data. For this presentation, the prototype runs on demo data: hotels, outlets, amounts, accounts and menus are all made up. The screens are in French, as presented.

Project retrospective

Drink Compliance: from the PM's prototype to code the developer took over

How I designed, tested and delivered a working React prototype with AI, in 28 days, for Accor's central purchasing team.

The project

Accor has partnerships with drinks brands and must prove those brands appear on its hotels' menus. Compliant hotels earn a rebate. Drink Compliance runs this check with AI: the hotel uploads its menu and corrects the analysis, and Accor approves it in a back office.

  • 5,600+Accor hotels
  • 110+countries
  • ~45hotel brands
  • 2applications (hotel + back office)
  • 7hoteliers met
  • 1React prototype taken over by the developer
The result first

What the developer received: an application that works, not a mockup

On one side, the hotelier uploads their bar menu, the AI analyses it, and they correct or dispute it. On the other, Accor's operators approve, arbitrate, and create campaigns and rules.

Hotel home: the current campaign, the rebate to unlock, the four steps and the submission history
Hotel side · the hotelier's home page during a campaign
Back-office dashboard: campaign progress, submissions to handle, compliance by brand
Back office · the dashboard: where the campaign stands, what is left to handle, compliance brand by brand
Back office: list of hotel submissions with score, status and filters
Back office · the list of submissions the operators process

“It's exactly the same as the final application.”

The developer who took over the front end, review of 13 August · Translated from French

What the developer kept as is

  • The screens, components and interactions, pixel for pixel
  • Every state and every case to handle, visible in the prototype

What he recoded his own way

  • Calculations and rules: the prototype's logic, rewritten server-side with his own methods
  • Data: the prototype runs on simulated data, the app on the real database
The starting point

A first prototype built by the PM, with AI, without a designer

What I received

  • A Next.js prototype generated by the PM with Claude
  • AI's generic styling, outside the Accor design system
  • Flows not worked through, information scattered
  • Functionality incomplete and not always right
  • Never put in front of users

What I was asked

“A challenge on the UX of that flow, and bringing it in line with the design system.”

The PM, kickoff meeting, 16 June · Translated from French

What I delivered

  • A React prototype on the developers' stack
  • Accor DS components, down to the token
  • Business rules coded and tested
  • Most flows tested with users
  • Every decision approved by the PM and the business
The PM's prototype: the Check the AI results screen, the menu on the left, the list of missing brands on the right
The PM's prototype · checking the AI analysis (demo of 16 June)
The PM's prototype: hotel identification form, four steps, generic styling
The PM's prototype · identifying the hotel
The PM's prototype: list of submissions in the back office
The PM's prototype · the back-office submission list
My workstation

Two windows: VS Code with Claude inside, and the prototype

VS Code
CLAUDE.mdcontext/docs/src/tests/
the file Claudeis currently editing
Integrated terminal
claude · hotel flowclaude · back office
The repo and Claude Code in one place. At the bottom, the terminal where I talk to Claude, sometimes several in parallel, one per workstream. Above, I see every file it creates or changes.
Browser
localhost:5173the prototype, reloaded on every change
The prototype. I check the result on screen, using the demo panel to trigger each state.

Claude starts from scratch in every new conversation. What it needs to know is therefore written down in files, but it doesn't read them all the same way:

CLAUDE.md

Project instructions

What Claude must always keep in mind: the business context, the stack, my working rules. Read in full every session, so it stays short.

Example: no hard-coded colour or size, only Accor DS tokens.

context/ folder

Business knowledge

What the business said and decided: the rules, the trade-offs, feedback from workshops and tests. Never read in full: Claude looks up what it needs, when it needs it.

Claude Code memory

Decisions made

What we decided while working: at every trade-off, Claude writes a note (the decision, its reason, the pitfalls). Over 200 notes across the engagement. Only the index is read every session; Claude opens a note only when the topic calls for it.

Example: “one fact, one wording”. The same status is worded the same way on the hotel side and in the back office.

They are plain text files: I reread and correct them like any other document.

Step 1

Ask the developers for their stack before drawing anything

First question to the developers: what do you build with? Answer: Vite, React, Tailwind, shadcn. Not Next.js, unlike the PM's prototype.

So I migrated the prototype to their stack before touching the UX. Everything else is only worth something if the developer can take the code over as is.

  1. receivedNext.js, default styling
  2. migratedVite + React 19 + TypeScript, Tailwind v4 + shadcn, in a GitHub repo shared with the developers

A prototype that isn't on the developers' stack is still a mockup.

Step 2

From Figma to React component, without copying a single value by hand

There was no Storybook on the developers' side, but the Accor design system was complete in Figma. With a Figma access token (a personal API key), Claude reads the design system directly: colours, type, spacing, every variant of every component.

  1. sourceAccor DS Figma file
  2. readFigma API + access token
  3. extract35 component specs
  4. tokensA single reference CSS file
  5. code27 shadcn components on Accor tokens
  6. nextBasis for the developers' Storybook

What the AI does

  • Read Figma and extract the exact values
  • Build each component one by one
  • Compare the rendering to the spec, pixel for pixel
  • Rerun the extraction when Figma changes

What I do

  • Choose which components, and in what order
  • Check by eye, zoomed in
  • Arbitrate when Figma and real use diverge
  • Report gaps to the DS team

Bonus: by measuring, we found that the existing library had the whole button scale shifted by one step compared with the DS. Reported to the DS team, with the numbers.

Step 3

Redoing the UX: the core of the job

AI produces fast, but it knows neither the business nor what works. That is my job: understand the need, then choose the information hierarchy, the right component, the right word in the right place.

I fully reworked the flows and the information hierarchy. With one difficulty: two kinds of hotel in a single app. PM&E hotels (premium, midscale and economy) have one bar and one menu; luxury and lifestyle (L&L) hotels have several bars and restaurants.

  1. I clarify the need with the business

    Requests arrive vague or incomplete: the business knows what hurts, rarely what it wants. Working in pair with the PM, I turn them into precise questions, keep the list of what is still open, and take each point through to a decision.
  2. I design

    Flows, hierarchy, interaction choices. I start from what I know works, and I check on Mobbin, a library of product screens, how reference products solve the same problem. For declaring a hotel's outlets: six products compared (Kayak, Expedia, Airbnb, Navan…).
  3. I get decisions made on something concrete

    The business doesn't always know what it wants until it sees it. On an open question, the AI codes two or three clickable options, with real data. We compare for real, and the discussion moves from opinion to choice.
  4. I keep the whole app consistent

    A choice is never isolated: it applies wherever the same object appears. Same component, same word, same behaviour, on the hotel side and in the back office. The PM&E and L&L flows differ, but are built from the same blocks.
  5. The business decides, users confirm

    The business decides what the product must do; hoteliers and the operator say whether it works in use. Because the prototype is clickable, a variant can be tested the same day.

Before each workstream, the AI asks me questions about the need, then writes a spec and a plan that I approve before any code.

What the tests changed

What they saidWhat changed
“I'd put a yes or a no” hotelier, CanadaTwo checkboxes instead of a word to type before the analysis
“He didn't know what to put as an outlet” Sofitel debriefNamed types: restaurant, bar, terrace, rooftop, pool
“We're not sure he'll move it” (the slider) back-office operatorA required select instead of the slider, fixed that same evening
“see what the requirements are” F&B director, WhistlerThe home page shows the deadline, not the history

7 hoteliers and the back-office operator, between 20 and 30 July, in think-aloud walkthroughs: I drive the screen, they say out loud what they understand. Quotes translated from French, except the Whistler one.

What they thought of the prototype

“It's very clear, this application works well.”

The back-office operator, seeing the prototype, 24 June · Translated from French

“So far it's super, super easy to navigate, to be honest.”

The bar manager of a Sofitel, in testing, 30 July

AI produces the options. I choose, users confirm.

Step 4

The demo panel: every state of the app, two clicks away

An app doesn't have one screen, it has hundreds: depending on the hotel, the campaign, what the AI found, what breaks. In Figma, each case is a screen to draw and then maintain. Here, it's a switch.

A round button at the bottom right opens the panel. Its content adapts to the screen on display: it only offers what makes sense there.

Hotel homeThe hotel being played, PM&E or L&L, the campaign state, the result after review.
Demo panel on the hotel home: segment, hotel being played, campaign state before and after submission
Outlets stepEmpty or filled form, failed upload, file too large, analysis failed or too slow.
Demo panel on the Outlets step: empty or filled form, failed upload, file too large, analysis failed or too slow
Review stepThe type of rule that is missing, and how many products the hotel already has on its menu.
Demo panel on the Review step: type of missing rule and number of products already on the menu
Back officeUpcoming, active or closed campaign, number of submissions, error pages.
Demo panel in the back office: campaign state, submission volumes, error page and message
In 23 seconds: the case status changes, the hotel switches to luxury, we jump to the outlets step (filled form, empty, filled), then to the review, switch to the back office and come back to the hotel side. The panel stays on the right throughout.
For whomWhat the panel changes
Me, when checkingI reach a rare case directly, without replaying the whole flow to get there.
The client, in a demoTo a question like “what if the hotel has several bars?”, I answer by switching, live.
Hoteliers, in testingI switch from a PM&E profile to an L&L one within the same session.
ManagersI send them a link and they explore on their own. The back-office operator showed it to her management the day after her test.
The developerHe sees every case he will have to handle, errors included.

A state you can't trigger can't be shown, tested or fixed.

Step 5

Testing every decision: the prototype has to be right

The prototype is the developer's reference and the client's demo. An error on screen becomes an error in the product. And a prototype this size breaks easily: you fix one screen, you break another.

Flow tests

Playwright drives a real browser: it opens the prototype, clicks, fills in fields, and checks what appears on screen.

Example: when the AI analysis fails, a message appears above the window, in French as in English, and the hotelier can retry from the same button, without limit.

Logic tests

No browser: a business rule is checked directly, often against every real rule at once rather than a single example.

Example: for an “at least 1 product out of 2” rule, one accepted product is enough to comply; if both are rejected, the hotel is non-compliant.

555tests in total

One day, for the same rule, the review screen said 3 products were missing and the summary said 1. A test now compares the two screens.

Claude writes the tests. My job is to say what they must guarantee, and to name each file after what it guarantees, for example “summary matches review”. A developer joining reads the file list as a list of rules.

A decision without a test isn't settled, it is only documented.

Step 6

Making the code deliverable: a real clean-up phase

A prototype generated fast degrades fast: duplicates, giant files, hard-coded colours. I took the developers' coding rules and had them checked automatically.

The rules

  • One component per file, under 200 lines
  • Everything comes from the design system: no element built for a single screen
  • Never the same element twice
  • No hard-coded colour or size, only design-system values
  • Interface components hold no business rules
In hindsight

What I would do differently

  1. Bring the hoteliers in earlier

    They arrived in week five, after the developer had started. Their feedback moved screens he had already taken over. A week earlier, those changes would have reached him first.
  2. Run the tests automatically on every change

    Here, they were run by hand. A mismatch between the hotel side, which showed 9 rules, and the back office, which showed 10, went unnoticed for 11 days.
Thank you

Questions about this approach?

Let's talk about your project →

Read the Drink Compliance case study

Vianney Bertrand · Senior Product Designer · Product BuilderFigures and quotes taken from the project repository and working sessions (June to August 2026). The prototype shown runs on demo data.