Skip to content

Comments

feat: implement projects analytics feature#2

Open
pqhung3007 wants to merge 1 commit intopreviewfrom
claude/implement-projects-analytics-01PDRyQQXUdskatodiCpgDeW
Open

feat: implement projects analytics feature#2
pqhung3007 wants to merge 1 commit intopreviewfrom
claude/implement-projects-analytics-01PDRyQQXUdskatodiCpgDeW

Conversation

@pqhung3007
Copy link
Owner

This commit adds a comprehensive projects analytics feature to the workspace analytics page.

Backend Changes:

  • Add status and health fields to Project model (draft, planning, execution, monitoring, completed, cancelled)
  • Add database migration for new Project fields (status, health)
  • Implement projects metrics endpoint (total, on-track, off-track, at-risk)
  • Implement projects status distribution chart endpoint
  • Implement projects table data endpoint with counts for members, epics, work items, cycles, modules, pages, views, and intake
  • Calculate completion percentage based on completed vs total work items

Frontend Changes:

  • Add "projects" tab to analytics page
  • Create Projects analytics root component
  • Create ProjectsStatusChart component showing projects by status (bar chart)
  • Create ProjectsInsightTable component with search and export functionality
  • Add projects constants and types for analytics
  • Update TypeScript types to include ProjectInsightColumns

Features:

  • Top section displays 4 metrics cards: Total Projects, On-Track, Off-Track, At-Risk
  • Bar chart shows projects by status (draft, planning, execution, monitoring, completed, cancelled)
  • Y-axis limited to 0-9 for optimal visualization
  • Table shows project details with colored completion percentage
  • Full search and CSV export support
  • Project filter dropdown in header (shared with other analytics tabs)

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

References

This commit adds a comprehensive projects analytics feature to the workspace analytics page.

Backend Changes:
- Add status and health fields to Project model (draft, planning, execution, monitoring, completed, cancelled)
- Add database migration for new Project fields (status, health)
- Implement projects metrics endpoint (total, on-track, off-track, at-risk)
- Implement projects status distribution chart endpoint
- Implement projects table data endpoint with counts for members, epics, work items, cycles, modules, pages, views, and intake
- Calculate completion percentage based on completed vs total work items

Frontend Changes:
- Add "projects" tab to analytics page
- Create Projects analytics root component
- Create ProjectsStatusChart component showing projects by status (bar chart)
- Create ProjectsInsightTable component with search and export functionality
- Add projects constants and types for analytics
- Update TypeScript types to include ProjectInsightColumns

Features:
- Top section displays 4 metrics cards: Total Projects, On-Track, Off-Track, At-Risk
- Bar chart shows projects by status (draft, planning, execution, monitoring, completed, cancelled)
- Y-axis limited to 0-9 for optimal visualization
- Table shows project details with colored completion percentage
- Full search and CSV export support
- Project filter dropdown in header (shared with other analytics tabs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants