Skip to content

feat: add concentration handling and volume lock feature#2985

Draft
TasnimMehzabin wants to merge 3 commits intomainfrom
concentration-enhancements
Draft

feat: add concentration handling and volume lock feature#2985
TasnimMehzabin wants to merge 3 commits intomainfrom
concentration-enhancements

Conversation

@TasnimMehzabin
Copy link
Contributor

Resolves #2308

@TasnimMehzabin TasnimMehzabin marked this pull request as draft March 2, 2026 15:37
@TasnimMehzabin TasnimMehzabin added this to the v4.0.0 milestone Mar 4, 2026
Tasnim Mehzabin added 3 commits March 5, 2026 14:33
- Add concentration change handler in `Material.js` to update material amounts on change.
- Implement reaction volume lock functionality with UI toggle in `ReactionDetailsScheme.js`.
- Extend `Reaction.js` to include `lock_reaction_volume` property and corresponding logic.
…ed concentration

- Add `updatedReactionForConcentrationChange` method to handle concentration changes and calculate dependent fields.
- Implement logic for locked and unlocked volume cases in `ReactionDetailsScheme.js`.
- Preserve manually-entered concentrations with `preserveConcentration` flag.
- Update UI to disable volume input when volume is locked.
- Add `lockEquivColumn` prop to manage equivalent lock state in `Material.js`.
- Update `ReactionDetailsScheme.js` to support recalculating amounts and concentrations when equivalents are locked.
- Ensure user-entered concentrations are preserved during updates.
@TasnimMehzabin TasnimMehzabin force-pushed the concentration-enhancements branch from 88ffbd2 to e7f2b56 Compare March 5, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calculation of the solvent volume from input concentration in reaction scheme

1 participant