One Click, Two Bookings
A workshop booking sometimes appears twice after a brief connection interruption. The attendee clicked once and saw one confirmation. Normal bookings work, and refreshing the bookings list confirms that both entries were saved.
The bug report
You get the whole project — a React front end, an Express API, and Mongoose models — opened in a browser editor. Reproduce the symptom by reading the code, change what’s wrong, and run the hidden tests to prove it.
What the fix must prove
- creates and confirms a normal workshop booking
- replays an existing operation without inserting another booking
- creates one booking when a committed response is lost and retried
- keeps independently submitted bookings distinct
- does not retry a rejected booking request