Skip to content

refactor: "Run all" doesnt expand show results in card models#630

Merged
cristian-tamblay merged 1 commit into
developfrom
refactor/showresults-models
May 22, 2026
Merged

refactor: "Run all" doesnt expand show results in card models#630
cristian-tamblay merged 1 commit into
developfrom
refactor/showresults-models

Conversation

@Felipedino

Copy link
Copy Markdown
Collaborator

This pull request improves the user experience in the model training workflow by automatically expanding the results panel when a run is started. The main changes involve adding an autoExpand state to control the expansion behavior and ensuring that the results panel only auto-expands when appropriate.

User Interface Improvements:

  • Added a new autoExpand state in RunCard.jsx to track whether the results panel should auto-expand. This state is set to true when the user initiates training and reset to false when the run is not in a running state. [1] [2] [3]
  • Passed the autoExpand prop from RunCard.jsx to RunResults.jsx to control the expansion of the results panel. [1] [2] [3]

Results Panel Behavior:

  • Updated RunResults.jsx so that the results panel only auto-expands when a run starts and autoExpand is true, preventing unwanted expansions in other scenarios.

These changes make the UI more responsive and intuitive by automatically showing live metrics when a training run is started.

Copilot AI review requested due to automatic review settings May 18, 2026 13:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds state-driven auto-expansion for model run results so live metrics are shown when training is started from a run card.

Changes:

  • Adds autoExpand state in RunCard and passes it to RunResults.
  • Updates RunResults to expand only when a run is running and autoExpand is enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
DashAI/front/src/components/models/RunCard.jsx Tracks whether a run-card-initiated training action should auto-expand results.
DashAI/front/src/components/models/RunResults.jsx Uses the new autoExpand prop to decide whether to open the results panel on running status.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DashAI/front/src/components/models/RunResults.jsx
@cristian-tamblay cristian-tamblay merged commit 3fea3ac into develop May 22, 2026
23 checks passed
@cristian-tamblay cristian-tamblay deleted the refactor/showresults-models branch May 22, 2026 13:45
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.

3 participants