Repository navigation
Conversation
MainContext gets an optional profileMenuLinks list. ProfileMenu renders each link above Theme and closes the menu on click. The enterprise dashboard uses it for the "Connect AI agent" entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
The review reports no active issues with the configurable profile-menu links change.
No open issues 🎉
What changed in this PR
Adds configurable profile-menu links to the shared library, enabling the enterprise dashboard’s “Connect AI agent” entry.
Changes:
- Defines and exports
ProfileMenuLinkTypewith optionalprofileMenuLinksin the main context. - Renders links above Theme using matching row styling and closes the menu on click.
| File | Description |
|---|---|
| src/Shared/Providers/MainContextProvider/types.ts | Defines link fields and the optional context property. |
| src/Shared/Providers/MainContextProvider/index.ts | Exports the link type for consumers. |
| src/Shared/Components/Header/ProfileMenu.tsx | Renders configurable links above Theme. |
Review effort: Balanced
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
Adds an optional
profileMenuLinkslist to the main context.ProfileMenurenders each link above Theme, with the same row style, and closes the menu on click.The enterprise dashboard uses it for the "Connect AI agent" entry of the MCP feature.
Main PR: https://github.com/devtron-labs/devtron-enterprise/pull/3467. Design doc: MCP OAuth design.
Release note for consumers: after this is released, bump
@devtron-labs/devtron-fe-common-libindashboardanddevtron-fe-lib. The dashboard MCP PR does not compile until then.Type of change
How Has This Been Tested?
tsc --noEmit, eslint on the changed files,npm run build-libChecklist
🤖 Generated with Claude Code