Skip to content
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

fix(ui): load workflow from file #7254

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

In a8de640 a change was made to many menus in an effort to improve performance. The menus were made to be lazy, so that they are mounted only while open.

This causes unexpected behaviour when there is some logic in the menu that may need to execute after the user selects a menu item.

In this case, when you click to load a workflow from file, the file picker opens but then the menuitem unmounts, taking the input element and all uploading logic with it. When you select a file, nothing happens because we've nuked the handlers by unmounting everything.

Easy fix - un-lazy-fy the menu.

Related Issues / Discussions

Closes #7240

QA Instructions

Loading workflow from the three-dots menu should work.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added the frontend PRs that change frontend files label Nov 4, 2024
In a8de640 a change was made to many menus in an effort to improve performance. The menus were made to be lazy, so that they are mounted only while open.

This causes unexpected behaviour when there is some logic in the menu that may need to execute after the user selects a menu item.

In this case, when you click to load a workflow from file, the file picker opens but then the menuitem unmounts, taking the input element and all uploading logic with it. When you select a file, nothing happens because we've nuked the handlers by unmounting everything.

Easy fix - un-lazy-fy the menu.

Closes #7240
@hipsterusername hipsterusername force-pushed the psyche/fix/ui/load-workflow-from-file branch from 81ce029 to cf2e0f9 Compare November 4, 2024 13:01
@hipsterusername hipsterusername enabled auto-merge (rebase) November 4, 2024 13:01
@hipsterusername hipsterusername merged commit 3e75331 into main Nov 4, 2024
14 checks passed
@hipsterusername hipsterusername deleted the psyche/fix/ui/load-workflow-from-file branch November 4, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Workflow load fron file not working
2 participants