Skip to content

Add Data Validation Warnings for Livestock Time Allocation Columns #10

Description

@elaouniyassine

Timeline

Estimated Completion Date: 08/10/2025

Description

Implement validation checks for livestock time allocation data to ensure logical consistency and data quality. The following columns must comply with expected rules:

  • Time spent in stable (fraction of day)
  • Time spent in non-roofed enclosure (fraction of day)
  • Time spent grazing pasture/fields on-farm (fraction of day)
  • Time spent grazing off-farm (fraction of day)

Actionable Items / Acceptance Criteria

  • Add a warning if any individual column value is < 0 or > 1.

  • Add a warning if the sum of all four columns ≠ 1 (per row / per livestock record).

Ensure the check shows automatically during data edit.

Warning messages must be clear and actionable — ideally mentioning the livestock and column name(s) causing the issue.

Provide a single UI element (e.g., a validation results panel above the table, similar to the other warnings already available in the app) that dynamically displays the warnings.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions