-
Notifications
You must be signed in to change notification settings - Fork 448
feat: Auto-close LoadWorkflowWarning dialog when all missing nodes are installed #5321
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
Conversation
🎭 Playwright Test Results✅ Tests completed successfully! ⏰ Completed at: 09/10/2025, 12:04:42 PM UTC 📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
DrJKL
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks safe enough. Could you add a video showing the behavior?
| // Watch for completion and close dialog | ||
| watch(allMissingNodesInstalled, (allInstalled) => { | ||
| if (allInstalled && missingNodePacks.value !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't missingNodePacks.value !== null implied by allMissingNodesInstalled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All missing nodes have been installed" means:
- Loading has finished + No installation in progress + Zero missing packs remaining = true
- If any condition is missing, the dialog may close at the wrong timing.
| detail: t('manager.allMissingNodesInstalled'), | ||
| life: 3000 | ||
| }) | ||
| }, 500) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we don't need the timeout if we are showing a toast anyway, WDYT?
If we are using a timeout, do you think we need to:
- clear it in
unMountedor, alternatively, use https://vueuse.org/shared/useTimeout/ - add deduplication to prevent multiple queued calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the issue is a race condition with missingNodePacks changes -> missingNodePacks may not update fully until next tick, then we could just add nextTick() for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will use nextTick to ensure state updates are complete.
…e installed - Add computed property to check if all missing nodes are installed - Watch for completion and automatically close dialog with 500ms delay - Show success toast notification when installation completes - Add translation key for success message This improves UX by automatically dismissing the warning dialog once the user has successfully installed all missing nodes through the manager.
395d05a to
4a6633c
Compare
screen-capture.1.webm |
🔧 Auto-fixes AppliedThis PR has been automatically updated to fix linting and formatting issues.
Changes made:
|
screen-capture.webm |
christian-byrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…e installed (#5321) * feat: Auto-close LoadWorkflowWarning dialog when all missing nodes are installed - Add computed property to check if all missing nodes are installed - Watch for completion and automatically close dialog with 500ms delay - Show success toast notification when installation completes - Add translation key for success message This improves UX by automatically dismissing the warning dialog once the user has successfully installed all missing nodes through the manager. * fix: settimeout to nexttick * [auto-fix] Apply ESLint and Prettier fixes --------- Co-authored-by: GitHub Action <[email protected]>
|
@viva-jinyi Successfully backported to #5487 |
…e installed (#5321) (#5487) * feat: Auto-close LoadWorkflowWarning dialog when all missing nodes are installed - Add computed property to check if all missing nodes are installed - Watch for completion and automatically close dialog with 500ms delay - Show success toast notification when installation completes - Add translation key for success message This improves UX by automatically dismissing the warning dialog once the user has successfully installed all missing nodes through the manager. * fix: settimeout to nexttick * [auto-fix] Apply ESLint and Prettier fixes --------- Co-authored-by: Jin Yi <[email protected]> Co-authored-by: GitHub Action <[email protected]>
…e installed (#5321) * feat: Auto-close LoadWorkflowWarning dialog when all missing nodes are installed - Add computed property to check if all missing nodes are installed - Watch for completion and automatically close dialog with 500ms delay - Show success toast notification when installation completes - Add translation key for success message This improves UX by automatically dismissing the warning dialog once the user has successfully installed all missing nodes through the manager. * fix: settimeout to nexttick * [auto-fix] Apply ESLint and Prettier fixes --------- Co-authored-by: GitHub Action <[email protected]>
Summary
Automatically close the LoadWorkflowWarning dialog when all missing nodes have been successfully installed through the Manager.
Changes
Implementation
allMissingNodesInstalledthat checks:!isLoading)missingNodePacks.length === 0)!isInstalling)User Experience Improvements
Testing
Type of Change
┆Issue is synchronized with this Notion page by Unito