Repository navigation
docs: clarify plugin view sidebar titles - #11623
Merged
Soulter merged 3 commits intoDec 3, 2026
Merged
Conversation
Contributor
Linked issuesChecked at commit 1d1d897 #11608 [Feature] metadata 文档里没有 views 字段,按规范示例写元数据的插件,WebUI 入口名会静默变成目录名 · 1 of 2 met
|
Removed instructions for setting sidebar entry name in metadata.yaml.
| > [!WARNING] | ||
| > Please make sure to modify this file, as AstrBot relies on the `metadata.yaml` file to recognize plugin metadata. | ||
|
|
||
| If your plugin provides a standalone WebUI page, set its sidebar label with `title` in the `views` list in `metadata.yaml`. See [Standalone plugin page](./guides/plugin-views/plugin-page.md#register-the-page). |
Contributor
There was a problem hiding this comment.
🟡 Medium · Chinese onboarding link
The change adds onboarding guidance in English, but the Chinese onboarding guide still only says to update metadata.yaml. Add the corresponding instruction or link there so authors following that guide can find how to set the view title.
Prompt for AI agents
In `docs/en/dev/star/plugin-new.md` at line 46:
**Chinese onboarding link**
The change adds onboarding guidance in English, but the Chinese onboarding guide still only says to update `metadata.yaml`. Add the corresponding instruction or link there so authors following that guide can find how to set the view title.From #11608:
Document how to set a standalone view's sidebar title in the onboarding, marketplace, and standalone-page guides.
sourcery-ai
Bot
dismissed
their stale review
December 3, 2026 13:08
Sourcery withdrew this approval because the latest commits introduced blocking findings.
Soulter
approved these changes
Dec 3, 2026
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.
The plugin onboarding and publishing guides do not document
views[].titleinmetadata.yaml. The standalone page guide shows the field in an example but does not explain why the WebUI sidebar displays the directory name when no title is available.Closes #11608.
Modifications
Add a
viewsexample to the Chinese and English publishing guides and link to the standalone page guide from both onboarding guides.Explain that
views[].namematches the view directory and that the sidebar uses a translated view title, thenviews[].title, then the directory name. Documentdisplay_nameas the name of the plugin itself.Update both Bridge guides to describe the locale lookup order and link to the sidebar title fallback.
This is not a breaking change.
Verification
pnpm run docs:buildindocs).node --test dashboard/tests/pluginViewLabels.test.mjspassed all three tests.git diff --checkpassed.Checklist
Summary by Sourcery
Clarify plugin view titles and sidebar label behavior throughout the English and Chinese plugin documentation.
Documentation:
viewsexamples and links to the standalone page guide in both plugin publishing guides.