Skip to content

[web-console] Brighten source-range highlight in profiler SQL view#6462

Merged
Karakatiza666 merged 1 commit into
mainfrom
issue6404
Jun 13, 2026
Merged

[web-console] Brighten source-range highlight in profiler SQL view#6462
Karakatiza666 merged 1 commit into
mainfrom
issue6404

Conversation

@Karakatiza666

Copy link
Copy Markdown
Contributor

There is existing functionality to navigate to SQL source position when double-clicking the profile diagram node, but the highlight was very faint. This PR makes the highlight color stand out, and has editor on the pipeline page match it
Testing: manual, added unit tests

Fix #6404

@mihaibudiu mihaibudiu 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.

Can navigation be done with single click?

@Karakatiza666

Copy link
Copy Markdown
Contributor Author

We discussed with Leonid that I'll revise the triggers for interaction (click/doubleclick etc.) as a separate issue

@mihaibudiu

Copy link
Copy Markdown
Contributor

We discussed with Leonid that I'll revise the triggers for interaction (click/doubleclick etc.) as a separate issue

How will users discover this? At least update the documentation I wrote about the profiler.

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM — clean approach, good tests.

@Karakatiza666 Karakatiza666 force-pushed the issue6404 branch 2 times, most recently from 6fc26dc to b07b1e6 Compare June 13, 2026 01:33
@Karakatiza666 Karakatiza666 enabled auto-merge June 13, 2026 01:33
@Karakatiza666 Karakatiza666 added this pull request to the merge queue Jun 13, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 13, 2026
Closes #6404. Clicking a node with a source position in the profiler diagram
calls Monaco's `setSelections` to highlight the matching SQL range, but the
editor is read-only and never focused, so Monaco rendered the selection with
its faint "inactive" colour (vs: #E5EBF1, vs-dark: #3A3D41) — the user could
barely tell anything had been selected.

Register the same `feldera-light` / `feldera-dark` Monaco themes the pipeline
editor (`CodeEditor.svelte`) already uses: they override
`editor.inactiveSelectionBackground` to a saturated blue with substantial
alpha. Defining the themes again here is safe — `monaco.editor.defineTheme`
is idempotent and the values match — and unit tests pin both halves of the
contract.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Karakatiza666 Karakatiza666 enabled auto-merge June 13, 2026 20:34
@Karakatiza666 Karakatiza666 added this pull request to the merge queue Jun 13, 2026
Merged via the queue into main with commit 3c8a458 Jun 13, 2026
1 check passed
@Karakatiza666 Karakatiza666 deleted the issue6404 branch June 13, 2026 22:07
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.

[profiler-ui] Profiler ui does not display source code position

3 participants