Skip to content

Conversation

@AbhishekA1509
Copy link
Member

Description

This pull request updates navigation and routing to remove the "AI Recommendations" section from the sidebar and its related routes, while adding a new "Runbook Automation" navigation item under "Automation & Enablement". It also includes minor dependency updates and code cleanup for navigation components.

Navigation Structure Updates:

  • Removed the "AI Recommendations" navigation group and its items from the sidebar, and updated related type definitions to reflect this change. [1] [2]
  • Added a new "Runbook Automation" navigation item under the "Automation & Enablement" section, linking to COMMON_URLS.AUTOMATION_ENABLEMENT_RUNBOOKS. [1] [2]

Routing and Component Integration:

  • Removed routing for "AI Recommendations" and integrated the new "Runbook Automation" route into the main navigation routes. Also imported the AIRecommendations component for future use. [1] [2] [3]

Code Cleanup and Dependency Update:

  • Updated the @devtron-labs/devtron-fe-common-lib dependency to version 1.20.6-pre-46 in package.json.
  • Cleaned up navigation component code by removing unused imports and simplifying class names and attributes in NavItem.tsx. [1] [2] [3]
  • Removed unused import for AuditLog from navigation constants.

Fixes # (issue)

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?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

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

@sonarqubecloud
Copy link

arunjaindev and others added 26 commits November 25, 2025 17:22
chore: final backup with common update
…avigationList` function and `filterNavGroupAndItem` utility.
feat: Reimplement navigation component, remove legacy styles and types, and update feature visibility
…ionList` and remove redundant filtering from `Navigation.tsx`.
feat: Filter navigation groups and their sub-items
chore: Consolidate workflow creation buttons into a single method …
Copilot AI review requested due to automatic review settings December 12, 2025 07:10
@sonarqubecloud
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors the navigation and security center architecture by removing the "AI Recommendations" section and reorganizing security-related features. Key changes include adding "Runbook Automation" under "Automation & Enablement", restructuring the Security Center with new "Vulnerabilities" and "Security Enablement" sections, updating the common library dependency, and comprehensive code cleanup across navigation, security, and various UI components.

  • Removes "AI Recommendations" navigation group and related routes
  • Adds "Runbook Automation" navigation item and "Vulnerabilities" section in Security Center
  • Updates @devtron-labs/devtron-fe-common-lib from 1.20.6-pre-45 to 1.21.0-pre-2

Reviewed changes

Copilot reviewed 92 out of 96 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Navigation/constants.ts Removes AI Recommendations group, adds Runbook Automation item, restructures security navigation
Navigation/types.ts Simplifies navigation type definitions, removes unused properties
Navigation/Navigation.tsx Updates to use dynamic navigation list based on server mode
NavigationRoutes.tsx Removes AuditLog import, updates feature flags, adds AIRecommendations import
security/Security.tsx Replaces SecurityScansTab with VulnerabilitiesRouter
security/Vulnerabilities/* New vulnerability management components and services
security/SecurityScansTab/* Major refactoring to support scanned/not-scanned views
package.json Updates version and common library dependency
.env Renames feature flags for consistency
yarn.lock Updates dependency lockfile
Multiple component files UI improvements, component migrations (RadioGroup to SegmentedControl), styling updates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import { CVE_LIST_TABLE_COLUMNS } from './constants'
import CVETableWrapper from './CVEListTableWrapper'
import { getCVEList } from './service'
import { CVEDetails } from './types'
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

Unused import CVEDetails.

Copilot uses AI. Check for mistakes.
<div
data-testid="security-vulnerability-card"
className={`app-details-info-card flex left bg__primary br-8 mr-12 lh-20 w-200 ${cardLoading || scanResultError ? '' : 'pointer'}`}
className={`app-details-info-card flex left bg__primary br-8 lh-20 w-200 ${cardLoading || scanResultError ? '' : 'pointer'}`}
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

This use of variable 'cardLoading' always evaluates to false.

Copilot uses AI. Check for mistakes.
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.

6 participants