Skip to content

fix reset step state when selecting dataset or notebook#443

Open
Felipedino wants to merge 1 commit intodevelopfrom
fix/chanage-view-datasets
Open

fix reset step state when selecting dataset or notebook#443
Felipedino wants to merge 1 commit intodevelopfrom
fix/chanage-view-datasets

Conversation

@Felipedino
Copy link
Collaborator

This pull request makes a small update to the dataset and notebook selection logic in the DatasetsContent component. Now, when a user selects a dataset or a notebook, the current step is reset to 0, ensuring the UI starts from the initial step for each new selection.

  • User experience improvements:
    • Reset the step state to 0 when a dataset or notebook is selected, so the interface always starts from the beginning for each new selection.

Copilot AI review requested due to automatic review settings February 1, 2026 20:40
Copy link
Contributor

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 pull request fixes a UI state management issue by resetting the step state to 0 when users select a dataset or notebook from the sidebar. This ensures the interface always displays the correct view (dataset/notebook visualization) rather than potentially showing an upload workflow step when clicking on existing items.

Changes:

  • Added setStep(0) call in handleDatasetClick function to reset UI step when a dataset is selected
  • Added setStep(0) call in handleNotebookClick function to reset UI step when a notebook is selected

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

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.

1 participant