Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Gates Passed
4 Quality Gates Passed
See analysis details in CodeScene
Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
[Medium impact] The PR appears safe to merge.
|
Closes #171
What
ScreenGateis a new optional interface besideRouteProviderandPublicPathProvider. ItsShowsScreens(ctx) (bool, error)says whether a plugin's admin menu entries and screens show for the caller the context carries.NewHookandFilter, which already recover each call, share one budget and keep the incoming value on an error or a panic.Why
A downstream application's plugin can have admin screens that are of no use to a caller yet, for example before the caller has set up the mailbox the plugin reads mail from. Until now a plugin's menu entries were a fixed list in its manifest, and a screen hid only by capability.
Testing Instructions
The repository's own gates cover this.
go test ./...inpluginkit/featuresruns the three new scenarios.Summary by CodeRabbit