Rentvale Equipment
A Bubble rental platform migration that made availability reflect operations
- Scale
- Multi-depot equipment rental
- Bubble
18days
Delivery
60/60
Availability correctness
8,000/8,000
Allocation mapping
680ms
73.8% lower
Search response, p95
Illustrative before/after figures.
The product
Customers selected a depot, equipment category and date range. Dispatchers allocated items, recorded returns and marked maintenance blocks. Some reservations contained several assets, and the business worked across three timezones. The familiar rental prices and customer notifications remained. Every allocation connected a customer commitment to specific operational state, so copying tables independently would have been insufficient.
The challenge
The starting point included discrepancies when a return was late or a multi-item reservation changed dates. An editable available flag concealed the underlying conflicts. Discovery reconstructed collection, return and maintenance rules with dispatchers. The team evaluated targeted Bubble fixes before selecting a rebuild supported by the receiving engineering team. The migration decision depended on reproducible rules and operating ownership, rather than assuming rental products inherently need code.
A depot manager wanted to stop promising an asset that was still out on an extended rental or unavailable for maintenance. Availability depended on overlapping intervals and asset state, not just a free/busy flag. The migration retained current pricing and catalogue rules while making extensions, returns and maintenance part of one allocation model. Shared assets between depots ruled out pretending each depot could switch independently.
How we tackled it
- 01
Reconstruct availability. We replaced the single flag with blocking intervals and explicit operational states.
- 02
Keep allocations whole. A reservation edit validated every resulting item before committing, preventing half-updated bookings.
- 03
Preserve time meaning. Customer display time and the operational collection/return timezone remained distinct.
- 04
Surface exceptions. Late returns and maintenance conflicts reached a dispatcher decision instead of silently invalidating the next reservation.
What we built
Next.js, TypeScript and Tailwind recreated customer and dispatcher screens. Postgres with Drizzle stored assets, reservations and blocking intervals. Managed authentication enforced dispatcher and administrator roles. A worker delivered existing reminders. Database constraints protected defined overlap rules, while application checks handled the additional operating conditions. This combination reflected the fact that a valid interval alone does not establish that equipment is physically ready to rent.
The rehearsal checked active reservations, asset location and dependencies inside multi-item bookings. Dispatchers walked through daylight-saving transitions, late returns, maintenance periods and simultaneous extensions. Reservations and return updates paused for the final delta. Recovery preserved allocations made after the switch before reopening the former system. The acceptance review included an operational calendar walkthrough, giving dispatchers a direct role in validating the migrated model.
Before & after — illustrative results
The illustrative search improvement uses the same depot/category/date mix with 30 concurrent sessions over 20 minutes. Expected asset sets are checked with timings; a quick but wrong result does not count as success. The concurrency row repeats extension/rental races and inspects the resulting allocation. These values demonstrate a comparison format, not real utilisation gains or a measured reduction in customer-facing incidents.
Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.
| Metric | Before | After | Comparison conditions |
|---|---|---|---|
| Availability correctness | 47/60 defined cases pass | 60/60 pass | Same interval/state matrix, including maintenance, overdue returns and timezone edges. |
| Allocation mapping | 8,000 source reservations | 8,000/8,000 reconciled | Check asset, depot, interval and multi-item relationships; no unresolved conflicts. |
| Search response, p95 | 2,600 ms | 680 ms — 73.8% lower | 30 sessions, 1,000 assets, 20-minute fixed query mix. |
| Concurrent allocation races | 14/100 runs leave an invalid overlap | 0/100 invalid overlaps | Repeat extension/rental races; inspect accepted and rejected changes. |
| Handle a return plus maintenance hold, median | 11 min | 4 min | Twenty scripted asset histories; same operator; check availability and existing future reservations after the update. |
| Availability screen LCP, lab p75 | 5.2 s | 2.2 s — 2.4× faster | Ten fixed depot/date searches; 40 loads each; same mobile profile and inventory; no utilisation or revenue inference. |
The outcome
Rentvale ended the story with an availability result that could be explained through reservations, returns and maintenance. The operator could resolve a late-return conflict through a defined workflow, and the engineer could reproduce the corresponding test. Handover included timezone policy and reconciliation tools. The example shows why rental migration requires more domain work than a generic slot-booking rebuild.
Why these improvements mattered
A single return workflow updated condition, interval and maintenance state without repeated manual edits. The operator could explain why an asset was unavailable. This demonstrated safer operational modelling and less administrative work; fleet utilisation would still need a separate real-world evaluation.
Scope & timeline
Scope
Scale covered inventory, availability, reservations, returns, role permissions and the existing notification integration. The delivery included an interval/state model, allocation manifest and exception guide. Dynamic pricing and fleet telemetry stayed outside scope. Because assets could move between depots, the story used one coordinated write window rather than assuming every location could migrate independently. That choice put operational correctness ahead of a superficially convenient rollout sequence.
Delivery timeline
Delivery schedule: 18 working days. Team: Two engineers, shared QA and a depot operations owner. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.
Days 1–3: agree interval, return and maintenance rules.
Days 4–11: rebuild allocation transactions and operator screens.
Days 12–16: reconcile reservations and run race/extension fixtures.
Days 17–18: coordinate the shared write window and hand over.
FAQ
- What makes rental migration different from appointment-booking migration?
- Rental availability can depend on asset location, returns, maintenance and several items in one reservation, not just a free time interval.
- Can depots migrate separately?
- Only if shared assets and cross-depot bookings have a safe ownership boundary; otherwise a coordinated write window may be clearer.
Discuss a similar migration
Bring a late return, a multi-item reservation and the rules for moving equipment between depots. Bubble to Code can map the operational model and assess Scale fit. Establish whether locations truly operate independently before choosing a migration sequence.
