-
Notifications
You must be signed in to change notification settings - Fork 1
Improve sampling behavior of MMuX interface #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Alejandro Parcet <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the sampling behavior of the MMuX interface by enhancing the user experience around sampling operations. The changes include better state management, improved UI feedback, and cleaner code organization.
Key changes:
- Added a
clearSampling
function to reset sampling state and integrated it into the UI workflow - Enhanced the PlusButton component to use Material-UI Accordion for better UX and automatic closure after sampling
- Improved context dependencies and removed unused parameters across multiple plot components
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
node/src/context/SamplingContext.tsx | Added clearSampling function and fixed context naming in console logs |
node/src/context/JobContext.tsx | Wrapped functions in useCallback and exposed additional context values |
node/src/components/setup/FunctionList.tsx | Integrated clearSampling function into the reset workflow |
node/src/components/sampling/RunSamplingButton.tsx | Updated function signature and removed debug console log |
node/src/components/sampling/PlusButton.tsx | Refactored to use Accordion component with automatic state management |
node/src/components/sampling/LHSSampling.tsx | Reorganized context usage and moved function declaration outside component |
node/src/components/plots/*.tsx | Removed unused inputVars parameter from CreateSelect components |
node/src/components/navigation/Footer.tsx | Added permission-based UI rendering and improved variable naming |
node/src/components/minmax.tsx | Removed debug console log |
node/src/components/data/JobSelector.tsx | Added automatic job collection updates with user feedback |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. (Although it's a bit difficult to assess without tests).
I'll let you merge it, since you know better if the code is really finished or not.
Signed-off-by: Alejandro Parcet <[email protected]>
No description provided.