An AI-generated component can look finished before its behavior has been checked. The empty state may be missing. A slower request may overwrite a newer result. A button may work with a mouse and fail with a keyboard.
For frontend work, the useful question is what evidence makes a change ready to ship. The amount of generated code does not answer it.
Give the task a boundary
Take a hypothetical search box. “Build a search UI” leaves too much undecided: when requests run, how results are ordered, what happens on failure, and whether previous results stay visible while loading.
A narrower brief is easier to review: use the existing input component, show a distinct empty state, preserve the current result on a failed refresh, and ensure an older response cannot replace results for the latest query. State the expected keyboard behavior as well.
AI can help produce an implementation and suggest test cases. The acceptance criteria give you a way to reject a plausible result that does the wrong thing.
Review behavior before polish
For that search box, deliberately make an earlier request finish last. Try an empty response and a network error. Tab through the controls. Then read the diff: did the change add a dependency, duplicate an existing component, or alter unrelated behavior?
Ask for explanations when the implementation is unclear, but check them against the code and the installed library documentation. A convincing explanation is still a claim to verify.
Track the time spent correcting and reviewing the change as well as generating it. Otherwise, a fast first draft can look like a productivity gain even when it creates more work later.
Make your work inspectable
The 2024 Stack Overflow survey reported that 62% of respondents were using AI tools. That describes adoption among respondents; it does not predict hiring demand or prove that a particular workflow is faster.
For a portfolio, one small feature with a clear constraint, a rejected approach, and a reproducible check gives a reader more to assess than a list of tools. Show why the final behavior is correct. Keep the failed attempt if it explains the decision. This documents engineering judgment without making promises about which jobs will survive.
Comments (0)