Flows category icon
Debugging
Beginner

Fix Broken Buttons

Hunt down every dead button in your AI-built app and wire each one to real, verified behavior.

5 steps15 verify checks30-60 minutesWorks with: emergent · chatgpt · claude · cursor
Start Guided Walkthrough

The Route

0/5 verified

Context Pack

Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.

Context Pack
PROJECT CONTEXT:
My AI-built app has buttons that look clickable but do nothing or do the wrong thing.

GOAL:
Find every non-working button and make each perform its intended action with loading and error states.

REQUIREMENTS:
- A complete inventory of every interactive control
- Each button wired to a real handler and backend action where relevant
- Loading and error feedback on async buttons
- No console-only failures

CONSTRAINTS:
- Do not remove buttons to 'fix' them unless truly redundant
- A toast without the real action is not a fix

DEFINITION OF DONE:
- Every button performs its labeled action
- Async buttons show loading and disable during work
- Failures show visible errors
- Results persist where they should

COMMON FAILURES TO AVOID:
- Buttons with no onClick handler at all
- Handlers that only console.log
- Success toasts with no underlying action
- Buttons that work once then break due to state bugs

Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.

Related routes

More Debugging flows that share ground with this one.

Flows category icon
Debugging

Fix App That Looks Good But Does Not Work

The systematic recovery flow for beautiful-but-broken AI builds: audit honestly, then fix by functional priority.

01Run a brutal functional audit
02Prioritize the fix order
03Fix the core value action

+3 more steps to Done

Best forbuilders who have shipped a basic app before

6 steps60-120 minutesIntermediate
Flows category icon
Debugging

Fix Broken Form Submission

Forms that validate, submit, persist, and recover: repair every broken form in your app end to end.

01Inventory and test every form
02Wire submissions to real endpoints
03Add validation on both sides

+2 more steps to Done

Best foryour first pass at this - no prior setup assumed

5 steps30-60 minutesBeginner
Flows category icon
Debugging

Add Database Persistence

Your app forgets everything on refresh: move state into a real database with working CRUD.

01Inventory unpersisted state
02Design models and endpoints
03Wire writes to the backend

+2 more steps to Done

Best foryour first pass at this - no prior setup assumed

5 steps45-75 minutesBeginner

Made with Emergent