Skip to content

feat(shell): support plugin account menu links - #150

Draft
cattan0710-tech wants to merge 1 commit into
modelsphere:mainfrom
cattan0710-tech:feat/plugin-user-menu
Draft

cattan0710-tech wants to merge 1 commit into
modelsphere:mainfrom
cattan0710-tech:feat/plugin-user-menu

Conversation

@cattan0710-tech

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • feature

What this PR does and why

Add an optional userMenu declaration to the Console plugin SDK. Installed plugins can contribute account menu links to their own registered pages or applications. This gives configuration pages such as AutoTune settings an entry alongside the existing Console account actions.

The shell resolves the destination through existing navigation and permission checks. For an application, it uses the first accessible static page when the default page is unavailable. Contributions without an accessible destination are omitted. Plugins can provide translated labels and ordering.

Related work

Builds on the installed plugin runtime in #143. The AutoTune host branch with navigation composition and path-level authorization is available separately for integration testing.

How it was tested

  • Isolated checkout of the PR head: Console Web typecheck, production build, and 853 tests.
  • Plugin SDK typecheck, build, and 187 tests using its frozen pnpm lockfile.
  • go vet ./... and go test ./....

Checks

  • Go vet and tests pass.
  • Console Web typecheck, tests and build pass.
  • The plugin development guide documents the SDK declaration.
  • No internal hostnames, IPs, registries or credentials.

Release note

Installed Console plugins can contribute links to their own pages and applications in the account menu.

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