codex-lv2-may-2025

Level Navigation: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Current Level: 30 31 32


🧪 Level 30: Keep Validation Consistent

What You’ll Do

Ensure validation state remains consistent after responses.

Instructions

After a successful reply (or error from the model call), ensure the validation area is still cleared and not showing an old error from a previous click.

💡 Code Hints

Keeping validation consistent? You’ll need to manage the validation state throughout the user flow. Check out the Conditional Logic section in SNIPPETS.md for state management patterns.

✅ Check

  1. Open your webpage in a browser
  2. Click Send without typing anything (should show validation error)
  3. Type a message and click Send (should work normally)
  4. Verify that the old validation error is gone and only the new AI response is visible
  5. Try clicking Send with empty input again - the validation error should appear fresh
  6. The validation area should not show multiple error messages or old errors

Next: Level 31 - Test & Check



Level Navigation: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Current Level: 30 31 32