Skip to content

Hide AI triage panel when unavailable and prevent auto-requests#1611

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

Hide AI triage panel when unavailable and prevent auto-requests#1611
prathmeshpatel merged 1 commit intomainfrom
evals-ux-improves-6

Conversation

@prathmeshpatel
Copy link
Collaborator

@prathmeshpatel prathmeshpatel commented Mar 14, 2026

TL;DR

Added proper handling for unavailable AI triage functionality to prevent auto-requests and hide UI panels when the backend mutation doesn't exist.

What changed?

  • Added unavailable state to the useCommitTriage hook that gets set when the triage mutation is not registered
  • Modified auto-request logic in both commit detail and overview panels to skip requests when unavailable is true
  • Updated AI triage panel visibility conditions to hide panels when triage is unavailable
  • Changed the "Needs Attention" section to only render when there are actual failures instead of always showing with "All clear" state
  • Enhanced state reset logic to preserve the unavailable flag across navigation

@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 changed the title better Hide AI triage panel when unavailable and prevent auto-requests Mar 14, 2026
@railway-app railway-app bot temporarily deployed to triumphant-alignment / staging-prathmesh March 14, 2026 07:30 Inactive
@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:L This PR changes 100-499 lines, ignoring generated files. label Mar 16, 2026
@prathmeshpatel prathmeshpatel force-pushed the evals-ux-improves-5 branch 2 times, most recently from 3421fa3 to 7c2ec0a Compare March 16, 2026 09:09
@prathmeshpatel prathmeshpatel force-pushed the evals-ux-improves-6 branch 2 times, most recently from 5f1dbd2 to 6f74f89 Compare March 16, 2026 09:11
Base automatically changed from evals-ux-improves-5 to main March 16, 2026 09:12
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 16, 2026
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Mar 16, 2026
@prathmeshpatel prathmeshpatel merged commit a81e459 into main Mar 16, 2026
3 of 6 checks passed
@prathmeshpatel prathmeshpatel deleted the evals-ux-improves-6 branch March 16, 2026 09:12
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 16, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 96e8197b-74ee-4056-b034-12a24e929638

📥 Commits

Reviewing files that changed from the base of the PR and between 779c55e and f97123d.

📒 Files selected for processing (3)
  • 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

Walkthrough

The change adds runtime availability detection for the AI triage feature: useCommitTriage now returns an unavailable boolean indicating whether the backend Convex mutation exists. Commit detail and overview panels use this flag to avoid requesting or rendering triage when unavailable. The overview panel also refactors the Failure Feed to render only when failures exist and presents per-entry inline tags, CI metadata, pass/fail summaries, and a simplified collapsible layout.

📝 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:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants