feat: add Community Edition restore UI - #13431
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Community Edition “restore/switch back” flow to the Enterprise license-required screen, including a dialog-driven UX and status polling, plus corresponding API bindings, i18n strings, and cleanup support for restore artifacts.
Changes:
- Add “Restore Community Edition” entry point on the license-required page and a new
CommunityRestoreDialog(online/offline modes) with polling during restore. - Add frontend API methods/types for community-restore status and execution.
- Extend agent device-clean rollback tree and cleanup to include the community-restore working directory; add corresponding label mapping and translations.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/views/toolbox/clean/index.vue | Adds i18n label mapping for the new rollback tree key. |
| frontend/src/views/setting/license-required/index.vue | Adds restore entry point, loading overlay, and polling/redirect logic during restore. |
| frontend/src/views/setting/license-required/community-restore/index.vue | New restore dialog UI and offline package polling. |
| frontend/src/lang/modules/zh.ts | Adds restore-related translations. |
| frontend/src/lang/modules/zh-Hant.ts | Adds restore-related translations. |
| frontend/src/lang/modules/en.ts | Adds restore-related translations. |
| frontend/src/lang/modules/tr.ts | Adds restore-related translations. |
| frontend/src/lang/modules/ru.ts | Adds restore-related translations. |
| frontend/src/lang/modules/pt-br.ts | Adds restore-related translations. |
| frontend/src/lang/modules/ms.ts | Adds restore-related translations. |
| frontend/src/lang/modules/lo.ts | Adds restore-related translations. |
| frontend/src/lang/modules/ko.ts | Adds restore-related translations. |
| frontend/src/lang/modules/ja.ts | Adds restore-related translations. |
| frontend/src/lang/modules/fa.ts | Adds restore-related translations. |
| frontend/src/lang/modules/es-es.ts | Adds restore-related translations. |
| frontend/src/api/modules/setting.ts | Adds API wrappers for restore status + restore trigger. |
| frontend/src/api/interface/setting.ts | Adds types for restore status and restore mode. |
| agent/app/service/device_clean.go | Adds scanning/cleanup support for community-restore rollback artifacts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.