Skip to content

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jul 24, 2025

You can test this by going to the human assembly and see the GTF error. xref #679

Screenshot 2025-07-24 at 16 38 36

While not super actionable at least we're not showing the loading indicator indefinitely.

You can test this by going to the human assembly and see the GTF error.
xref galaxyproject#679
@d-callan
Copy link
Collaborator

could this be made a warning, and we let ppl go to galaxy without it?

@NoopDog NoopDog requested review from Copilot and frano-m July 24, 2025 20:51
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 adds error handling to stepper steps in the workflow configuration component. The changes address an issue where users would see loading indicators indefinitely when GTF file fetching fails.

  • Adds error state management and display to stepper steps
  • Implements utility functions for consistent step state calculation
  • Updates stepper components to handle error states properly

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
stepUtils.ts New utility functions for calculating step active and button disabled states
types.ts Updates Step interface to make active property required
useLaunchGalaxy.ts Adds error handling and returns error state in status
types.ts (UseLaunchGalaxy) Adds error property to Status interface
stepError.tsx New component for displaying error messages in steps
launchStep.tsx Integrates error handling using new utilities and error component
types.ts (UseUCSCFiles) Adds error and isLoading properties to hook interface
hook.ts (UseUCSCFiles) Implements comprehensive error handling for UCSC files fetching
gtfStep.tsx Updates to use error handling and conditional rendering based on error state

disabled={getButtonDisabledState(
status.disabled,
status.loading,
!!status.error
Copy link
Preview

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The !!status.error conversion is redundant since getButtonDisabledState already handles the truthy conversion with !!hasError internally.

Suggested change
!!status.error
status.error

Copilot uses AI. Check for mistakes.

)}
<Button
{...BUTTON_PROPS.PRIMARY_CONTAINED}
disabled={!value}
disabled={getButtonDisabledState(!value, false, !!error)}
Copy link
Preview

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The !!error conversion is redundant since getButtonDisabledState already handles the truthy conversion with !!hasError internally.

Suggested change
disabled={getButtonDisabledState(!value, false, !!error)}
disabled={getButtonDisabledState(!value, false, error)}

Copilot uses AI. Check for mistakes.

Copy link
Contributor

@frano-m frano-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @mvdbeek. Thanks for the error handling!

LGTM!

@d-callan d-callan merged commit b07d6ee into galaxyproject:main Jul 25, 2025
3 checks passed
d-callan added a commit that referenced this pull request Jul 27, 2025
## Description

we prev had #680 merged. id like to iterate on that, so that the
behavior for missing GTFs is no worse than it was pre-stepper. we also
have outstanding issue #682 but i dont want to close that w this, bc
this should be revisited. i see this as an interim measure until we have
ux for this properly sorted.

## Related Issue

related to #682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants