feat(gateway/plugins): Add plugin priority to info box#5509
Open
lena-larionova wants to merge 3 commits into
Open
feat(gateway/plugins): Add plugin priority to info box#5509lena-larionova wants to merge 3 commits into
lena-larionova wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances plugin overview info boxes by surfacing each plugin’s static execution priority and adding “info” icon links to documentation that explains the displayed fields.
Changes:
- Add a
priorityaccessor to the plugin generator and expose it in generated page data. - Render a new “Priority” section in the plugin info box when priority is available.
- Add info-icon links to the “Compatible Protocols” and “Topologies/Deployments” info box headings.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| app/_plugins/generators/plugins/plugin.rb | Adds a priority helper that reads from site.data.plugins.priorities for the relevant release. |
| app/_plugins/generators/plugins/pages/base.rb | Adds priority to plugin page frontmatter/data so templates can render it. |
| app/_includes/info_box/sections/topologies.html | Adds info-icon links for “Supported Gateway Topologies” and “Supported Konnect Deployments”. |
| app/_includes/info_box/sections/priority.html | New section template to display plugin priority with a doc link. |
| app/_includes/info_box/sections/compatible_protocols.html | Adds an info-icon link for “Compatible Protocols”. |
| app/_includes/info_box/plugin.html | Renders the new priority section when page.priority is present. |
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Description
Adding the plugin priority number to the info box on plugin overviews. We've had a few requests to make plugin priority more findable, so this aims to address this issue.
Also adding an info icon to link to pages that explain what each item in the info box is ("priority" on its own is confusing if you haven't seen that before, but useful to people that know what it is).
Preview Links
Any plugin, eg https://deploy-preview-5509--kongdeveloper.netlify.app/plugins/acl/