🥐 App Rescue demo

A small bakery ordering app, the way an AI app builder made it, and the same app after a rescue. Open both and press the "Try to break it" buttons.

⚠️ BeforeThe original, with 7 real-world bugs ✅ AfterEvery bug fixed and covered by a test
#Bug a customer would hitFix
1Adding 2 croissants twice gives "022"Quantities parsed as numbers
2Negative quantities break the total ($NaN)Whole numbers 0 to 50 only
3"welcome10" discount silently ignoredCodes ignore case and spaces
4Totals like $10.044All money kept in whole cents
5Pickup times in the past, shown in UTCFuture slots only, in local time
6One bad saved value blanks the whole pageSafe loading with a fallback
7A name can inject HTML into the pageNames shown as plain text

Demo shop, not a real bakery. Code and tests: github.com/ThomasC334/app-rescue-demo · Made by Scout Studios