8000 feat: one clean page for the grower, chemistry notes at the agronomist depth by rafatahmed · Pull Request #386 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

feat: one clean page for the grower, chemistry notes at the agronomist depth - #386

Merged
rafatahmed merged 2 commits into
mainfrom
feat/one-page-grower-sheet
Nov 29, 2026
Merged

rafatahmed merged 2 commits into
mainfrom
feat/one-page-grower-sheet

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

NOT READY until CI is green.

Closes #385

What changes

The grower depth of the batch sheet and of the flahax mix terminal result is one clean page, in the layout agreed in review:

  1. Status, with the one reason when the recipe needs review, and the preparation line.
  2. What the solution will contain (new at depth 1): each nutrient with a target, the target, what the recipe achieves and the difference in percent; a difference outside the declared range is marked.
  3. The tanks with tick boxes, the reagent and the checks, as before.
  4. One line counting the notes left for the agronomist.

Only what changes what the grower does stays on the first page: a blocked stage, a declared maximum that is exceeded, a stock that does not dissolve (key_reasons, which no longer fills spare slots with other warnings), and the matrix reasons. Ion balance, assay differences, saturation, EC model limits and the concentration basis are not shown at depth 1 and are still listed at the agronomist depth and in the full evidence. The agronomist depth keeps its full nutrient table.

Checked before this commit

  • New tests/test_grower_layout.py (12 tests on real batches: ready, review and blocked): it failed before the change. It covers the sheet at depth 1 and 2, the terminal result, the note count and the blocking reason.
  • Real flahax mix --plain on the Cucumber recipe: the terminal result and the rendered sheet show the status, the nutrient table, the tanks, the reagent, the checks and "10 notes for your agronomist".
  • Run locally and passing (logs in outputs/test-runs/2026-11-30-feat-one-page-grower-sheet/): grower layout, grower sheet, mix results, mix TUI, status consistency (95 tests); grower outputs, Sonneveld, report consistency and boundaries, mix Sonneveld (51 tests); test_mix_cli (34 tests, one assertion updated: the blocking reason is now checked to come before the nutrient table instead of being in the last 25 lines). Lint, format, API and CLI references clean.
  • Docs: batch sheet page, migration table, changelog.

Not covered

The full suite, coverage gate and strict docs build run in CI. The full-screen results view keeps its own Tanks, Nutrients and Notes views. The "Scientific qualifications" block under the sheet and the full report are unchanged.

@rafatahmed rafatahmed added the enhancement New feature or request label Nov 29, 2026
@rafatahmed rafatahmed self-assigned this Nov 29, 2026
@read-the-docs-community
read-the-docs-community Bot commented Nov 29, 2026 •
Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #36249982 | 📁 Comparing dca2116 against latest (f8bf0c8)

  🔍 Preview build  

3 files changed
± changelog.html
± grower/batch-sheet.html
± start/migration.html

@codecov
codecov Bot commented Nov 29, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f8bf0c8) to head (dca2116).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #386   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          152       152           
  Lines        18022     18046   +24     
  Branches      3642      3648    +6     
=========================================
+ Hits         18022     18046   +24     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rafatahmed
rafatahmed marked this pull request as ready for review November 29, 2026 23:35
@rafatahmed
rafatahmed merged commit 3b7265d into main Nov 29, 2026
29 checks passed
@rafatahmed
rafatahmed deleted the feat/one-page-grower-sheet branch November 29, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Grower sheet: one clean page, chemistry notes only at the agronomist depth

1 participant

0