Skip to content

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

Merged
merged 16 commits into from
Jul 25, 2025

Conversation

alexpargon
Copy link
Collaborator

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 21, 2025 07:06
@alexpargon alexpargon linked an issue Jul 21, 2025 that may be closed by this pull request
4 tasks
Copilot

This comment was marked as outdated.

@alexpargon alexpargon changed the title 107 improve sampling behavior Improve sampling behavior of MMuX interface Jul 21, 2025
@alexpargon alexpargon self-assigned this Jul 21, 2025
@alexpargon alexpargon requested a review from Copilot July 24, 2025 11:53
Copy link
Contributor

@Copilot Copilot AI left a 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

Copy link
Collaborator

@wvangeit wvangeit left a 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.

@alexpargon alexpargon merged commit d3567be into main Jul 25, 2025
1 check passed
@alexpargon alexpargon deleted the 107-improve-sampling-behavior branch July 25, 2025 08:17
@alexpargon alexpargon linked an issue Jul 25, 2025 that may be closed by this pull request
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.

Bring Parallel Runner (Task Manager) back for Write version Refactor State handler (Improve feeling of "Run Sampling" button)
2 participants