Iterate with AI
Most projects improve through short feedback loops. Use the assistant to request changes, then verify them in code and preview.
A reliable iteration loop
- Review the preview.
- Identify one issue or improvement.
- Ask for a focused change.
- Wait for the assistant to apply it.
- Check terminal output for errors.
- Test the preview again.
Example iteration prompts
On the booking checkout screen, add validation for check-in and check-out dates.
Show a clear inline error if check-out is before check-in.
Add an admin page for managing rooms.
Each room needs a name, price per night, capacity, availability flag, and image URL.
The preview navbar is too tall on mobile.
Reduce the mobile header height and keep the menu button easy to tap.
When a change gets too large
Split it into smaller prompts:
- Database model changes first.
- Admin screens second.
- Public customer flow third.
- Styling and responsive polish last.