8000 Alpha TUI round 2 and release hardening for 0.6.0 by rafatahmed · Pull Request #148 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

Alpha TUI round 2 and release hardening for 0.6.0 - #148

Merged
rafatahmed merged 1 commit into
mainfrom
feat/alpha-tui-round-2
Oct 23, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
feat/alpha-tui-round-2

Conversation

@rafatahmed
@rafatahmed rafatahmed commented Oct 23, 2026 •
Copy link
Copy Markdown
Owner

The second trial round of the full-screen flahax mix. Every problem found in this round gets its own issue and a fix on this branch, with a "Closes" line below. Please keep testing, and merge once the round is done.

Fixes so far

  • The recipe stays in the terminal (flahax mix: after leaving the full screen the terminal shows no recipe #147). After the results screen closes, the terminal now prints the same grower summary as the line mode: the status and key reasons, each tank with its products and grams, and the acid container. Then the "Wrote ..." line. Before this, only "Saved ..." and "Wrote ..." remained, so the tanks and the acid were out of sight once Q was pressed.
    • test_run_tui_end_to_end checks that the lines printed after the screen equal the line mode's summary for the same batch; it failed before the fix.

Release hardening (pre-release audit for 0.6.0)

The audit covered the build and metadata, the shipped files, every entry point with malformed input, security of saved files, a strict lint pass, CI coverage, the docs and the open issues. Fixed here:

The audit found nothing to change in:

  • metadata: no runtime dependencies, Apache-2.0 with LICENSE and NOTICE, Beta, Python 3.11 to 3.14, all project URLs; the README uses absolute links only, so it renders on PyPI;
  • saved-file paths: saved-item names are reduced to letters, digits and hyphens and cannot leave $FLAHAX_HOME;
  • strict lint (bugbear, bandit, pylint errors): only false positives (closures used within the same loop pass) and tidy-ups;
  • the growers-guide example: it still gives exactly the published grams, pH 5.84 and 1.5 mL of acid.

Checks

  • Tests: the full suite passes, 619 tests including PHREEQC.
  • Style: ruff check and ruff format --check pass.
  • Line endings: LF.

Owner check

Reinstall from this branch:

python -m pip install --force-reinstall --no-deps "git+https://github.com/rafatahmed/Flahax.git@feat/alpha-tui-round-2"

Then run flahax mix, finish a batch and press Q, then Y. The tanks, the grams and the acid should stay in the terminal.

Closes #147
Closes #149
Closes #150
Closes #151

After the results screen closes, print the same grower summary as the line mode (status and reasons, tanks with grams, the acid) before the Wrote line.
@rafatahmed rafatahmed self-assigned this Oct 23, 2026
@rafatahmed
rafatahmed merged commit 97fe32e into main Oct 23, 2026
8 checks passed
@rafatahmed
rafatahmed deleted the feat/alpha-tui-round-2 branch October 23, 2026 18:47
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.84%. Comparing base (c6b3f2e) to head (9b7c489).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage   89.83%   89.84%           
=======================================
  Files          54       54           
  Lines        7322     7323    +1     
=======================================
+ Hits         6578     6579    +1     
  Misses        744      744           
Flag Coverage Δ
unittests 89.84% <100.00%> (+<0.01%) ⬆️

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 changed the title Alpha TUI round 2: fixes from the owner's trial of flahax mix Alpha TUI round 2 and release hardening for 0.6.0 Oct 23, 2026
rafatahmed added a commit that referenced this pull request Nov 7, 2026
Alpha TUI round 2: fixes from the owner's trial of flahax mix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants

0