feat(dashboard): edit config profiles from a side drawer in the bot editor - #10310
Merged
Merged
Conversation
…ditor Add a cog button next to each config profile selector in the session config section of the bot editor (default route config and per-session binding). Clicking it slides out a right-side drawer with the full profile editor (reusing AstrBotCoreConfigWrapper, same as the platform creation dialog), so the selected profile can be viewed and modified inline without leaving the page. Changes are saved through the existing config profile API with success/error feedback.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
astrbot-docs | bbd381d | Commit Preview URL Branch Preview URL |
Oct 01 2026, 09:46 AM |
- Move the arrow-up-right button into each config profile dropdown item (right side of every option); clicking it opens the editor for that profile without selecting the option - Restyle ConfigProfileDrawer to match the platform-creation config drawer: v-overlay with slide-x-reverse transition, scrim, and a right-aligned elevated card embedding the full ConfigPage via its initial-config-id prop
The sticky config toolbar's background and divider previously spanned the full viewport width; both now match the content column below. When the config page is embedded in the side drawer, the toolbar sticks to the drawer's top edge instead of the app-bar offset, removing the stray gap above it.
The content-width divider read as a floating orphaned line; the sticky toolbar's background and spacing already separate it from the content. The loading progress bar is kept.
…lbar Scrolled content bled through the 16px padding strip between the drawer header and the sticky toolbar. In embedded mode the toolbar now sticks flush to the drawer content top with its own solid background.
…on dialog AddNewPlatform had its own duplicated config drawer implementation (overlay, card, header, embedded ConfigPage). Replace it with the shared ConfigProfileDrawer component so all config drawers share one style, and remove the now-dead code, styles, and imports. Also set the drawer title to 18px semibold (between the original h6 and the too-large h3).
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.
Summary
The two config profile dropdowns in the bot editor's session config section (会话配置) — "此机器人的默认配置" and the per-session binding selector — now have a cog button on their right. Clicking it slides out a right-side drawer with the full profile editor, so the selected profile can be viewed and modified inline without navigating to the Config page.
ConfigProfileDrawercomponent: right-sidev-navigation-drawerthat loads the profile via the existing config profile API and reusesAstrBotCoreConfigWrapperfor editing (the same component used by the platform creation dialog's config section), with localized title/load-error/close/save in all four localesconfigProfileApi.updatewith success/error snackbar feedback__astrbot_system_default__) correctly maps to thedefaultprofileTest plan
vue-tsc --noEmitpassesSummary by Sourcery
Add inline configuration-profile editing to the bot editor through a reusable side drawer.
New Features:
Bug Fixes:
Enhancements: