ai-component-generator
ai-component-generator copied to clipboard
Error handling
I have added a way to know when an error has occurred, since I was sometimes getting 502's that were only getting logged to the console while the button was still loading.
The button turns red whenever something happens, and goes back to normal as soon as something is typed in the textarea. It is still clickable in that state, to allow retrying the prompt.
Someone is attempting to deploy a commit to a Personal Account owned by @yuvalsuede on Vercel.
@yuvalsuede first needs to authorize it.
Is that what you meant? I added different error messages for the different error codes I encountered myself.