Skip to content

Remove AI triage frontend call logic and cleanup AI look#1610

Merged
prathmeshpatel merged 1 commit intomainfrom
evals-ux-improves-5
Mar 16, 2026
Merged

Remove AI triage frontend call logic and cleanup AI look#1610
prathmeshpatel merged 1 commit intomainfrom
evals-ux-improves-5

Conversation

@prathmeshpatel
Copy link
Collaborator

@prathmeshpatel prathmeshpatel commented Mar 14, 2026

TL;DR

Replaced client-side OpenRouter AI triage with backend Convex mutation calls for eval suite failure analysis.

What changed?

  • Removed client-side AI triage logic including OpenRouter API calls, prompt building, and local storage token management
  • Replaced useCommitAiTriage and useOverviewAiTriage hooks with a single useCommitTriage hook that calls Convex backend mutations
  • Updated UI components to use the new backend-driven triage system with graceful fallbacks when mutations are unavailable
  • Changed AI triage panel styling from violet/purple theme to orange theme with new shimmer animation
  • Removed unused imports and triage context building functions
  • Updated failure tag styling from violet to blue for "new" classification

@chelojimenez
Copy link
Contributor

chelojimenez commented Mar 14, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@prathmeshpatel prathmeshpatel force-pushed the evals-ux-improves-5 branch 2 times, most recently from eec1488 to cffa855 Compare March 14, 2026 22:24
@prathmeshpatel prathmeshpatel marked this pull request as ready for review March 16, 2026 08:47
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Mar 16, 2026
@prathmeshpatel prathmeshpatel force-pushed the evals-ux-improves-5 branch 2 times, most recently from 7c2ec0a to bc79e76 Compare March 16, 2026 09:10
@prathmeshpatel prathmeshpatel force-pushed the evals-ux-improves-4 branch 2 times, most recently from 6a1d050 to a825d9b Compare March 16, 2026 09:11
Base automatically changed from evals-ux-improves-4 to main March 16, 2026 09:11
@prathmeshpatel prathmeshpatel merged commit 779c55e into main Mar 16, 2026
2 of 6 checks passed
@prathmeshpatel prathmeshpatel deleted the evals-ux-improves-5 branch March 16, 2026 09:12
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 16, 2026

Warning

Rate limit exceeded

@prathmeshpatel has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 31 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 666cfd2e-19eb-48e4-8d1e-257c551e12de

📥 Commits

Reviewing files that changed from the base of the PR and between 240eb9a and 16823f0.

📒 Files selected for processing (5)
  • mcpjam-inspector/client/src/components/evals/ai-insights.ts
  • mcpjam-inspector/client/src/components/evals/commit-detail-view.tsx
  • mcpjam-inspector/client/src/components/evals/overview-panel.tsx
  • mcpjam-inspector/client/src/components/evals/use-ai-triage.ts
  • mcpjam-inspector/client/src/index.css

Walkthrough

This pull request restructures AI triage functionality from a client-side context-generation model to a backend-driven mutation approach. Specifically: the ai-insights.ts module removes triage context interfaces and builder functions; commit-detail-view.tsx and overview-panel.tsx replace local context building with a new useCommitTriage hook that passes failed run IDs; use-ai-triage.ts replaces the monolithic useCommitAiTriage(ctx) hook with a leaner useCommitTriage(failedRunIds) hook backed by a Convex mutation; and index.css adds shimmer bar styling. The net effect redirects triage generation responsibility to the backend while simplifying the client-side API surface.

📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants