Open
Conversation
Implemented comprehensive user analytics feature with both frontend and backend components: Backend Changes: - Added user analytics endpoints to AdvanceAnalyticsEndpoint for metrics (total users, admins, members, guests) - Created get_user_work_items_stats() method to retrieve per-user work item statistics - Added support for project filtering in user analytics queries - Integrated user-analytics tab support in existing analytics endpoints Frontend Changes: - Created UserAnalytics component with three sections: 1. Metrics cards showing total users by role (admins, members, guests) 2. Stacked bar chart displaying resolved vs pending work items per active user 3. Data table with search and CSV export functionality - Added custom tooltip for bar chart showing user details (name, avatar, role, work item counts) - Implemented UserAnalyticsTable with columns for member name, started, unstarted, and completed work items - Added user-analytics tab to analytics navigation Type & Constants Updates: - Extended TAnalyticsTabsBase and TAnalyticsGraphsBase types to include "user-analytics" - Added UserAnalyticsColumns interface for type safety - Added user-analytics fields to ANALYTICS_INSIGHTS_FIELDS constants Features: - Project filtering (single or multiple) in header dropdown - Search functionality in user details table - Export to CSV capability - Responsive stacked bar chart with green (resolved) and gray (pending) colors - Detailed tooltips showing nested pending states (started, unstarted, backlog)
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.
Implemented comprehensive user analytics feature with both frontend and backend components:
Backend Changes:
Frontend Changes:
Type & Constants Updates:
Features:
Description
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
References