Skip to content

Add Multi-Sample Creation in Reactions with Smart Sorting#27

Merged
phuang26 merged 5 commits intomainfrom
feat/allow-multi-sample-creation-in-reaction
Oct 29, 2025
Merged

Add Multi-Sample Creation in Reactions with Smart Sorting#27
phuang26 merged 5 commits intomainfrom
feat/allow-multi-sample-creation-in-reaction

Conversation

@alizaib1217
Copy link
Collaborator

@alizaib1217 alizaib1217 commented Oct 24, 2025

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:

  • Starting Materials first
  • Then Reactants
  • Followed by Solvents
  • Products next
  • Everything else (like analyses) at the end

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.

capitalize type of sample

component tests for add button and scheme dropdown
feat: added plus button next to reation.
test: add retrieveTree sorting tests
@alizaib1217 alizaib1217 force-pushed the feat/allow-multi-sample-creation-in-reaction branch from facf8b7 to 6234cc9 Compare October 29, 2025 09:56
@alizaib1217 alizaib1217 requested a review from phuang26 October 29, 2025 09:59
@alizaib1217 alizaib1217 marked this pull request as ready for review October 29, 2025 09:59
@alizaib1217 alizaib1217 changed the title Feat/allow multi sample creation in reaction Add Multi-Sample Creation in Reactions with Smart Sorting Oct 29, 2025
@phuang26 phuang26 merged commit fc72d4a into main Oct 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

2 participants