Add Multi-Sample Creation in Reactions with Smart Sorting#27
Merged
Conversation
This was
linked to
issues
Oct 24, 2025
Fix/dataset exclusion and zip label (#25)
capitalize type of sample component tests for add button and scheme dropdown
feat: added plus button next to reation.
test: add retrieveTree sorting tests
facf8b7 to
6234cc9
Compare
phuang26
approved these changes
Oct 29, 2025
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.
What This Does
This PR makes it way easier to work with reactions by letting you create multiple samples at once and automatically organizing them in the order they're used in the reaction.
Key Features
🔹 Quick Sample Creation with Plus Button
Added a handy "+" button next to reactions so you can quickly add new samples without going through multiple steps. You can even create several samples at the same time with different names, which is super useful when setting up complex reactions.
🔹 Choose the Sample's Role
New dropdown lets you pick what type of sample you're adding - is it a starting material, reactant, solvent, or product? This makes it crystal clear what each sample does in your reaction.
🔹 Automatic Chemical Ordering
Here's the cool part: no matter what order you create your samples in, they automatically organize themselves the way a chemist would expect:
So if you add a product, then a starting material, then a reactant - they'll automatically rearrange to show starting material → reactant →product. Much cleaner!
🔹 Fixed Parent-Child Relationships
Fixed some bugs with how samples and their nested folders (like analyses) connect to each other in the folder tree.