Repository navigation
Full-screen flahax mix in the terminal (standard library only) - #124
Merged
Merged
Conversation
…mplete the ASCII fallback
This was referenced Oct 23, 2026
The golden transcript was recorded on Windows, so its two saved-path lines had backslashes and failed on the Linux CI runners. Paths under the temporary folder are now written with / on every system.
# Conflicts: # CHANGELOG.md
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #124 +/- ##
==========================================
- Coverage 89.95% 89.78% -0.18%
==========================================
Files 51 54 +3
Lines 6630 7281 +651
==========================================
+ Hits 5964 6537 +573
- Misses 666 744 +78
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:
|
- Two-pane messages wrap at the width they are painted at (#125). - Long prompts wrap instead of being cut, so the lab-value syntax shows (#126). - Windows: a lone U+00E0 is the letter a-grave, not an arrow-key prefix (#127). - Ctrl+C on the results screen is the same as Q: the sheets exist (#128). - After the answers are saved the quit question says the sheets will not be written (#129). - No "pH:" line when there is no pH path (#130). - The quit question redraws, and ignores Y while the window is too small (#131). - Unchanged screens are not redrawn; console functions have ctypes types; the status is coloured by meaning; the real cursor shows in text fields (#132).
This was referenced Oct 23, 2026
Closed
rafatahmed
added a commit
that referenced
this pull request
Nov 7, 2026
Full-screen flahax mix in the terminal (standard library only)
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.
flahax mixopens a full-screen, keyboard-driven wizard and results screen in a real terminal (owner design, 2026-10-23). It uses Python's standard library only and adds no dependencies.What a grower sees
What does not change
flahax mix --plain, scripts, pipes, editor output panels and the tests keep the line-by-line questions. A recorded transcript of the owner's session shows the line-mode output is byte-identical.main.Structure
flahax.terminal: the console layer.msvcrtfor keys,ctypesto switch on ANSI.termios,ttyandselect.?.flahax.mix_tui: the widgets and frame (pure functions) andTuiPrompts, a subclass of the line-modePrompts, so questions, defaults and validation are shared.flahax.mix_results: the three views. They are drawn from the same summary, helpers and rounding as the batch sheet; tests check every weight, acid volume, pH and nutrient cell against the sheet.Evidence
Tests and checks:
ruff checkandruff format --check;tools/verify_distribution.py: PASS;Independent review of the whole branch: no critical findings. Four findings were fixed with tests that failed first:
The minor findings were opened as issues and are now fixed in this PR, each with a test that failed first.
Owner's manual check (please run before merging)
conhost, for examplecmdstarted from Win+R)flahax mix --plain: the old line-by-line questionsflahax mix sessions/<name>: straight to the resultsIssues
Closes #125
Closes #126
Closes #127
Closes #128
Closes #129
Closes #130
Closes #131
Closes #132