Repository navigation
feat: list the quantities as diagnostic when the preparation does not fit - #372
Merged
rafatahmed merged 1 commit intoNov 29, 2026
Merged
Conversation
… fit Closes #371
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rafatahmed
marked this pull request as ready for review
November 29, 2026 09:10
rafatahmed
deleted the
feat/hide-quantities-when-preparation-does-not-fit
branch
November 29, 2026 09:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #371
What changes
When
matrix.preparation.stateisdoes_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
test_grower_sheetis migrated.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_journeyandtest_mix_cli(all segments), and the docs tests (33 jobs, no failures).