Team Analytics

⚠️
**Important Note**: Organizations and Teams features are currently in active development. You may encounter some work-in-progress UI or experimental functionality as we refine these features for a mature production release.

Measure your team’s performance with deep insights and metrics.

Available Metrics

Core Metrics

Team Members

Total number of active team members. Updated automatically when members join or leave.

Repositories

Number of connected repositories your team has access to.

Pull Requests Reviewed

Total PRs that have been analyzed by Mesrai’s AI reviewer.

Comments Generated

Total AI-generated review comments across all PRs.

Efficiency Metrics

The analytics dashboard calculates efficiency indicators:

  • Average Comments per PR: Feedback density across reviews
  • PRs per Member: Individual contribution tracking
  • Review Velocity: PRs reviewed per day/week

Viewing Analytics

  1. Go to Teams in your dashboard
  2. Hover over a team card
  3. Click the Analytics icon
  4. View real-time metrics

Recalculating Analytics

If you notice discrepancies, you can manually recalculate:

  1. Click the “Recalculate” button in the analytics page
  2. Wait for the recalculation to complete
  3. Refresh the page to see updated metrics

Understanding the Dashboard

Metrics Grid

The analytics page displays metrics in an organized grid:

MetricDescriptionPurpose
Member CountActive team membersTeam size tracking
Repository CountConnected reposScope of coverage
PRs ReviewedTotal analyzed PRsActivity volume
Comments GeneratedAI review commentsFeedback quantity

Activity Timeline

View team activity over time:

  • Daily PR review counts
  • Peak usage periods
  • Member contribution patterns
  • Weekly trends

Performance Indicators

Key performance indicators (KPIs) help assess team efficiency:

  • Review Velocity: PRs reviewed per day
  • Comment Density: Average comments per PR
  • Member Productivity: PRs per member

Exporting Analytics

Export team analytics for reporting:

  1. Click “Export” button
  2. Select date range
  3. Choose format (CSV, JSON, or PDF)
  4. Download report

Export Formats

CSV Export

Comma-separated values for spreadsheet analysis:

Date,PRs Reviewed,Comments,Members
2025-01-01,45,234,8
2025-01-02,52,287,8

JSON Export

Structured data for analysis:

{
  "team": "Engineering",
  "period": "2025-01",
  "metrics": {
    "prsReviewed": 450,
    "comments": 2340
  }
}

Setting Up Alerts

Configure alerts for metric thresholds:

  1. Go to Team Settings → Alerts
  2. Set threshold values
  3. Choose notification channels (email, Slack)
  4. Save alert configuration

Alert Examples

Low Activity Alert

  • Trigger: Less than 10 PRs reviewed in 7 days
  • Action: Email notification to team owner

High Volume Alert

  • Trigger: More than 100 PRs in a day
  • Action: Slack notification to team channel

Analytics Best Practices

1. Regular Monitoring

Check analytics weekly to track:

  • Team productivity trends
  • Review activity patterns
  • Potential bottlenecks

2. Set Baselines

Establish baseline metrics for:

  • Expected PRs per week
  • Target comment density
  • Review velocity goals

3. Review Anomalies

Investigate unusual patterns:

  • Drop in PR reviews
  • Unusual activity spikes
  • Member inactivity

4. Share with Team

Use analytics to:

  • Celebrate milestones
  • Identify improvement areas
  • Track progress over time

Troubleshooting

Metrics Not Updating

Problem: Analytics showing stale data

Solutions:

  1. Refresh the page
  2. Click “Recalculate Analytics”
  3. Check webhook status
  4. Verify repository connections

Missing PR Data

Problem: Some PRs not showing in analytics

Solutions:

  1. Verify PR was reviewed by Mesrai
  2. Check date range filters
  3. Ensure repository is connected
  4. Refresh analytics data

Next Steps