8000 feat: list the quantities as diagnostic when the preparation does not fit by rafatahmed · Pull Request #372 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

feat: list the quantities as diagnostic when the preparation does not fit - #372

Merged
rafatahmed merged 1 commit into
mainfrom
feat/hide-quantities-when-preparation-does-not-fit
Nov 29, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
feat/hide-quantities-when-preparation-does-not-fit

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Closes #371

What changes

When matrix.preparation.state is does_not_fit (more tanks than declared, a stock over its tank, a salt above its solubility, a reagent over its volume), the grower sheet, batch sheet, report, command line and terminal view list the quantities as diagnostic only: no tick boxes, no weigh heading, and each tank card reads "not to be prepared (preparation does not fit your equipment)". A blocked recipe is shown the same way, with its own reason.

The recipe status and the exit code are unchanged: a ready recipe stays ready and exits 0.

result_wording.diagnostic_reason(summary) decides this in one place; the renderers read it.

Verification

  • New tests cover the reason helper (blocked, does not fit, both, fits, not verified) and each renderer with and without the diagnostic state; test_grower_sheet is migrated.
  • Passed locally in timed jobs: test_result_wording, test_grower_sheet, test_mix_results, test_mix_tui, test_report_boundaries, test_stock_solubility, test_tank_layout, test_independent_reagent_capacity, test_equipment_*, test_growers_page, test_analytical_water, test_entry_inputs, test_output_consistency, test_sonneveld_appendix_i, test_mix_sonneveld, test_grower_journey and test_mix_cli (all segments), and the docs tests (33 jobs, no failures).
  • Not run locally: the full suite, the coverage-gap comparison, the wheel check and the strict docs build. CI covers them.

@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
Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #36238458 | 📁 Comparing 69b9a84 against latest (b9894ac)

  🔍 Preview build  

3 files changed
± changelog.html
± agronomist/reading-results.html
± grower/batch-sheet.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 (b9894ac) to head (69b9a84).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #372   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          152       152           
  Lines        17968     17980   +12     
  Branches      3632      3634    +2     
=========================================
+ Hits         17968     17980   +12     
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.

< 8000 /span>

@rafatahmed
rafatahmed marked this pull request as ready for review November 29, 2026 09:10
@rafatahmed
rafatahmed merged commit a445af5 into main Nov 29, 2026
29 checks passed
@rafatahmed
rafatahmed deleted the feat/hide-quantities-when-preparation-does-not-fit branch November 29, 2026 09:10
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

Development

Successfully merging this pull request may close these issues.

Hide the quantities when the preparation does not fit

1 participant

0