Skip to content

Implement Tree Monitoring & Garden Assessment Module #8

@markdav-is

Description

@markdav-is

Feature: Tree Monitoring and Garden Health Assessment

Implement a recurring assessment module for tracking tree survival rates, garden health, and permaculture practice compliance.

Priority: High

Tags: @workflow-assessment, @priority-high, @mobile, @recurring

Module Requirements

  • Create Client/Modules/Assessment/ directory structure
  • Create matching Server-side components (Controller, Service, Repository)
  • Create Shared/Models/Assessment.cs model
  • Create bilingual resource files (en-ZA, ts-ZA)
  • Support for recurring assessments (multiple per beneficiary)

Behavior Checklist

✅ Tree Survival Tracking

  • Navigate to assessment for specific beneficiary
  • Record number of trees planted
  • Record number of trees still alive
  • Auto-calculate and display survival rate (e.g., "90%")
  • Save assessment with timestamp

✅ Deceased Tree Documentation

  • Prompt "If any died, which ones?" when trees < planted
  • Option 1: Select tree types from dropdown
  • Option 2: Enter free text description (e.g., "Mango, Avocado")
  • Save deceased tree information

✅ Problem Identification

  • Select problem: "The trees have yellow leaves"
  • Select problem: "The trees have broken branches"
  • Select problem: "Pests eating the plant"
  • Support multiple problem selection
  • Answer "Do you need help with this problem?" (Yes/No)
  • Set help request flag when Yes selected

✅ Permaculture Practice Questions

  • "Do the trees look healthy?" (Yes/No)
  • "Any chemical fertilizers?" (Yes/No)
  • "Any pesticides used?" (Yes/No)
  • "Are the trees mulched?" (Yes/No)
  • "Are they making compost?" (Yes/No)
  • "Are they collecting water?" (Yes/No)
  • "Any leaky taps visible?" (Yes/No)
  • "Is the garden designed to capture water?" (Yes/No)
  • "Are they using greywater?" (Yes/No)
  • Save all practice responses

✅ Assessment Frequency Tracking

  • Track participant program year (Year 1 or Year 2)
  • Year 1: Support twice-monthly assessments (every ~10 days)
  • Year 2: Support monthly assessments (every ~20+ days)
  • Accept assessments according to frequency rules
  • Display last assessment date

✅ Data Persistence

  • Save assessment with timestamp
  • Link to beneficiary/enrollment
  • Store all responses
  • Enable historical assessment viewing

Technical Notes

  • Follow Oqtane module patterns
  • Multi-step form with progress indicators
  • Mobile-first design
  • Checkboxes preferred over text entry
  • Bilingual localization (en-ZA, ts-ZA)

Related Feature File

Specs/Features/GardenAssessment.feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions