Skip to content

joshen/fe 4150 explorer query cells result display settings - #49003

Merged
joshenlim merged 5 commits into
masterfrom
joshen/fe-4150-explorer-query-cells-result-display-settings
Aug 13, 2026
Merged

joshenlim merged 5 commits into
masterfrom
joshen/fe-4150-explorer-query-cells-result-display-settings

Conversation

@joshenlim

@joshenlim joshenlim commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

Context

Related to Explorer / Notebooks - this adds chart functionality for the Query cells
image

Query results can be rendered as either bar or line chart - using the chart packages from ui-patterns
[NOTE]: For design team reviewers - am patching the chart packages to be agnostic to the timestamp property within the provided data set. Would love to use this component from a consistency POV instead of the old BarChart component we have.

Have intentionally omitted log scale functionality from this PR - will have that separately 🙏

image image

Summary by CodeRabbit

  • New Features

    • Added chart views for notebook query results, including bar and line charts.
    • Added display settings for selecting X/Y columns, chart type, scale, cumulative values, and label visibility.
    • Added configurable X-axis support for charts.
    • Display preferences are saved with each notebook cell.
  • Improvements

    • New database cells default to table view.
    • Chart results better handle varied data types.
    • Empty results and incomplete chart settings now display clear placeholders.

@joshenlim
joshenlim requested review from a team as code owners August 12, 2026 16:06
@vercel

vercel Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview Aug 13, 2026 3:03am
studio-staging Ready Ready Preview Aug 13, 2026 3:03am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 13, 2026 3:03am
design-system Skipped Skipped Aug 13, 2026 3:03am
docs Skipped Skipped Aug 13, 2026 3:03am
ui-library Skipped Skipped Aug 13, 2026 3:03am
zone-www-dot-com Skipped Skipped Aug 13, 2026 3:03am

Request Review

@supabase

supabase Bot commented Aug 12, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4c79e3c0-f989-445b-b620-dd530c455abd

📥 Commits

Reviewing files that changed from the base of the PR and between d38f38e and 5cd1687.

📒 Files selected for processing (6)
  • apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx
  • apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx
  • apps/studio/components/interfaces/Explorer/QueryCell/index.tsx
  • apps/studio/data/content/notebooks/notebook-schema.ts
  • apps/studio/lib/ai/tools/mock-tools.ts
  • apps/studio/state/notebooks/notebooks-state.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx
  • apps/studio/lib/ai/tools/mock-tools.ts
  • apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx
  • apps/studio/components/interfaces/Explorer/QueryCell/index.tsx
  • apps/studio/data/content/notebooks/notebook-schema.ts

📝 Walkthrough

Walkthrough

Notebook database cells now support persisted table and chart views. Chart settings control type, axes, scale, cumulative values, and labels. QueryCell selects the configured renderer, and shared bar and line charts support configurable X-axis fields.

Changes

Notebook query display

Layer / File(s) Summary
Display state and defaults
apps/studio/data/content/notebooks/notebook-schema.ts, apps/studio/components/interfaces/Explorer/hooks.ts, apps/studio/components/ui/QueryBlock/QueryBlock.utils.ts, apps/studio/tests/components/ui/QueryBlock/QueryBlock.utils.test.ts, apps/studio/lib/ai/tools/mock-tools.ts
Schemas and new-cell defaults define table or chart views and chart settings. Cumulative-result calculation accepts only the required Y-axis key. Tests and mock chart data use the updated configuration.
Configurable chart axes
packages/ui-patterns/src/Chart/charts/chart-bar.tsx, packages/ui-patterns/src/Chart/charts/chart-line.tsx
Bar and line charts support configurable X-axis fields and visibility. Timestamp formatting remains conditional on timestamp-based axes.
QueryCell display controls
apps/studio/components/interfaces/Explorer/QueryCell/*, apps/studio/components/interfaces/Explorer/QueryResultTable.tsx, apps/studio/state/notebooks/notebooks-state.ts
QueryCell renders table or chart results. DisplaySettingsButton persists view and chart selections. QueryResultChart transforms results, applies cumulative data, and handles incomplete chart configuration. Notebook state accepts snapshot cell values.

Estimated code review effort: 4 (Complex) | ~45 minutes

Mergeability Score: 🔵 Low · up to 5cd16

The PR adds chart display settings, but log-scale settings can still be configured or emitted even though charts render linearly, so affected notebook charts may silently ignore the selected scale. This is a bounded correctness issue requiring explicit owner follow-up, but it is not a broad merge blocker.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant DisplaySettingsButton
  participant NotebookState
  participant QueryCell
  participant QueryResultChart
  User->>DisplaySettingsButton: Select view and chart settings
  DisplaySettingsButton->>NotebookState: Replace matching database cell
  NotebookState-->>QueryCell: Provide updated cell snapshot
  QueryCell->>QueryResultChart: Render configured chart view
  QueryResultChart->>QueryResultChart: Map rows and apply cumulative results
Loading

Possibly related PRs

Suggested reviewers: awaseem, charislam

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the feature and includes screenshots, but it omits the required template sections and contribution confirmation. Use the required template and add the change type, current behavior, new behavior, additional context, and CONTRIBUTING.md confirmation.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Explorer query-cell result display settings change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch joshen/fe-4150-explorer-query-cells-result-display-settings

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.

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 53 seconds
commit  5cd1687

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@joshenlim

Copy link
Copy Markdown
Member Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 7

🧹 Nitpick comments (5)
apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx (1)

51-80: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider deriving the chart defaults from one shared constant.

onUpdateChartConfig repeats every default value ('bar', '', false, 'linear', false). DisplaySettingsButton repeats the same defaults at Lines 34-41, and apps/studio/components/interfaces/Explorer/hooks.ts sets the initial cell state. Export one DEFAULT_CHART_CONFIG from apps/studio/data/content/notebooks/notebook-schema.ts and reuse it in all three places.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx`
around lines 51 - 80, Export a shared DEFAULT_CHART_CONFIG from
notebook-schema.ts containing the chart defaults, then replace the inline
defaults in onUpdateChartConfig, DisplaySettingsButton’s existing
initialization, and the initial cell state in hooks.ts with that constant.
Preserve each location’s existing chart merge and override behavior.
apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx (1)

14-14: 🚀 Performance & Scalability | 🔵 Trivial | 💤 Low value

Log scale is still pending, and the cumulative result is computed even when it is unused.

Two notes:

  • Line 14 records the pending log scale work. DisplaySettingsButton already lets the user select Logarithmic.
  • cumulativeResults runs on every result change, including when cumulative is false.

Do you want me to open a new issue to track the log scale implementation?

Also applies to: 21-25

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx` at
line 14, Implement logarithmic chart scaling in QueryResultChart using
QueryBlock.tsx’s effectiveLogScale behavior, preserving the
DisplaySettingsButton Logarithmic selection. Update cumulativeResults
calculation so it only runs when cumulative is enabled, while retaining the
existing result-change behavior when cumulative is true.
apps/studio/components/interfaces/Explorer/QueryResultTable.tsx (1)

26-27: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

The note matches the co-location guideline.

QueryResultTable is used only by apps/studio/components/interfaces/Explorer/QueryCell/index.tsx, so moving it into the QueryCell folder follows the guideline. When you move it, update the importer directly and do not add a re-export shim.

Do you want me to open a new issue to track the move?

As per coding guidelines: "Co-locate sub-components with their parent and avoid barrel re-export files." and "When moving or extracting code, update every importer to the new module directly; do not leave backward-compatibility re-export shims."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/studio/components/interfaces/Explorer/QueryResultTable.tsx` around lines
26 - 27, Move the QueryResultTable component into the QueryCell folder to
co-locate it with its sole consumer, QueryCell/index.tsx. Update that importer
to reference the new module path directly, and do not add a re-export shim or
barrel file.

Source: Coding guidelines

packages/ui-patterns/src/Chart/charts/chart-bar.tsx (2)

203-213: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Both charts drop the x value from the tooltip for non-timestamp axes. The shared root cause is the labelFormatter fallback, which returns the literal string 'Value' instead of the hovered x value. The user then cannot tell which category the tooltip describes.

  • packages/ui-patterns/src/Chart/charts/chart-bar.tsx#L203-L213: return String(v) in the non-timestamp branch of labelFormatter.
  • packages/ui-patterns/src/Chart/charts/chart-line.tsx#L229-L235: apply the same change to the non-timestamp branch of labelFormatter.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui-patterns/src/Chart/charts/chart-bar.tsx` around lines 203 - 213,
Update the labelFormatter in packages/ui-patterns/src/Chart/charts/chart-bar.tsx
at lines 203-213 and packages/ui-patterns/src/Chart/charts/chart-line.tsx at
lines 229-235 so the non-timestamp branch returns String(v) instead of the
literal "Value"; preserve the existing timestamp formatting branch in both
charts.

118-129: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

The xAxisConfig block is duplicated across both chart components. Both files add the same twelve lines, including the xKey === 'timestamp' special cases elsewhere in each file. The two copies will drift.

  • packages/ui-patterns/src/Chart/charts/chart-bar.tsx#L118-L129: replace the inline object with a call to a shared getXAxisConfig({ xKey, showXAxis }) helper in the Chart package.
  • packages/ui-patterns/src/Chart/charts/chart-line.tsx#L135-L146: use the same shared helper.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui-patterns/src/Chart/charts/chart-bar.tsx` around lines 118 - 129,
Create a shared Chart-package helper named getXAxisConfig accepting xKey and
showXAxis, including the common configuration and xKey === 'timestamp' special
cases; replace the inline xAxisConfig objects in
packages/ui-patterns/src/Chart/charts/chart-bar.tsx lines 118-129 and
packages/ui-patterns/src/Chart/charts/chart-line.tsx lines 135-146 with calls to
that helper.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx`:
- Around line 94-99: Update the onValueChange handlers for the ToggleGroup
controls in DisplaySettingsButton to ignore empty-string values emitted when the
active option is deselected, returning without calling the view/type change
callbacks. Remove the blind TypeScript casts and only pass validated non-empty
values to onChangeView and the corresponding chart-type handler.
- Around line 169-184: Update the SelectValue placeholder in the scale control
within DisplaySettingsButton to describe scale selection rather than column
selection, and prevent users from choosing the unsupported logarithmic scale by
disabling its SelectItem (or removing the control) until QueryResultChart
applies scale. Preserve linear scale behavior and the existing
onUpdateChartConfig flow.
- Around line 43-49: Update onChangeView to restrict the mapped-cell update to
cells whose _tag is database_cell, matching the guard in onUpdateChartConfig.
Preserve unchanged cells and ensure the resulting cell retains its
discriminated-union type while only database cells receive the new view.

In `@apps/studio/components/interfaces/Explorer/QueryCell/index.tsx`:
- Around line 120-124: The disabled DisplaySettingsButton in the QueryCell
result-display flow needs to explain why it cannot be used. Preserve the
existing disabled condition, but apply the established apps/studio
disabled-button tooltip wrapper pattern around DisplaySettingsButton and show
“Run the query to configure the result display” while disabled instead of the
generic “Result settings” tooltip.

In `@apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx`:
- Around line 27-36: Update the result guard in the chart component to detect
failed queries where result exists but result.rows is undefined, and render the
same QueryError branch used by QueryResultTable before the chart render.
Preserve the existing NoDataPlaceholder behavior for missing results or
explicitly empty row arrays.
- Line 20: Normalize the selected x_column and y_column values from
QueryResult.rows to string or number before assigning resultToRender to ChartBar
and ChartLine. Update the data preparation near hasConfig and preserve the
existing chart rendering flow while ensuring no unknown values reach either
chart component.

In `@apps/studio/data/content/notebooks/notebook-schema.ts`:
- Line 54: Update the view field in notebookDomainSchema to provide a default
value when existing notebook content omits it, while preserving the current
table/chart enum validation for explicitly supplied values.

---

Nitpick comments:
In
`@apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx`:
- Around line 51-80: Export a shared DEFAULT_CHART_CONFIG from
notebook-schema.ts containing the chart defaults, then replace the inline
defaults in onUpdateChartConfig, DisplaySettingsButton’s existing
initialization, and the initial cell state in hooks.ts with that constant.
Preserve each location’s existing chart merge and override behavior.

In `@apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx`:
- Line 14: Implement logarithmic chart scaling in QueryResultChart using
QueryBlock.tsx’s effectiveLogScale behavior, preserving the
DisplaySettingsButton Logarithmic selection. Update cumulativeResults
calculation so it only runs when cumulative is enabled, while retaining the
existing result-change behavior when cumulative is true.

In `@apps/studio/components/interfaces/Explorer/QueryResultTable.tsx`:
- Around line 26-27: Move the QueryResultTable component into the QueryCell
folder to co-locate it with its sole consumer, QueryCell/index.tsx. Update that
importer to reference the new module path directly, and do not add a re-export
shim or barrel file.

In `@packages/ui-patterns/src/Chart/charts/chart-bar.tsx`:
- Around line 203-213: Update the labelFormatter in
packages/ui-patterns/src/Chart/charts/chart-bar.tsx at lines 203-213 and
packages/ui-patterns/src/Chart/charts/chart-line.tsx at lines 229-235 so the
non-timestamp branch returns String(v) instead of the literal "Value"; preserve
the existing timestamp formatting branch in both charts.
- Around line 118-129: Create a shared Chart-package helper named getXAxisConfig
accepting xKey and showXAxis, including the common configuration and xKey ===
'timestamp' special cases; replace the inline xAxisConfig objects in
packages/ui-patterns/src/Chart/charts/chart-bar.tsx lines 118-129 and
packages/ui-patterns/src/Chart/charts/chart-line.tsx lines 135-146 with calls to
that helper.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b4677173-d413-4290-8d9e-d3927583044d

📥 Commits

Reviewing files that changed from the base of the PR and between 9ded1c1 and 76c79e4.

📒 Files selected for processing (9)
  • apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx
  • apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx
  • apps/studio/components/interfaces/Explorer/QueryCell/index.tsx
  • apps/studio/components/interfaces/Explorer/QueryResultTable.tsx
  • apps/studio/components/interfaces/Explorer/hooks.ts
  • apps/studio/components/ui/QueryBlock/QueryBlock.utils.ts
  • apps/studio/data/content/notebooks/notebook-schema.ts
  • packages/ui-patterns/src/Chart/charts/chart-bar.tsx
  • packages/ui-patterns/src/Chart/charts/chart-line.tsx

const chartConfigSchema = z.object({
type: z.enum(['bar', 'line']),
x_column: z.string(),
y_column: z.string(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we going to support multiple series? In that case, we might want to make this an array.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh yes gotcha!

Base automatically changed from joshen/fe-4077-explorer-query-cells to master August 13, 2026 01:44
@joshenlim
joshenlim force-pushed the joshen/fe-4150-explorer-query-cells-result-display-settings branch from bc73831 to fd3a4ab Compare August 13, 2026 01:44
@joshenlim
joshenlim force-pushed the joshen/fe-4150-explorer-query-cells-result-display-settings branch from fd3a4ab to 0c73b78 Compare August 13, 2026 01:48

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx (1)

24-25: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use guideline-compliant local boolean names.

Preserve the serialized cumulative and show_labels field names, but alias them to isCumulative and showLabels when destructuring. Update the derived value and JSX props to use the aliases.

Proposed refactor
-  const { type, x_column, y_column, cumulative, show_labels } = chart ?? {}
+  const {
+    type,
+    x_column: xColumn,
+    y_column: yColumn,
+    cumulative: isCumulative,
+    show_labels: showLabels,
+  } = chart ?? {}

-  const hasConfig = !!x_column && !!y_column
+  const hasConfig = !!xColumn && !!yColumn

-    const xKey = x_column ?? ''
-    const yKey = y_column ?? ''
+    const xKey = xColumn ?? ''
+    const yKey = yColumn ?? ''

-  const resultToRender = cumulative ? cumulativeResults : chartRows
+  const resultToRender = isCumulative ? cumulativeResults : chartRows

-                xKey={x_column}
-                dataKey={y_column}
-                showXAxis={show_labels}
-                showYAxis={show_labels}
+                xKey={xColumn}
+                dataKey={yColumn}
+                showXAxis={showLabels}
+                showYAxis={showLabels}

As per coding guidelines, boolean names must begin with is, has, can, or should.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx`
around lines 24 - 25, In the QueryResultChart component, alias the serialized
chart fields cumulative and show_labels to the local booleans isCumulative and
showLabels during destructuring. Update the derived value and all JSX props that
currently reference cumulative or show_labels to use these aliases, while
preserving the serialized field names.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/studio/data/content/notebooks/notebook-schema.ts`:
- Around line 17-22: Restrict the scale field in the notebook schema to the
supported linear value by removing the log option from its z.enum definition.
Ensure the corresponding settings UI does not offer or persist log, leaving the
existing linear default and behavior unchanged.

---

Nitpick comments:
In `@apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx`:
- Around line 24-25: In the QueryResultChart component, alias the serialized
chart fields cumulative and show_labels to the local booleans isCumulative and
showLabels during destructuring. Update the derived value and all JSX props that
currently reference cumulative or show_labels to use these aliases, while
preserving the serialized field names.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a36eff67-f369-4c64-99e8-0406d3c39609

📥 Commits

Reviewing files that changed from the base of the PR and between 76c79e4 and fd3a4ab.

📒 Files selected for processing (5)
  • apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx
  • apps/studio/components/interfaces/Explorer/QueryCell/QueryResultChart.tsx
  • apps/studio/components/ui/QueryBlock/QueryBlock.utils.ts
  • apps/studio/data/content/notebooks/notebook-schema.ts
  • apps/studio/tests/components/ui/QueryBlock/QueryBlock.utils.test.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/studio/components/interfaces/Explorer/QueryCell/DisplaySettingsButton.tsx
  • apps/studio/components/ui/QueryBlock/QueryBlock.utils.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/studio/lib/ai/tools/mock-tools.ts`:
- Line 195: Change the scale value in the mock query-cell creation or
restoration flow to 'linear' instead of the unsupported 'log' value, preserving
the mock’s existing behavior otherwise.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 0535ba53-0c5f-494f-9ecb-687b8add1a31

📥 Commits

Reviewing files that changed from the base of the PR and between fd3a4ab and d38f38e.

📒 Files selected for processing (1)
  • apps/studio/lib/ai/tools/mock-tools.ts

Comment thread apps/studio/lib/ai/tools/mock-tools.ts Resolved
@joshenlim
joshenlim merged commit d434c63 into master Aug 13, 2026
39 checks passed
@joshenlim
joshenlim deleted the joshen/fe-4150-explorer-query-cells-result-display-settings branch August 13, 2026 03:09
@github-actions

github-actions Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1786590792)

Score Average Improvements Regressions
Completeness 68.4% (-32pp) - 16 🔴
Conciseness 54.2% (+13pp) 16 🟢 7 🔴
Docs Faithfulness 63.5% (0pp) 5 🟢 7 🔴
Goal Completion 54.2% (-28.000000000000004pp) 2 🟢 19 🔴
Knowledge Usage 89.7% (-8pp) - 2 🔴
Tool Usage 75% (-2pp) 1 🟢 2 🔴
Correctness 50% (-25pp) 2 🟢 7 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 97.6% (+2pp) 1 🟢 1 🔴
Time_to_first_token 5.87tok (+0.91tok) 8 🟢 24 🔴
Llm_calls 6.92 (-0.68) 7 🟢 23 🔴
Tool_calls 2.58 (-0.17) 8 🟢 16 🔴
Errors 0.06 (+0.06) - 1 🔴
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24518.4tok (+2325.44tok) 13 🟢 19 🔴
Prompt_cached_tokens 9285.33tok (-336tok) 10 🟢 18 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 560.64tok (-1.06tok) 20 🟢 12 🔴
Completion_reasoning_tokens 98.52tok (+11.03tok) 17 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25079.03tok (+2324.38tok) 13 🟢 19 🔴
Estimated_cost 0$ (+0$) 7 🟢 22 🔴
Duration 23.79s (+2.72s) 8 🟢 24 🔴
Llm_duration 15.74s (-0.26s) 16 🟢 16 🔴

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.

3 participants