feat: Implement workspace-level cycle analytics#17
Open
pqhung3007 wants to merge 1 commit intopreviewfrom
Open
feat: Implement workspace-level cycle analytics#17pqhung3007 wants to merge 1 commit intopreviewfrom
pqhung3007 wants to merge 1 commit intopreviewfrom
Conversation
This commit adds comprehensive cycle analytics functionality for free users, following the same structure and UI patterns as work items analytics. Backend changes: - Added cycle analytics endpoints to workspace analytics API - Implemented get_cycle_stats() for top-level metrics (total, current, upcoming, completed cycles) - Implemented get_cycles_table_stats() for detailed cycle table data with work item counts - Implemented cycle_completion_chart() for bar chart showing completion percentage by cycle status - Added support for project filtering across all cycle analytics endpoints Frontend changes: - Updated analytics types to include "cycles" in TAnalyticsTabsBase and TAnalyticsGraphsBase - Added CycleInsightColumns interface for cycle table data - Added cycle insight fields to ANALYTICS_INSIGHTS_FIELDS constants - Created new cycle analytics components: * root.tsx - Main cycle analytics container * cycle-completion-chart.tsx - Bar chart showing completion % by cycle status with tooltips * cycles-insight-table.tsx - Searchable, exportable table with cycle details - Added "cycles" tab to analytics configuration Features: - Top section displays 4 key metrics: Total, Current, Upcoming, and Completed cycles - Bar chart visualizes completion percentage for each active cycle, color-coded by status: * Current cycles: Orange * Upcoming cycles: Blue * Completed cycles: Green * Draft cycles: Gray - Interactive tooltips on hover show cycle name, completion %, dates, and work item breakdown - Table section includes cycle name, lead, project, dates, and completion percentage - Full search and CSV export functionality - Project filter dropdown to filter analytics by specific projects This implementation provides free users with powerful cycle analytics capabilities previously only available in paid tiers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds comprehensive cycle analytics functionality for free users, following the same structure and UI patterns as work items analytics.
Backend changes:
Frontend changes:
Features:
This implementation provides free users with powerful cycle analytics capabilities previously only available in paid tiers.
Description
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
References