feat: recreate bot platforms through QR scanning - #10083
Open
Soulter wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. Rescanning permanently deletes the selected platform and its connection settings before opening the replacement QR flow; cancelling or reverting the code cannot restore that data. The impact is bounded to the user-selected platform, but the deletion itself is not repaired by rerunning the operation.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
astrbot-docs | eff3d95 | Commit Preview URL Branch Preview URL |
Sep 14 2026, 12:21 PM |
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.
Add a Rebind via QR code action to the bot editor header for Lark, DingTalk, QQ Official (WebSocket and webhook), and Weixin. After the user confirms that the existing connection will be deleted, delete the bot and open the matching creation template in scan mode with the original bot ID prefilled.
Cancelling confirmation preserves the existing bot; failed deletion prevents recreation. Prevent duplicate rescan requests and saving while a rescan is pending, reset dialog state on close, and translate the action and confirmation in all four UI languages. This reuses the existing frontend creation flow and APIs.
Validation: dashboard production build (including
vue-tsc --noEmit), Prettier checks,ruff format ., andruff check .. A temporary harness using the actual Vue component scripts verified cancellation, successful deletion, rejected deletion, API error responses, and scan-mode initialization for all five adapter types.Summary by Sourcery
Enable users to replace supported bot connections by confirming deletion and reopening the matching platform setup in QR-scan mode.
New Features:
Bug Fixes:
Documentation: