Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#10484 [Feature] 插件市场支持按照支持的适配器分类 · 2 of 2 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add a supported-adapter platform filter beside the category filter. | ✅ Met | The market has a multi-select platform control next to the category selector, with options derived from current market data. |
| 2 | Help users find plugins for their platform and exclude plugins that do not declare support for it. | ✅ Met | Filtering matches plugins declaring any selected platform, so selecting QQ Official excludes plugins that declare only aiocqhttp support. |
Sourcery assessment
Approved.
Add multi-select platform filtering with an explicit undeclared option, composed with existing search and category filters. Reset pagination on filter changes and clear platform selections when switching sources. Update four locales and the Chinese and English usage guides. Verified 140 dashboard tests, dashboard and docs builds, i18n checks, and desktop/mobile browser flows with fixture data.
mothieras
force-pushed
the
feat/market-platform-filter
branch
from
November 26, 2026 15:30
3cdbc64 to
bbfbc78
Compare
Contributor
Linked issuesChecked at commit bbfbc78 #10484 [Feature] 插件市场支持按照支持的适配器分类 · 2 of 2 met
|
This branch has not been deployed
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.
Closes #10484.
The plugin market has no dedicated platform filter, so users must inspect individual plugins to find ones that support their bot platform. This adds a multi-select filter beside the category selector. For example, a QQ Official user can show plugins that declare QQ Official support and optionally include plugins with undeclared platform support.
Modifications / 改动点
Add a Supported platforms filter. Selecting multiple platforms matches any selected platform; clearing the selection shows all plugins.
Offer Undeclared platforms as a separate option, selectable on its own or alongside specific platforms. Missing metadata is not treated as unsupported.
Build options from the current market data, normalize known legacy aliases, and retain community adapter IDs.
Apply platform filtering together with search and categories, before sorting and pagination. Random recommendations follow the same filters. Filter changes reset pagination; switching sources clears the platform selection.
Add an empty-results message, translations for all four supported locales, and Chinese and English usage instructions.
This is NOT a breaking change.
Screenshots or Test Results / 运行截图或测试结果
The screenshots show the actual dashboard with fixture market data, not live marketplace entries.
Desktop: QQ Official and undeclared platforms selected
Mobile layout at 390 px
Passed:
cd dashboard && node --test tests/*.test.mjs— 93 tests passed, including seven new tests covering platform matching, undeclared metadata, aliases, combined filters, pagination, source changes, and installed-plugin metadata backfill.cd dashboard && pnpm run buildcd dashboard && pnpm run i18n:checkcd docs && pnpm run docs:buildruff format .ruff check .git diff --checkBrowser verification used fixture market data on the actual dashboard page at desktop and 390 px viewport widths. Checked filtering from page 2, combined platform selections, undeclared-only filtering, clearing selections, and empty search results. No horizontal overflow was observed at 390 px.
Browser checks used mocked API responses; a live AstrBot backend was not exercised.
Checklist / 检查清单
Summary by Sourcery
Add supported-platform filtering to the plugin market so users can find compatible plugins more efficiently.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: