Skip to content

feat: profile menu links above theme - #1083

Open
abhibhaw wants to merge 1 commit into
developfrom
feat/profile-menu-items
Open

abhibhaw wants to merge 1 commit into
developfrom
feat/profile-menu-items

Conversation

@abhibhaw

@abhibhaw abhibhaw commented Dec 4, 2026

Copy link
Copy Markdown
Member

Description

Adds an optional profileMenuLinks list to the main context. ProfileMenu renders 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-lib in dashboard and devtron-fe-lib. The dashboard MCP PR does not compile until then.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • tsc --noEmit, eslint on the changed files, npm run build-lib
  • Built locally into the dashboard: the menu shows Connect AI agent, then Theme, then Logout; a click opens the page and closes the menu (Playwright screenshot)

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 18:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 ProfileMenuLinkType with optional profileMenuLinks in 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

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