How oloyede-hub/potato_disease_classifier_frontend works
This is a single-page potato leaf disease-classification frontend. The user selects or drops an image, reviews its preview, submits it to a configurable prediction API, and sees returned labels and confidence values. The sampled client component owns upload handling, preview state, the API request, and result display; the server-side styling registry supports rendering. README capabilities such as responsive design and animations are primarily presentation concerns. The backend implementation is not present in the tree, so it is shown only as an external service.
Main entry points: page-client.tsx Classifier UI · page.tsx Page route · layout.tsx Root layout · registry.tsx Style registry
Components 8
User experience
- Classifier UI
app/page-client.tsx - Image workflow
app/page-client.tsx - Results display
app/page-client.tsx
Next.js application
- Page route
app/page.tsx - Root layout
app/layout.tsx
Styling support
- Style registry
lib/registry.tsx
Other components
- User
- Prediction API
Connections 7
- Page route → Classifier UI: renders
app/page.tsx - User → Classifier UI: interacts
app/page-client.tsx - Classifier UI → Image workflow: handles images
app/page-client.tsx - Classifier UI → Prediction API: POSTs image
app/page-client.tsx - Prediction API → Classifier UI: returns JSON
app/page-client.tsx - Classifier UI → Results display: renders results
app/page-client.tsx - Root layout → Style registry: wraps children
app/layout.tsx