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.
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.
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
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.



“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
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



Two windows: VS Code with Claude inside, and the prototype
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:
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.
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.
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.
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.
- receivedNext.js, default styling
- 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.
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.
- sourceAccor DS Figma file
- readFigma API + access token
- extract35 component specs
- tokensA single reference CSS file
- code27 shadcn components on Accor tokens
- 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.
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.
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.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…).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.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.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 said | What changed |
|---|---|
| “I'd put a yes or a no” hotelier, Canada | Two checkboxes instead of a word to type before the analysis |
| “He didn't know what to put as an outlet” Sofitel debrief | Named types: restaurant, bar, terrace, rooftop, pool |
| “We're not sure he'll move it” (the slider) back-office operator | A required select instead of the slider, fixed that same evening |
| “see what the requirements are” F&B director, Whistler | The 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.
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.




| For whom | What the panel changes |
|---|---|
| Me, when checking | I reach a rare case directly, without replaying the whole flow to get there. |
| The client, in a demo | To a question like “what if the hotel has several bars?”, I answer by switching, live. |
| Hoteliers, in testing | I switch from a PM&E profile to an L&L one within the same session. |
| Managers | I 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 developer | He sees every case he will have to handle, errors included. |
A state you can't trigger can't be shown, tested or fixed.
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.
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.
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
What I would do differently
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.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.