Skip to content

fix(channels): preserve plugin descriptions, field help and defaults - #2162

Merged
liukewia merged 2 commits into
TencentCloud:developfrom
ideshun:fix/plugin-channel-presentation
Nov 25, 2026
Merged

liukewia merged 2 commits into
TencentCloud:developfrom
ideshun:fix/plugin-channel-presentation

Conversation

@ideshun

@ideshun ideshun commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Problem

After installing a channel plugin that declares a description in plugin.yaml, the channel card still shows only its name (for example, Octo). The configuration drawer also ignores the description. PluginChannelInfo does not expose manifest.description, while frontend registration drops helpKey, defaultValue and legacyDefaultValue. Saved switch values can also be converted to strings.

Changes

  • Pass the plugin manifest description through the channel catalogue and render it in cards and configuration drawers, preserving the existing fallback when no description is provided.
  • Display field help as question-mark tooltips. Apply defaultValue when creating a channel and legacyDefaultValue for missing fields in existing configurations, while preserving saved boolean values.
  • Label plugin intro_url links as configuration help.
  • Preserve icons, builtin channel protection, and metadata overlay/restoration for legacy runtime catalogue entries. No Octo-specific logic is introduced.
  • Add regression coverage using the real PluginRegistry/plugin loader, channel cards, drawers, catalogue refresh and ChannelsPanel; update the Unreleased changelog.

Validation

  • Backend plugin_channels and i18n tests: 104 passed, 1 skipped. The skipped test requires a sibling harness source fixture unavailable in this environment.
  • Frontend ChannelCard, ChannelDrawer, pluginChannels, ChannelsPanel and constants tests: 31 passed across 5 files, with a 20-second test timeout.
  • ESLint for affected frontend files: no errors; an existing ChannelsPanel catalogVersion dependency warning remains.
  • Commit hooks remained enabled. Formatting, full backend Ruff checks (1,237 files) and mypy (596 source files) passed. PYTEST_ADDOPTS scoped pytest --testmon to plugin_channels and i18n: 104 passed, 1 skipped. This is not a claim that the full test suite passed.
  • Dashboard production build (tsc -b and Vite) passed. Generated assets remain ignored in the isolated worktree.

The complete make all/backend test suite, real-browser visual acceptance and live channel interoperability were not run. This PR remains a draft pending CI and review. It changes source only: no running service was updated or restarted, and no production assets were hot-patched.

@ideshun ideshun changed the title fix(channels): 修复插件频道描述、字段提示与默认值展示 fix(channels): preserve plugin descriptions, field help and defaults Oct 17, 2026
@ideshun
ideshun marked this pull request as ready for review October 17, 2026 16:44
@liukewia
liukewia merged commit d0c454e into TencentCloud:develop Nov 25, 2026
5 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.

2 participants