Skip to content

feat(dashboard): edit config profiles from a side drawer in the bot editor - #10310

Merged
Soulter merged 12 commits into
masterfrom
codex/config-profile-drawer
Oct 1, 2026
Merged

Soulter merged 12 commits into
masterfrom
codex/config-profile-drawer

Conversation

@Soulter

@Soulter Soulter commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

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.

  • New reusable ConfigProfileDrawer component: right-side v-navigation-drawer that loads the profile via the existing config profile API and reuses AstrBotCoreConfigWrapper for editing (the same component used by the platform creation dialog's config section), with localized title/load-error/close/save in all four locales
  • Save goes through configProfileApi.update with success/error snackbar feedback
  • The system-default sentinel (__astrbot_system_default__) correctly maps to the default profile
  • Buttons are disabled while routes are not ready or no profile is selected

Test plan

  • Browser-verified on the bot editor: cog opens the drawer with the selected profile's full editor (AI/插件/平台/扩展功能 sections), 保存配置 persists and shows 保存成功, drawer closes via footer button and the X
  • vue-tsc --noEmit passes

Summary by Sourcery

Add inline configuration-profile editing to the bot editor through a reusable side drawer.

New Features:

  • Enable inline editing of selected bot session configuration profiles from both configuration selectors in the platform editor.
  • Add a reusable localized configuration-profile drawer for viewing and saving profiles without leaving the current editor.

Bug Fixes:

  • Map the system-default configuration sentinel to the editable default profile when opening the drawer.

Enhancements:

  • Adapt the configuration page layout for embedded drawer use and improve profile identification in the configuration list.
  • Reuse the shared profile drawer in the platform creation flow.

…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.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Soulter, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 17 hours and 12 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

Soulter added 11 commits October 1, 2026 17:19
- 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).
@Soulter
Soulter merged commit 9d4f523 into master Oct 1, 2026
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant