Skip to content

feat: Prediction Result Comparison - #1877

Merged
omroy07 merged 1 commit into
omroy07:mainfrom
Aditya8369:feat/Prediction-Result-Comparison
Sep 18, 2026
Merged

omroy07 merged 1 commit into
omroy07:mainfrom
Aditya8369:feat/Prediction-Result-Comparison

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

closes #1056

What was implemented:
localStorage Persistence Engine:

Diagnoses are automatically stored under agritech_disease_prediction_history with timestamps, crop name, disease name, confidence score, severity rating, description, treatment plan, and image thumbnail.
Includes history management (view list, delete single record, clear all).
"Compare with Previous" Action Bar & Selector:

Added an action bar under the results card with "📊 Compare with Previous", "🕒 Diagnosis History (N)", and "📄 Download PDF" buttons.
Inside the comparison modal, a dropdown allows users to switch the comparison target to any saved historical scan in real time.
Side-by-Side Comparison Table:

Compares Leaf Photograph, Plant / Crop, Diagnosed Disease, Severity Level, AI Confidence, Symptoms Description, Recommended Treatment, and Diagnosis Date.
Change Diffing & Visual Highlights:

Improved Condition: Soft green background with ▲ Improved pill when severity drops.
Worsened Condition: Soft red background with ▼ Worsened pill when severity progresses.
Changed / New Condition: Amber background with ↔ Changed pill.
Confidence Delta: Displays exact confidence change (e.g. ▲ +7% or ▼ -4%).
Smart Agronomic Insights Banner: Automatically generates situational summaries (recovery progress, alert for disease progression, or treatment continuity).

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Aditya8369

Copy link
Copy Markdown
Contributor Author

@omroy07 please check

@omroy07
omroy07 merged commit a9383be into omroy07:main Sep 18, 2026
1 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congrats @Aditya8369 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prediction Result Comparison (Current vs Previous) - 30

2 participants