Skip to content

Conversation

@areibman
Copy link
Owner

@areibman areibman commented Oct 10, 2025

Add a "High Scores" tab to provide engineering managers with key performance metrics for both human and AI agent contributors.

This tab includes team performance metrics (e.g., merge rate, average merge time, code velocity), a dedicated section for AI agent performance (PRs raised vs. merged), and a leaderboard for top contributors.


Open in Cursor Open in Web

Fixes #170

Co-authored-by: meta.alex.r <meta.alex.r@gmail.com>
@cursor
Copy link

cursor bot commented Oct 10, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@areibman areibman marked this pull request as ready for review October 19, 2025 05:29
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +5 to +7
import { Trophy, TrendingUp, Clock, GitPullRequest, Code, Users, Bot, CheckCircle2, XCircle, GitMerge } from "lucide-react";
import { cn } from "../utils/cn";
import { getAgentFromBranch } from "../utils/prUtils";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Import undefined getAgentFromBranch utility

The new view imports getAgentFromBranch from ../utils/prUtils, but that module does not export such a function anywhere in the repository. TypeScript will fail to compile with “Module '../utils/prUtils' has no exported member 'getAgentFromBranch'”, so the High Scores tab cannot build or render until either the helper is implemented or the import is removed.

Useful? React with 👍 / 👎.

Comment on lines +1 to +5
import { useState, useEffect, useMemo } from "react";
import { useUIStore } from "../stores/uiStore";
import { usePRStore } from "../stores/prStore";
import { useIssueStore } from "../stores/issueStore";
import { Trophy, TrendingUp, Clock, GitPullRequest, Code, Users, Bot, CheckCircle2, XCircle, GitMerge } from "lucide-react";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Remove unused icons and hooks to satisfy noUnusedLocals

useEffect, GitPullRequest, CheckCircle2, and XCircle are imported but never referenced in the component. With noUnusedLocals enabled in tsconfig.json, these unused imports cause the TypeScript build to fail immediately. Drop the unused imports or wire them up so the codebase continues to compile.

Useful? React with 👍 / 👎.

Comment on lines +45 to +50
export default function HighScoresView() {
const { theme } = useUIStore();
const { pullRequests, repositories } = usePRStore();
const { issues } = useIssueStore();
const [selectedTimeRange, setSelectedTimeRange] = useState<"week" | "month" | "quarter" | "all">("month");
const [loading, setLoading] = useState(false);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Eliminate unused store data and loading state

The component destructures repositories from usePRStore, issues from useIssueStore, and declares a [loading, setLoading] state, but none of these values are used anywhere in the view. Because the project compiles with noUnusedLocals, these unused variables will trigger compile‑time errors and prevent the application from building. Remove the unused destructuring and state, or integrate them into the UI.

Useful? React with 👍 / 👎.

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.

Create a high scores agent tab

3 participants