Build and Test a Paid Waitlist on a Branch Before It Goes Live
Build a paid waitlist for a live booking app on an Isolated branch, stress-test it on a Scratch branch, and rehearse the database migration before anything reaches main.

Sunclub Yoga is a fictional yoga studio with a fully functioning booking application hosted on Floot. Customers can browse classes, reserve a place and receive a confirmation email. On the admin side, the studio can manage classes and see who has booked.
But as the classes become more popular, a new challenge emerges: how can the studio introduce a paid waitlist without disrupting the customers who are already using the app?
This is where Floot Branches come in.
In this walkthrough, we'll build a paid waitlist on an Isolated branch and test payments, refunds and email notifications without involving existing customers.
We'll then explore two powerful uses of Scratch branches: putting our application under pressure, and rehearsing the upgrade itself before it touches the live database.
By the end, the feature is tested, the database migration has been rehearsed against a copy of the live app, and the branch is ready to merge into main.
You'll learn how to:
- Create an Isolated branch with its own empty database, test payments and caught emails.
- Verify a feature in the branch's own database, payments and email logs.
- Use a Scratch branch for an experiment that can never be merged by accident.
- Read a merge review and fix a migration before it reaches main.
- Rehearse a merge on a Scratch branch to check the live app keeps working after the database changes.
Before you begin
This walkthrough requires a Floot Pro or Power plan, because we'll keep several branches open during development, testing and merge rehearsal.
All customer accounts, booking records and transactions shown throughout this walkthrough are demonstration data. On an Isolated branch, Floot Payments runs in test mode and emails are caught rather than sent, so every payment and email below is a test.
Round one: Start with a working live app
1. Sunclub Yoga: storefront, admin dashboard and database
The storefront lets customers browse classes and book a session.

The admin dashboard shows registered members, scheduled classes, active bookings and available spaces. This original version is live on main.

The app has its own database. Open Services → Data to see the tables and records that support registration, sign-in, the class schedule and bookings.

The important relationship is between users, yoga_classes and yoga_bookings. A booking links a customer to a class and records its status. The other tables support authentication and sessions.

Round two: Build the waitlist in isolation
2. Turn a popular class into a new feature
Sunclub's classes are becoming more popular. What happens when a class is full, but another customer still wants to attend? Rather than asking customers to keep checking for available spaces, we can introduce a waitlist.
The rules are deliberately simple. Customers pay a refundable $5 deposit to join the queue. If a place becomes available, the next customer receives an email and pays the balance to confirm. For a $15 class, that is another $10. If the customer has not secured a place when the class starts, the $5 deposit is refunded and a refund email is generated.
3. Floot's branch types
Floot offers two branch types, Standard and Isolated, along with a separate Scratch branch option.
Standard: A development branch with your choice of database contents and service keys. It suits general development, feature enhancements and bug fixes.
Isolated: A development branch that keeps the existing database schema but starts without copied records by default. It uses the saved test value for each service key, or no value if one has not been configured. Payments run in test mode, and emails generated through Floot's built-in email service are caught rather than sent.
Scratch: A separate option that can be switched on for either Standard or Isolated branches, creating a temporary space for experiments, advanced testing and release rehearsals.
Changes can be merged into a Scratch branch, but cannot be merged out while it remains Scratch. This gives us the freedom to experiment without accidentally introducing experimental changes into our application. We can discard the branch when the experiment is complete, keep it for further investigation, or make it ordinary if we deliberately decide to integrate the work. Scratch branches are deleted after seven days of inactivity unless kept or made ordinary.
For Sunclub Yoga, we'll create an Isolated branch called waitlist, with Scratch switched off. We'll use its Preview to develop and test the paid waitlist without involving existing customers or their booking records. Keeping Scratch off means we can merge the feature once it has been tested and reviewed.
Branches used in this walkthrough
| Branch | Type | Purpose |
|---|---|---|
main | Live | The original application |
waitlist | Isolated | Building the feature: Stripe test payments, refunds and caught emails |
100 User-Stress Test | Isolated, Scratch | A 100-attempt booking-handler test |
merge-rehearsal-v2 | Isolated, Scratch | Rehearsing the merge: the published V1 app against the upgraded database |
4. Create an Isolated branch in the editor
First, open the branch selector at the top of the Floot editor and choose Branch Reviews. This is where you create new branches and review changes before merging them.

Click New branch, name it waitlist, start from main and choose Isolated. Leave Scratch branch switched off, because we want to merge this feature when it is ready. Then click Create branch.

You can also create a branch through your connected assistant by simply asking:
Create an Isolated branch called waitlist from main.
5. Check that the new environment is isolated
The new branch now appears in the branch selector. I also switch on Protect main, so changes must go through a branch rather than being made directly on main.

Switch to waitlist and open Services → Data. The users table still has the same columns as the original table, but it has no records.

We still have the same application and the same database structure, but none of the existing customer records. We have a fully separate environment to work in, without rebuilding the application or setting up another database by hand.
6. Ask the assistant to build the feature on waitlist
Ask your assistant:
Build the V2 waitlist and $5 deposit feature for my Sunclub Yoga booking app. Work only on the Isolated waitlist branch. Version 1 is already live on main; do not modify or publish main.
When a class is full, show Join waitlist instead of Book a spot. Customers must sign in. Collect a refundable $5 deposit using Floot Payments in test mode. Keep the queue first-come, first-served. When a place becomes available through a booking cancellation or an increase in class capacity, offer the available place to the next eligible customer on the waitlist and generate an email notification. Apply the deposit to the class price and collect the remaining balance online when the customer confirms.
If no place is confirmed by the time the class starts, refund the $5 and generate a refund confirmation email. Prevent duplicate refunds. Show the waitlist status in My bookings and the admin dashboard.
Make a few $15 classes full for testing. Use a $5 refundable deposit and a $10 remaining balance. Use only dummy data, test payments and caught emails. Preserve the existing V1 booking flow. Prepare the database migration for main, but do not merge or publish anything. Test joining, payment, promotion and refunds. Show the actual test records and captured emails.
The assistant builds the waitlist and a few full test classes. Because the isolated database starts empty, we register a new test customer before trying the workflow.

7. Join a full class and pay the $5 test deposit
The test class is already full, so instead of a normal booking button, I see Join the waitlist. The interface explains that the $5 deposit is refundable and does not guarantee a confirmed booking.

Click Join waitlist and complete checkout in the Stripe sandbox. The app uses Floot Payments, Floot's built-in payment service powered by Stripe. On an Isolated branch it runs in test mode, so we can go through checkout without charging a real customer.

8. Check what actually happened in the database
The interface says Emily has joined the waitlist, but how do we know the application is behaving correctly? Because the branch has its own database, we can look directly at the records. Open Services → Data and inspect three tables.





Emily has joined the queue without taking a confirmed booking space. The test deposit also appears under Services → Payments.

9. Check the deposit email without sending a real email
Next, open Services → Email → Email logs on the waitlist branch. Send email is off on an Isolated branch: instead of sending messages to the addresses customers entered, Floot keeps them in the logs.

We have a complete confirmation email, with the customer's details, the deposit amount and the booking information, and it has never been sent. We can check exactly what a customer would receive without involving them in development.
Isolation covers Floot's own services, not every service your app connects to. If your application uses a third-party SMS provider, an external email API or another service outside Floot, make sure the branch uses test credentials or that service's sandbox. An external API connected with live credentials could still perform real actions.
10. Test A: Refund a deposit when no place becomes available
First, the scenario where Emily stays on the waitlist without securing a place.
On the waitlist branch, I open the admin dashboard, change the start time of Restore and reset to a time in the past and save.
When I click Save, the backend sees that the class has started and queues a background task called refundClass. It calls refundEntry() to refund the $5 through Stripe, updates the waitlist status and generates a refund confirmation email, which the branch catches.

11. Verify the refund in the database, payments and email logs

Under Services → Payments → Test payments, the $5 transaction is marked Refunded. The matching refund message is in Email logs.


We now have three pieces of evidence for the refund: the database status, the test payment refund and the caught email. No real customer was charged or contacted, so we can test sensitive payment and notification workflows long before they reach the live application.
The implementation also guards against duplicate refunds with database status checks and a Stripe idempotency key. We saw one successful refund; we did not rerun the refund task to test that guard.
12. Test B: Confirm a booking when a place becomes available
Now the opposite scenario: a place becomes available, and the customer pays the remaining balance to confirm. I stay on the waitlist branch and use the same test customer, Emily.
A. Join another full class
This time I choose Hatha foundations, a $15 class with all 12 places booked, join the waitlist and pay the refundable $5 deposit in the Stripe sandbox.

B. Verify the deposit before releasing a place
In Services → Data, I open yoga_waitlist. Record ID 6 links Emily (user ID 4) to Hatha foundations (class ID 5), with the status waitlisted.

Services → Payments and Services → Email show the transaction and the confirmation email.


C. Make a place available by increasing capacity
To release a place, I open Admin → Class schedule → Edit for Hatha foundations, raise the capacity from 12 to 13 and save. A newly available place should be offered to the next customer on the waitlist.

D. Check the offer and pay the remaining balance
Back in Services → Data, Emily's waitlist record has changed from waitlisted to offered: the place is held for her, but not yet booked.

In Services → Email → Email logs, the app has generated a spot-available notification for Emily, marked Caught · not sent.

In My bookings, Hatha foundations now shows a button to pay the remaining $10. The $5 deposit is credited towards the class price.

I click the button and pay $10 in the Stripe sandbox. The app collects the balance rather than charging the full $15 again.

13. Check the final confirmation




14. Test C: Check the queue order after a cancellation
Still on the waitlist branch, I create a fully booked $15 class called Waitlist Queue Test. I join its waitlist as Emily first, then as Sophie, paying the $5 test deposit for each.
In Services → Data → yoga_waitlist, both customers are waitlisted. Emily (user ID 4) joined and paid before Sophie (user ID 35).

Next, I sign in as Alex, a test customer with a confirmed booking for the same class, and cancel his booking in My bookings, releasing one place.

Back in the database, Emily's status has changed to offered, while Sophie's is still waitlisted.

In Services → Email → Email logs, Alex's cancellation confirmation and Emily's spot-available notification are both caught.

The place went to the customer who joined and paid first. (Emily was first by both timestamps, so this test doesn't tell us which one the queue orders by.)
On the Isolated waitlist branch, we've now verified deposits, refunds when a class starts, offers after a capacity increase, balance payments, booking confirmations and queue order after a cancellation, all without a real payment or a real email.
These tests cover the scenarios shown, not every possible waitlist behaviour. In this version, an offered place stays reserved until the customer confirms or the class starts; offer expiry and passing the place to the next customer are out of scope for this walkthrough.
Before merging into main, there's another question worth exploring: how does the booking handler behave when 100 people try to book at once? This is where Scratch branches come in.
Round three: Experiment with a Scratch branch
15. Create a Scratch branch from waitlist
Functional testing tells us whether the application behaves as expected in individual scenarios. But what happens when we push it beyond normal day-to-day use?
We can create a Scratch branch directly from waitlist. This time we're not building another feature. We're exploring how the application behaves under pressure, without any risk of the experiment ending up in the app.
In Branch Reviews, click New branch. Name it 100 User-Stress Test, start from waitlist and switch on Scratch branch. Because waitlist is isolated, its branches are isolated too.

The Scratch branch is a separate environment for this experiment, and the waitlist branch is unaffected. Before running the test, check that the branch holds only test data, uses test credentials and catches emails rather than delivering them.
16. Build a temporary testing dashboard
For this experiment, I ask the assistant to build a temporary stress-testing dashboard for the Sunclub Yoga app. It's a testing tool made for this project, not a built-in Floot load-testing feature.
Ask your assistant:
On my 100 User-Stress Test Isolated scratch branch, build a temporary stress-testing dashboard. Create a dedicated test class with 12 available spaces and 100 unique dummy customers. Use the existing booking handler to simulate 100 concurrent booking attempts. Do not insert booking results directly into the database. Include a Run 100 Concurrent Bookings button, progress indicator, total responses, successful and unsuccessful bookings, remaining spaces, overbooking count, duplicate booking count, response times and a PASS or FAIL result. Use test payments and caught emails only. Keep existing test records separate from this experiment. Do not modify waitlist or main, and do not fix bugs automatically. Let me run the test by clicking the button.
The dashboard sends 100 calls at once to the existing server-side booking handler, using Promise.all(). The test class is free, to separate booking behaviour from payments. It does not simulate browser sessions, separate HTTP requests or waitlist payments.
Open /stress-test in Preview and sign in as the studio admin. The dashboard starts at 0/100 attempts.

17. Run the 100-attempt test
Click Run 100 Concurrent Bookings. With 12 places and 100 attempts, we expect 12 successful bookings, 88 full-class rejections and no overbooking or duplicate bookings.

The dashboard reports PASS: 100 responses, 12 successful bookings, 88 full-class rejections, no overbooking and no duplicates.

18. Check the evidence behind the result
The dashboard says the successful booking IDs match the database. To check for yourself, open Services → Data → yoga_bookings and confirm there are exactly 12 confirmed rows with 12 distinct user IDs.

Then open Services → Email → Email logs: 12 booking confirmations, all caught, none delivered.

With one prompt and one click, we've tested 100 booking attempts against a class with 12 places: 12 bookings, 88 rejections, no overbooking and no duplicates. That verifies the booking handler in this test, not the performance of the whole application under load.
Throughout the experiment, the live website ran as usual, customer data was untouched and the waitlist branch was unaffected.
We've simulated 100 bookings, created temporary test records and built a whole testing dashboard, and none of it needs to become part of the app. Because the branch is Scratch, none of it can be merged back into waitlist or main by accident. We can delete the branch and return to waitlist, keeping what we've learned without keeping what we've built.
But Scratch can do more than experiments. It can also rehearse the change we're about to make to the live application.
Round four: Review and rehearse the merge
19. Review the merge into main
Back on the waitlist branch, I open a merge review into main. The review lists the changed files and the database changes the merge would make, and runs Floot's pre-merge checks before anything is merged.
The first review stopped at the check Database matches the merged code: after the migration script runs, main's database would still be missing database changes made on waitlist. Merging waits until that check passes.

20. Fix the migration on waitlist
Click Fix with AI and give the generated prompt to your assistant. I ask it to repair the migration on the waitlist branch only, and leave the merge decision to me.
The corrected migration orders the waitlist by paid_at rather than created_at, with the lower record ID first when timestamps are identical, and keeps the non-negative balance constraint. The temporary admin_setup table and the Preview-only testing endpoints are taken out of the changes.
Open the Database tab to review it. The paid waitlist needs two new tables: yoga_waitlist for waitlist entries and yoga_payment_events for payment events.

The corrected migration only adds: it creates the two tables and the queue index, without deleting any table or record, and it copies no test data.
Reviewing the migration is only part of the job, though. Will the original application still work once the database has been upgraded?
21. Rehearse the merge without touching main
In Floot, merging and publishing are two separate actions. Merging applies the database changes to main's live database straight away, while publishing releases the new version of the application. So between the merge and the publish, customers are using the old app against the new database.
Restoring an earlier checkpoint can bring back the application code, but it does not undo database changes.
So how can we check that the original application keeps working after the database is upgraded? By combining Scratch branches, branch publishing and branch-to-branch merging, we can recreate that exact moment of the release in a separate environment.
We've already tested the new feature. Now let's test the upgrade itself.
A. Create a rehearsal branch
Create a fresh Isolated Scratch branch from main called merge-rehearsal-v2. It needs to look like the live app: V1's code and its seven tables. For this walkthrough, I ask the assistant to fill it with synthetic customer, class and booking records.
Open Services → Data: the rehearsal branch has V1's seven tables and its demonstration bookings.


B. Publish V1 from the rehearsal branch
Floot lets you publish a branch to its own address, separately from main.
On merge-rehearsal-v2, open the Scratch dropdown and choose Publish this branch. Choose Internal publish, so only invited people can open it, and use a separate test address. Before publishing, check that emails are caught and external services use test credentials. In this rehearsal, the published V1 app is used for booking and cancelling only, with no payments.

We now have our own copy of the live V1 application, running against its own database, and we can recreate what live customers would go through without involving any of them.
C. Merge waitlist into the rehearsal branch
Switch to waitlist and choose Merge → Merge into another branch. Select waitlist as the source and merge-rehearsal-v2 as the target, then review the changes. For a merge between branches, the migration script is kept on the target branch, so the corrected script goes on merge-rehearsal-v2 here; for the merge into main it stays on waitlist. I checked that the two copies are identical.

Click Merge into merge-rehearsal-v2. Floot confirms the merge.

The upgrade has been applied to the rehearsal database, not to main's. Switch to merge-rehearsal-v2 and open Services → Data.


The database now has nine tables instead of seven, and all ten original bookings remain. But we have not published V2 on this branch: the published website is still running V1.
This is exactly the moment we want to rehearse: does the original application still work with the upgraded database?
D. Test the published V1 app
Open the published rehearsal website, not the editor's Preview. I register a test customer, Sophie, and book Demo Gentle Stretch. V1 confirms the booking, and the upgraded database records booking ID 11 for user ID 11.


Then I open My bookings on the same website and cancel. V1 confirms the cancellation, and the same record changes to cancelled.


E. Check the new feature in Preview
Back in the editor on merge-rehearsal-v2, open Preview and select Demo Morning Flow, a fully booked $15 demonstration class. The new Join the waitlist button shows the refundable $5 deposit. (The payments themselves were tested on waitlist, so this time I only check the interface.)

Rehearsal complete
- The corrected migration upgraded the rehearsal database from seven to nine tables and kept all ten original bookings.
- The published V1 app created and cancelled a booking against the upgraded database.
- V2 in Preview showed the new paid waitlist.
Two versions of the application. One upgraded database. A complete rehearsal of the release, without changing main. Once you've captured what you need, delete the Scratch branch.
Next step: merge into main and publish
The waitlist branch is now ready to merge. In Branch Reviews, run the merge review into main again: once every check passes, Merge into main applies the same migration we just rehearsed to the live database, and the live V1 app keeps working, as the rehearsal showed. Publishing then releases the waitlist to customers.
Before publishing, set up live Stripe payments and a verified email sending domain, so the waitlist can take real deposits and send real emails.
Building your app is only the beginning
Building an application is one thing. Evolving it safely once customers, payments and valuable business data are involved is another.
With Floot Branches, we built a new feature in isolation, tested payments, refunds and emails without touching a real customer, experimented freely on a Scratch branch, and rehearsed the database migration before it reached the live app.
Build freely. Test safely. Experiment boldly. Rehearse before you release.
