Skip to content

Conversation

@Elessar1802
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

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

Copilot AI review requested due to automatic review settings December 9, 2025 08:29
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

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 PR introduces a new Application Management Overview dashboard that consolidates key metrics and insights about applications, workflows, builds, and deployments. The feature provides at-a-glance summaries, workflow statistics, DORA metrics visualization, and pipeline trigger insights.

Key Changes:

  • Added comprehensive overview dashboard with multiple metric sections including projects, applications, environments, workflow statistics, DORA metrics, and build/deployment analytics
  • Implemented interactive charts and visualizations for tracking build/deployment triggers, average build times, and pipeline insights
  • Integrated new routing for the overview page into the application navigation structure

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/components/common/navigation/NavigationRoutes.tsx Added route configuration for the new Application Management Overview page
src/Pages-Devtron-2.0/ApplicationManagement/index.ts Exported ApplicationManagementOverview component for use in routing
src/Pages-Devtron-2.0/ApplicationManagement/Overview/types.ts Defined TypeScript interfaces and types for all overview components including metrics, DORA metrics, and pipeline insights
src/Pages-Devtron-2.0/ApplicationManagement/Overview/utils.ts Implemented utility functions for formatting metric values, parsing time units, and processing activity trends
src/Pages-Devtron-2.0/ApplicationManagement/Overview/styles.scss Added CSS styles for grid layouts and spacing for overview components
src/Pages-Devtron-2.0/ApplicationManagement/Overview/services.ts Created React Query hooks for fetching glance metrics, workflow overview, DORA metrics, and pipeline insights data
src/Pages-Devtron-2.0/ApplicationManagement/Overview/index.ts Exported Overview component as module entry point
src/Pages-Devtron-2.0/ApplicationManagement/Overview/constants.ts Defined configuration objects for metrics cards and default time window settings
src/Pages-Devtron-2.0/ApplicationManagement/Overview/WorkflowOverview.tsx Implemented workflow overview section displaying build pipelines, deployment pipelines, and GitOps compliance metrics
src/Pages-Devtron-2.0/ApplicationManagement/Overview/OverviewPageHeader.tsx Created page header component with breadcrumb navigation
src/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.tsx Main overview page component that orchestrates all dashboard sections
src/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.components.tsx Shared UI components including metric cards, loading states, empty states, and chart elements
src/Pages-Devtron-2.0/ApplicationManagement/Overview/Glance.tsx Implemented "At a Glance" section showing projects, applications, and environments count
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/utils.ts Utility function for determining badge variants based on DORA metric trends
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/types.ts Type definitions specific to build and deployment metrics components
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/tooltipUtils.tsx Implemented custom tooltip content generators for various chart types
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/index.ts Exported BuildDeploymentMetrics component
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/constants.ts Defined DORA metrics labels, colors, tooltip descriptions, and configuration values
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/TriggerBuildTimeChart.tsx Interactive chart component for visualizing build/deployment triggers and average build times
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/PipelineTriggerInsights.tsx Component showing most and least triggered pipelines with pagination and sorting
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/DoraMetrics.tsx Comprehensive DORA metrics dashboard with pie charts showing performance level distribution
src/Pages-Devtron-2.0/ApplicationManagement/Overview/BuildDeploymentMetrics/BuildDeploymentMetrics.tsx Container component organizing DORA metrics, trigger charts, and pipeline insights

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

Comment on lines +123 to +126
/**
* Indicates if a negative trend value is considered a positive factor
* @default false
*/
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

The JSDoc comment mentions "Indicates if a negative trend value is considered a positive factor" with a default value, but this property is not present in the DoraMetricsChartCardProps interface. This documentation appears to be orphaned or intended for a removed property.

Suggested change
/**
* Indicates if a negative trend value is considered a positive factor
* @default false
*/

Copilot uses AI. Check for mistakes.
const renderTotalBuildDeploymentChart = () => (
<div className="p-16 h-300">
<Chart
id={`${selectedChartTab}Chart"`}
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Extra closing quote in the chart ID string. Should be ${selectedChartTab}Chart instead of ${selectedChartTab}Chart".

Suggested change
id={`${selectedChartTab}Chart"`}
id={`${selectedChartTab}Chart`}

Copilot uses AI. Check for mistakes.
[PerformanceLevel.ELITE]: 'Mean lead time is less than 1 day',
[PerformanceLevel.HIGH]: 'Mean lead time is between 1 day & 1 week',
[PerformanceLevel.MEDIUM]: 'Mean lead time is between 1 week & 1 month',
[PerformanceLevel.LOW]: 'Mean lead time is between 1 day & 6 months',
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Inconsistency in the LOW performance level description. The message says "between 1 day & 6 months" but based on the pattern established by other metrics, this should likely be "between 1 month & 6 months" to be consistent with the range definitions.

Suggested change
[PerformanceLevel.LOW]: 'Mean lead time is between 1 day & 6 months',
[PerformanceLevel.LOW]: 'Mean lead time is between 1 month & 6 months',

Copilot uses AI. Check for mistakes.
Comment on lines +42 to +46
if (hours > 24) {
const days = Math.floor(hours / 24)
const remainingHours = hours % 24
return `${days}d ${remainingHours ? `${remainingHours}h` : ''}`.trim()
}
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

The condition if (hours > 24) means that exactly 24 hours will be displayed as "24h" rather than "1d". Consider changing this to if (hours >= 24) for consistency, so that 24 hours is displayed as "1d".

Copilot uses AI. Check for mistakes.
return (
<SectionEmptyState
title="DORA Metrics not available"
subtitle="No production deployments occured in the selected duration"
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Typo in comment: "occured" should be "occurred".

Suggested change
subtitle="No production deployments occured in the selected duration"
subtitle="No production deployments occurred in the selected duration"

Copilot uses AI. Check for mistakes.
}

return (
// Custom logic for height according to number of pipeliens, update when barThickness is added in chart
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Typo in comment: "pipeliens" should be "pipelines".

Suggested change
// Custom logic for height according to number of pipeliens, update when barThickness is added in chart
// Custom logic for height according to number of pipelines, update when barThickness is added in chart

Copilot uses AI. Check for mistakes.
const { tooltip } = args
const { dataPoints } = tooltip
const { parsed, label, dataIndex, dataset } = dataPoints[0]
const performaceLevel = getPerformanceLevelByLabel(label)
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Typo in variable name: "performaceLevel" should be "performanceLevel".

Copilot uses AI. Check for mistakes.
<span>
{percentage}% {`(${parsed})`} deployment pipelines
</span>
<span>{DORA_METRIC_TOOLTIP_FOOTERS[metricKey][performaceLevel]}</span>
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Typo in variable name: "performaceLevel" should be "performanceLevel".

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

PR:Issue-verification-failed PR:Issue-verification-failed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants