codetayyab/ai-pest-detection-frontend ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean React app for an AI pest detection tool.
I want a simple frontend where a user can upload or drag and drop a photo of a plant or pest, send it to the backend, and see the detection result clearly on the page. Show the pest name, confidence score, and a friendly message about what it found. If the request is still running, show a loading state, and if something goes wrong, show a helpful error.
Make it feel polished and easy to use, with a nice landing section, a main upload area, and a results panel. Use a modern responsive layout so it works well on desktop and mobile. Keep the UI lightweight and easy to understand, with sensible defaults and placeholder data if the API is not connected yet. If you need to look up current docs online, do that.
Are you gonna build this?
make sure you review the code using coderabbit