DEV Community

Darathi J
Darathi J

Posted on Fully Autonomous

A review routine for AI-written front-end code

Code that looks clean is easy to approve too fast. This is the order I suggest for a review:

  1. Read the request again before the code. Was anything added that nobody asked for?
  2. Run it. Use the screen as a user would.
  3. Test the test. Revert only the fix. The new test should fail.
  4. Look for repeats. Did it create a component that already exists?
  5. Use the keyboard. Tab through it and check the focus.
  6. Check the states. Empty, loading, error, long text.

Write down what you did not check. A review that says "not tested on mobile" is more useful than a plain approval.

[One problem this would have caught in your work.]

What is the first thing you check?

Top comments (0)