Skip to content

Conversation

Copy link

Copilot AI commented Dec 2, 2025

Adds a visual team health score indicator in the VS Code status bar showing color-coded health based on knowledge distribution and collaboration patterns.

Changes

  • New src/core/health-indicator.ts

    • HealthIndicator class managing status bar item at priority 50
    • Color-coded display: 🟢 healthy (≥70), 🟡 moderate (40-69), 🔴 needs attention (<40)
    • Health score calculation using weighted metrics:
      • Knowledge distribution (40%): Gini coefficient of contributions, single points of failure
      • Activity spread (30%): Recent activity percentage, workload balance
      • Collaboration (30%): Cross-team work, code review participation, knowledge sharing
    • Rich tooltip with score breakdown
    • Click handler showing detailed Quick Pick breakdown with action items
  • Updated src/extension.ts

    • Initialize and register HealthIndicator
    • Update indicator after analysis completes
    • Restore state from previous analysis on startup
  • Updated package.json

    • Register teamxray.showHealthDetails command

Usage

After running repository analysis, the status bar shows:

$(heart) 75    ← Green heart icon with score

Hovering displays breakdown; clicking opens detailed view with refresh/report actions.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add Team Health Score Status Bar Indicator</issue_title>
<issue_description>## Description
Add a visual team health score indicator in the VS Code status bar that shows a color-coded health score based on knowledge distribution and team collaboration patterns.

Acceptance Criteria

  • Create status bar item showing team health score
  • Color-coded indicator: 🟢 Green (healthy), 🟡 Yellow (moderate), 🔴 Red (needs attention)
  • Click to see detailed breakdown
  • Update automatically after analysis
  • Tooltip shows quick summary

Health Score Calculation

Consider factors like:

  • Knowledge distribution (bus factor)
  • Recent activity spread across team
  • Documentation coverage
  • Code review participation

Technical Notes

  • Use vscode.window.createStatusBarItem()
  • Position: StatusBarAlignment.Right
  • Priority: Lower than other items
  • Follow existing UI patterns in the extension

Files to Modify/Create

  • src/core/health-indicator.ts (new) - Health score logic
  • src/extension.ts - Register status bar item
  • src/types/ - Add health score types if needed

Demo Value

Demonstrates Copilot coding agent's ability to:

  • Create VS Code UI elements
  • Implement business logic/algorithms
  • Work with existing data structures
  • Add interactive components</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add team health score status bar indicator Add Team Health Score Status Bar Indicator Dec 2, 2025
Copilot finished work on behalf of AndreaGriffiths11 December 2, 2025 22:00
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.

Add Team Health Score Status Bar Indicator

2 participants