Repository navigation
Name a unit's output streams in the form, fit the panel's tabs, and write YAML without anchors - #1098
Merged
Merged
Conversation
…rite YAML without anchors From building a plant from scratch in the editor: - Results listed outlets as clarifier1.overflow; there was nowhere to call them effluent or wastage. The unit form now has a name field per output port, suggesting the catalogue's stream_roles (performance.ROLES, sent by catalog()); a name another stream has is refused at its field, since a stream name maps to one endpoint. Studies and results already use a stream's name when it has one. - The side panel's five tabs overflowed its 340 px, hiding Model and Spec behind scroll arrows; the tabs now use 8 px padding and no letter spacing. - A saved spec held &id001 / *id001 where two units shared a default list. Every YAML file aquakin writes for a person (spec, study, model edit, results summary, project file) now goes through utils/yaml_text.dump_yaml, which never writes aliases. A spec leaves out unset influent and effluent endpoints; a unit's unset settings stay as null by design, so a later change of default cannot change a saved plant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # aquakin_ui/document.py # aquakin_ui/forms.py # aquakin_ui/page.py # tests/browser/test_unit_form.py # tests/integration/test_plant_spec.py # tests/ui/test_editor.py # tests/ui/test_forms.py # tests/unit/test_plant_catalog.py
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Dec 4, 2026
# Conflicts: # aquakin/plant/spec.py
#1093 added primary_sludge, thickener_underflow and disposal_sludge to ROLES, which the editor's stream-name field offers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of the editor usability pass (findings 4, 13 and 14 from building a plant from scratch in the editor; 7, 8 and 11 were #1091). Nothing tracks them as issues.
Summary
clarifier1.overflowand there was nowhere to call them effluent or waste sludge. The unit form now has a "Name of the stream" field per output port (a combobox,stream.<port>rows), suggesting the stream roles a plant evaluation reads. The catalogue sends them asstream_roles(performance.ROLES), so the editor lists none of its own. A name another stream already has, or two of the unit's own, is refused at its field:streams:maps one name to one endpoint.Flowsheet.name_streamsapplies them, so Undo takes a name back. Studies and their results already use a stream's name when it has one (simulation_study,plant_choices).&id001/*id001where two units shared a default list.aquakin/utils/yaml_text.py'sdump_yaml(aSafeDumperthat never writes aliases) now writes every YAML file aquakin writes for a person: specs, studies, model edits, results summaries, the project file. A spec also leaves out unsetinfluent_endpoint/effluent_endpointinstead of writingnull.Things a reviewer should know
aeration: null,series: null):plant-spec.mdsays a unit is written with every setting so a later change of default cannot change a saved plant. Only the top-level endpoints, which have no default to change, are left out. They read back as unset and the fingerprint is unchanged (tested).allow_unicode(the run record, the project file, named values) now write non-ASCII characters as themselves; they read back the same.main(with Name unit settings in words, fold advanced ones away, and move a model in one step #1091) was merged in: the stream rows follow Name unit settings in words, fold advanced ones away, and move a model in one step #1091's label style, are never folded into "More settings", and the combobox moved intopage._form_rows.test_a_reagent_composed_in_the_form_builds_that_reagentread the composition row asrows[-1]; the stream rows now come last, so it looks the row up by key, asserting the same thing.CLAUDE.md's list of shared places gainsutils/yaml_text.py;docs/package_structure.mdlists it.Testing
pytest tests/ui tests/unit tests/integration/test_plant_spec.py tests/integration/test_study.py -m "not slow and not validation": 3426 passed (tests/unit/test_pre_push_hook.pydeselected: the shell'spython3here lackstomllib, an environment issue).pytest tests/browser: 31 passed, including the new tab and stream-name tests. The tab test was seen to fail with the old padding; the anchor test was seen to fail onmain'sspec.py.pytest README.md docs -m "not slow": 101 passed; the strict docs build, theyaml_textdoctest, ruff,ruff format --check, pyright (0),scripts/check_types.pyandcheck_test_integrity.py --base origin/main("No test was weakened") pass.Patch coverage
scripts/patch_coverage.py: 100.00% of the changed lines.🤖 Generated with Claude Code