Skip to content

feat: implement full-screen intelligent crop rotation planner with N-…#1463

Merged
omroy07 merged 1 commit intoomroy07:mainfrom
Dbansal06:feat/intelligent-soil-planner
Feb 11, 2026
Merged

feat: implement full-screen intelligent crop rotation planner with N-…#1463
omroy07 merged 1 commit intoomroy07:mainfrom
Dbansal06:feat/intelligent-soil-planner

Conversation

@Dbansal06
Copy link
Contributor

@Dbansal06 Dbansal06 commented Feb 11, 2026

Overview

This PR implements a comprehensive Soil Health & Crop Rotation module. It moves the project beyond static displays by introducing an analytical engine that provides scientific feedback on planting choices.

Changes Made

  • Logic Engine: Built SoilRecoveryEngine to track nutrient depletion/fixation.
  • Modern Dashboard: Added a full-screen UI with CSS-driven status cards (Green for stable, Red for depletion).
  • Clean Architecture: Followed the server/Routes/ and server/Utils/ patterns for scalability.
  • RESTful API: Implemented a POST endpoint for real-time analysis without page refreshes.

File Summary

  • server/Utils/soil_analysis_logic.py: The analytical brain.
  • server/Routes/rotation_routes.py: Flask API handlers.
  • crop_rotation.html & css/rotation_planner.css: High-fidelity UI.
  • js/rotation_engine.js: Frontend state management and API calls.
  • server/models/crop_database.json: Scientific N-P-K metadata.

Testing Instructions

  1. Run python app.py.
  2. Navigate to /rotation.
  3. Enter soil values (e.g., N: 20, P: 10, K: 20).
  4. Select "Corn" and observe the depletion warning.
  5. Select "Soybeans" and observe the Nitrogen recovery feedback.

Closes #1462

Please review and merge and if there is any changes required please let me know.
Thanks!

@vercel
Copy link

vercel bot commented Feb 11, 2026

@Dbansal06 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

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. 🙌🏼

@omroy07 omroy07 merged commit 82e5ecd into omroy07:main Feb 11, 2026
2 of 6 checks passed
@github-actions
Copy link

🎉 Congrats @Dbansal06 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Intelligent Soil Nutrient & Crop Rotation Engine

2 participants