feat: enhance metrics dashboard with new components and data handling
- Introduced `MetricsOverview`, `MetricsMainCharts`, `MetricsDistributionCharts`, `MetricsVelocitySection`, and `MetricsProductivitySection` for improved metrics visualization. - Updated `MetricsTab` to integrate new components and streamline data presentation. - Added compatibility fields in `JiraTask` and `AssigneeDistribution` for better data handling. - Refactored `calculateAssigneeDistribution` to include a count for total issues. - Enhanced `JiraAnalyticsService` and `JiraAdvancedFiltersService` to support new metrics calculations. - Cleaned up unused imports and components for a more maintainable codebase.
This commit is contained in:
@@ -144,6 +144,9 @@ export interface JiraTask {
|
||||
issuetype: {
|
||||
name: string; // Story, Task, Bug, Epic, etc.
|
||||
};
|
||||
issueType?: {
|
||||
name: string; // Alias pour compatibilité
|
||||
};
|
||||
components?: Array<{
|
||||
name: string;
|
||||
}>;
|
||||
@@ -155,6 +158,7 @@ export interface JiraTask {
|
||||
created: string;
|
||||
updated: string;
|
||||
labels: string[];
|
||||
storyPoints?: number; // Ajout pour les story points
|
||||
}
|
||||
|
||||
// Types pour l'analytics Jira
|
||||
@@ -191,6 +195,7 @@ export interface AssigneeDistribution {
|
||||
completedIssues: number;
|
||||
inProgressIssues: number;
|
||||
percentage: number;
|
||||
count: number; // Ajout pour compatibilité
|
||||
}
|
||||
|
||||
export interface SprintVelocity {
|
||||
@@ -200,6 +205,7 @@ export interface SprintVelocity {
|
||||
completedPoints: number;
|
||||
plannedPoints: number;
|
||||
completionRate: number;
|
||||
velocity: number; // Ajout pour compatibilité
|
||||
}
|
||||
|
||||
export interface CycleTimeByType {
|
||||
|
||||
Reference in New Issue
Block a user