feat: enhance Jira dashboard with advanced filtering and sprint details
- Updated `TODO.md` to mark several tasks as complete, including anomaly detection and sprint detail integration. - Enhanced `VelocityChart` to support click events for sprint details, improving user interaction. - Added `FilterBar` and `AnomalyDetectionPanel` components to `JiraDashboardPageClient` for advanced filtering capabilities. - Implemented state management for selected sprints and modal display for detailed sprint information. - Introduced new types for advanced filtering in `types.ts`, expanding the filtering options available in the analytics.
This commit is contained in:
38
lib/types.ts
38
lib/types.ts
@@ -142,6 +142,13 @@ export interface JiraTask {
|
||||
issuetype: {
|
||||
name: string; // Story, Task, Bug, Epic, etc.
|
||||
};
|
||||
components?: Array<{
|
||||
name: string;
|
||||
}>;
|
||||
fixVersions?: Array<{
|
||||
name: string;
|
||||
description?: string;
|
||||
}>;
|
||||
duedate?: string;
|
||||
created: string;
|
||||
updated: string;
|
||||
@@ -215,6 +222,37 @@ export interface AssigneeWorkload {
|
||||
totalActive: number;
|
||||
}
|
||||
|
||||
// Types pour les filtres avancés
|
||||
export interface JiraAnalyticsFilters {
|
||||
components: string[];
|
||||
fixVersions: string[];
|
||||
issueTypes: string[];
|
||||
statuses: string[];
|
||||
assignees: string[];
|
||||
labels: string[];
|
||||
priorities: string[];
|
||||
dateRange?: {
|
||||
from: Date;
|
||||
to: Date;
|
||||
};
|
||||
}
|
||||
|
||||
export interface FilterOption {
|
||||
value: string;
|
||||
label: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface AvailableFilters {
|
||||
components: FilterOption[];
|
||||
fixVersions: FilterOption[];
|
||||
issueTypes: FilterOption[];
|
||||
statuses: FilterOption[];
|
||||
assignees: FilterOption[];
|
||||
labels: FilterOption[];
|
||||
priorities: FilterOption[];
|
||||
}
|
||||
|
||||
// Types pour l'API
|
||||
export interface ApiResponse<T> {
|
||||
data?: T;
|
||||
|
||||
Reference in New Issue
Block a user