Skip to content

fix: DR-8128 Fix query insights page issues#7815

Merged
carlagn merged 2 commits intomainfrom
fix/DR-8128-query-insights-issues
Apr 22, 2026
Merged

fix: DR-8128 Fix query insights page issues#7815
carlagn merged 2 commits intomainfrom
fix/DR-8128-query-insights-issues

Conversation

@carlagn
Copy link
Copy Markdown
Contributor

@carlagn carlagn commented Apr 22, 2026

  • Remove graphs from query insights page
  • Update og image

Summary by CodeRabbit

  • Chores
    • Updated the Open Graph image used for social sharing on the Query Insights page.
    • Temporarily disabled the latency visualization (latency cards, charts and table) on the Query Insights page while keeping the features section visible.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Apr 22, 2026 10:36am
docs Ready Ready Preview, Comment Apr 22, 2026 10:36am
eclipse Ready Ready Preview, Comment Apr 22, 2026 10:36am
site Ready Ready Preview, Comment Apr 22, 2026 10:36am

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 22, 2026

Walkthrough

Changed the Open Graph image path in the query-insights page, removed several unused imports, and disabled the latency/features visualization block by wrapping it in a JSX comment while leaving the following features content intact.

Changes

Cohort / File(s) Summary
Query Insights Page Metadata, Imports & Rendering
apps/site/src/app/query-insights/page.tsx
Updated OG image URL from /og-images/og-query-insights.png to /og/og-query-insights.png; removed unused React, Badge, Card, and QueryInsightsBars/QueryInsightsLine/QueryInsightsTable imports (retained Button); wrapped the latency/features visualization JSX block in a comment to disable rendering and adjusted surrounding whitespace.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes: removing query visualization components and updating the OG image path, matching the PR objectives.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Apr 22, 2026, 10:42 AM

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
apps/site/src/app/query-insights/page.tsx (1)

87-130: Prefer deleting the latency section instead of leaving it commented out.

Keeping this entire block as JSX comments makes the page harder to maintain and invites stale code drift. If this is intentionally disabled, removing it (or guarding with a clear feature flag) is cleaner.

Suggested cleanup direction
-      {/*
-      <div className="relative my-12!">
-        ...
-      </div>
-       */}
+      {/* Latency visualization removed per DR-8128 */}
-import {
-  QueryInsightsBars,
-  QueryInsightsLine,
-  QueryInsightsTable,
-} from "../../components/query-insights";
+// remove query insights chart imports if no longer rendered
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/site/src/app/query-insights/page.tsx` around lines 87 - 130, Remove the
large commented-out JSX block in page.tsx that contains the latency UI (the two
Card blocks and the QueryInsightsBars, QueryInsightsLine, and QueryInsightsTable
components); either delete it entirely to avoid stale code or reintroduce it
behind a clear feature flag/prop (e.g., isLatencyEnabled) and conditionally
render the Cards and QueryInsights* components instead of leaving them
commented. Ensure any imports for QueryInsightsBars, QueryInsightsLine, and
QueryInsightsTable are removed if you delete the block, or kept/updated if you
implement the feature flag.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@apps/site/src/app/query-insights/page.tsx`:
- Around line 87-130: Remove the large commented-out JSX block in page.tsx that
contains the latency UI (the two Card blocks and the QueryInsightsBars,
QueryInsightsLine, and QueryInsightsTable components); either delete it entirely
to avoid stale code or reintroduce it behind a clear feature flag/prop (e.g.,
isLatencyEnabled) and conditionally render the Cards and QueryInsights*
components instead of leaving them commented. Ensure any imports for
QueryInsightsBars, QueryInsightsLine, and QueryInsightsTable are removed if you
delete the block, or kept/updated if you implement the feature flag.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2b3d0176-9c3f-4029-87cc-8b4d0a871268

📥 Commits

Reviewing files that changed from the base of the PR and between 894b7f9 and 8814814.

⛔ Files ignored due to path filters (1)
  • apps/site/public/og/og-query-insights.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/site/src/app/query-insights/page.tsx

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
apps/site/src/app/query-insights/page.tsx (1)

80-123: Prefer deleting the disabled JSX block instead of parking it in comments.

At Line 80 and Line 123, this achieves the behavior change, but retaining a large commented section invites drift and makes future edits noisier. If this is temporary, gate it explicitly; otherwise remove it.

Proposed cleanup
-      {/*
-      <div className="relative my-12!">
-        ...
-      </div>
-       */}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/site/src/app/query-insights/page.tsx` around lines 80 - 123, Remove the
large commented-out JSX block in page.tsx that contains the two Card components
and the QueryInsightsBars, QueryInsightsLine and QueryInsightsTable usage; if
this UI is still needed temporarily, instead gate rendering behind a feature
flag or a boolean prop (e.g., showQueryInsights) and render the JSX
conditionally rather than leaving it commented out. Locate the commented block
surrounding the Card + QueryInsightsBars/QueryInsightsLine/QueryInsightsTable
markup and either delete it or replace it with a conditional render using the
chosen feature flag/state.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@apps/site/src/app/query-insights/page.tsx`:
- Around line 80-123: Remove the large commented-out JSX block in page.tsx that
contains the two Card components and the QueryInsightsBars, QueryInsightsLine
and QueryInsightsTable usage; if this UI is still needed temporarily, instead
gate rendering behind a feature flag or a boolean prop (e.g., showQueryInsights)
and render the JSX conditionally rather than leaving it commented out. Locate
the commented block surrounding the Card +
QueryInsightsBars/QueryInsightsLine/QueryInsightsTable markup and either delete
it or replace it with a conditional render using the chosen feature flag/state.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 25c967f5-bf39-4939-ad15-67b903bcbbf2

📥 Commits

Reviewing files that changed from the base of the PR and between 8814814 and dfd5659.

📒 Files selected for processing (1)
  • apps/site/src/app/query-insights/page.tsx

@carlagn carlagn merged commit 6989f43 into main Apr 22, 2026
15 of 16 checks passed
@carlagn carlagn deleted the fix/DR-8128-query-insights-issues branch April 22, 2026 13:03
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.

2 participants