-
Notifications
You must be signed in to change notification settings - Fork 491
feat(server-config): restart required toast #7479
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
feat(server-config): restart required toast #7479
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎨 Storybook Build Status✅ Build completed successfully! ⏰ Completed at: 12/15/2025, 02:21:13 AM UTC 🔗 Links🎉 Your Storybook is ready for review! |
🎭 Playwright Test Results❌ Some tests failed ⏰ Completed at: 12/15/2025, 02:31:07 AM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
|
This one is more optional. There is already a component telling users that they need to restart. |
907a3a2 to
7b133c2
Compare
|
This PR is open because it's pretty small and simple, but I'm working on e2e desktop testing for this. |
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.
Pull request overview
This PR adds a warning toast notification that reminds users to restart the application when they leave the Server Config panel with unsaved changes.
Key Changes:
- Added
onBeforeUnmountlifecycle hook to show a toast when leaving the panel with pending config changes - Implemented
restartTriggeredflag to suppress the toast when the user clicks the Restart button - Added i18n strings for the toast summary and detail messages
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/platform/settings/components/ServerConfigPanel.vue |
Adds toast notification logic with conditional display based on modified configs and restart state |
src/locales/en/main.json |
Adds toast message strings for restart requirement notification |
Adds a Desktop (Electron) Server-Config setting for `--enable-manager-legacy-ui` so users can opt into ComfyUI-Manager’s legacy UI. - Adds `enable-manager-legacy-ui` to `SERVER_CONFIG_ITEMS` - Adds EN i18n label + tooltip Note: this PR only adds the setting/flag wiring; it does not change restart behavior in Desktop. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7478-feat-server-config-add-legacy-manager-UI-toggle-2ca6d73d365081a79bb2c376506f5346) by [Unito](https://www.unito.io) > [!NOTE] > This is a stacked PR. (main <= #7478 <= #7479)
Adds a Desktop (Electron) Server-Config setting for `--enable-manager-legacy-ui` so users can opt into ComfyUI-Manager’s legacy UI. - Adds `enable-manager-legacy-ui` to `SERVER_CONFIG_ITEMS` - Adds EN i18n label + tooltip Note: this PR only adds the setting/flag wiring; it does not change restart behavior in Desktop. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7478-feat-server-config-add-legacy-manager-UI-toggle-2ca6d73d365081a79bb2c376506f5346) by [Unito](https://www.unito.io) > [!NOTE] > This is a stacked PR. (main <= #7478 <= #7479)
Adds a Desktop (Electron) Server-Config setting for `--enable-manager-legacy-ui` so users can opt into ComfyUI-Manager’s legacy UI. - Adds `enable-manager-legacy-ui` to `SERVER_CONFIG_ITEMS` - Adds EN i18n label + tooltip Note: this PR only adds the setting/flag wiring; it does not change restart behavior in Desktop. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7478-feat-server-config-add-legacy-manager-UI-toggle-2ca6d73d365081a79bb2c376506f5346) by [Unito](https://www.unito.io) > [!NOTE] > This is a stacked PR. (main <= #7478 <= #7479)
| } | ||
|
|
||
| const restartApp = async () => { | ||
| restartTriggered = true |
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.
Does the toast say that a restart is required while the app is already restarting?
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.
No, restartTriggered should be guarding that
Adds a Desktop (Electron) Server-Config setting for `--enable-manager-legacy-ui` so users can opt into ComfyUI-Manager’s legacy UI. - Adds `enable-manager-legacy-ui` to `SERVER_CONFIG_ITEMS` - Adds EN i18n label + tooltip Note: this PR only adds the setting/flag wiring; it does not change restart behavior in Desktop. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7478-feat-server-config-add-legacy-manager-UI-toggle-2ca6d73d365081a79bb2c376506f5346) by [Unito](https://www.unito.io) > [!NOTE] > This is a stacked PR. (main <= Comfy-Org#7478 <= Comfy-Org#7479)
## Summary Show a warning toast when leaving Server Config with pending changes, reminding users they must restart to apply changes. ## Changes - **What**: Add a `onBeforeUnmount` toast in `ServerConfigPanel` when `modifiedConfigs` is non-empty and the user didn’t click Restart; add i18n strings. ## Review Focus - Confirm the toast timing/conditions are correct (only fires on leaving the panel; suppressed when Restart is clicked). > [!NOTE] > This is a stacked PR. (main <= Comfy-Org#7478 <= Comfy-Org#7479) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7479-feat-server-config-restart-required-toast-2ca6d73d3650811f85f7f0c52c4cf8f0) by [Unito](https://www.unito.io)
Adds a Desktop (Electron) Server-Config setting for `--enable-manager-legacy-ui` so users can opt into ComfyUI-Manager’s legacy UI. - Adds `enable-manager-legacy-ui` to `SERVER_CONFIG_ITEMS` - Adds EN i18n label + tooltip Note: this PR only adds the setting/flag wiring; it does not change restart behavior in Desktop. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7478-feat-server-config-add-legacy-manager-UI-toggle-2ca6d73d365081a79bb2c376506f5346) by [Unito](https://www.unito.io) > [!NOTE] > This is a stacked PR. (main <= #7478 <= #7479)
## Summary Show a warning toast when leaving Server Config with pending changes, reminding users they must restart to apply changes. ## Changes - **What**: Add a `onBeforeUnmount` toast in `ServerConfigPanel` when `modifiedConfigs` is non-empty and the user didn’t click Restart; add i18n strings. ## Review Focus - Confirm the toast timing/conditions are correct (only fires on leaving the panel; suppressed when Restart is clicked). > [!NOTE] > This is a stacked PR. (main <= #7478 <= #7479) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7479-feat-server-config-restart-required-toast-2ca6d73d3650811f85f7f0c52c4cf8f0) by [Unito](https://www.unito.io)
Summary
Show a warning toast when leaving Server Config with pending changes, reminding users they must restart to apply changes.
Changes
onBeforeUnmounttoast inServerConfigPanelwhenmodifiedConfigsis non-empty and the user didn’t click Restart; add i18n strings.Review Focus
Note
This is a stacked PR. (main <= #7478 <= #7479)
┆Issue is synchronized with this Notion page by Unito