Repository navigation
feat(shell): integrate localized plugin help chapters - #153
Merged
Merged
Conversation
Refs #126. SDK RED: the two help-registration regressions fail because createPlugin ignores helpChapters and does not reject an unsupported host. Web regression execution also exposed the existing undeclared highlight.js import; resolve that direct dependency before validating the host RED target.
Refs #126. Reuse SDK registration and the existing help renderer for bundled English/Chinese chapters, permission-aware direct URLs, release-relative illustrations and rollback. The original chapter slug can preserve existing help links. GREEN: 35 host/docs tests and 39 SDK core tests pass. Declare the renderer existing highlight.js import as a direct dependency for strict dependency resolution.
Refs #126. Document the English requirements, localized content and image contract, permission/lifecycle behavior, and cross-repository acceptance boundary. Keep the static chapter IDs separate so SDK registration does not eagerly load help content. The 35 host/docs regressions remain green.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
12 of 24 tasks
cattan0710-tech
self-requested a review
November 29, 2026 13:48
cattan0710-tech
self-requested a review
November 29, 2026 13:51
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.
What type of PR is this?
What this PR does and why
Canary currently injects localized help documents and illustrations into a dedicated Console build. Remote plugin delivery needs the same help-center integration without rebuilding Console.
helpChapterscontributions with English and Chinese Markdown, stable chapter slugs, and an optional UI permission.canarypreserves/help/docs/canary.The renderer already imports
highlight.js; declare it as a direct dependency rather than relying on a transitive installation. Extract the built-in chapter list so plugin registration does not eagerly load built-in Markdown.Which issue(s) this PR fixes
Refs #126. This implements the missing host help mechanism, not the entire Canary migration, so merging it must not close #126.
Related work: #143 and #152 provide the existing plugin runtime and host extensions; #149 / #151 track resource-action data and independent action policies; modelsphere/console-canary-plugin#11 tracks the companion remote package. #148 remains deferred.
How it was tested
pnpm --dir web typecheck— passed.pnpm --dir web test— 93 files, 868 tests passed.pnpm --dir web build— passed; bundle-size warning remains.pnpm --dir web/packages/plugin-sdk typecheck— passed.pnpm --dir web/packages/plugin-sdk test— 13 files, 190 tests passed.git diff --check— passed.Regression tests cover localized help, the existing chapter URL shape, relative images, permissions and stale capabilities, unsupported hosts, invalid/duplicate declarations, partial registration rollback, and replacement/restoration of bundled content. SDK tests first reproduced the absent registration and compatibility checks.
Checks
Go and chart checks are not applicable: neither Go nor chart files change.
Notes for reviewers
docs/design/canary-plugin-integration.md, then the SDK bridge, chapter registry, permission-filtered help hook, and runtime cleanup.Release note