Skip to content

feat(dashboard): add model settings shortcuts and access control section - #10321

Merged
Soulter merged 2 commits into
AstrBotDevs:masterfrom
anka-afk:dev
Oct 9, 2026
Merged

Soulter merged 2 commits into
AstrBotDevs:masterfrom
anka-afk:dev

Conversation

@anka-afk

@anka-afk anka-afk commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Configuration profiles currently place administrator IDs and the session whitelist under Platform, and editing a selected model requires leaving the profile editor. This PR adds model settings shortcuts and a dedicated Access Control section.

  • Add a settings gear beside explicitly selected models and in model/fallback menus, reusing the existing model settings dialog. Saving edits immediately affects all profiles referencing that model, without changing the selection or fallback order.
  • Define the section grouping in backend configuration metadata and synchronize all four dashboard locales. Default configuration values remain unchanged.
  • Order sections as AI → Platforms & Messages → Access Control → Plugin → Extensions and remove the configuration suffix from section labels.
  • Update whitelist log guidance, administrator hints, computer-tool permission prompts, Neo startup guidance, bilingual documentation, screenshots, and the changelog. The /sid command remains unchanged.
Previous location Current location
Platform Platforms & Messages
Platform → General → Administrator IDs Access Control → Administrators → Administrator IDs
Platform → Whitelist Access Control → Whitelist

This narrows the previous implementation to the changes above. The broader configuration layout redesign and sidebar customization changes are excluded from the final diff. The branch is based on current master and contains only the scoped implementation and documentation follow-up.

Validation: ruff format ., ruff check ., six smoke tests, dashboard production build, documentation build, bash -n scripts/start-with-neo.sh, and git diff --check passed. The model dialog was checked for opening, saving the intended model, and preserving profile selection. Ruff, script syntax, and the documentation build were rerun after the final prompt and documentation audit.

Updated instructions and screenshots: English WebUI guide · Chinese WebUI guide.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 07:13

@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 @anka-afk, your pull request is larger than the review limit of 150,000 diff characters

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Soulter Soulter changed the title feat(dashboard): 重组配置页面,改进模型编辑入口,修复侧栏自定义功能 feat(dashboard): add model settings shortcuts and access control section Oct 9, 2026
@Soulter
Soulter merged commit 8763c58 into AstrBotDevs:master Oct 9, 2026
23 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.

3 participants