Skip to content

CONSOLE-1958: Operation picker (when multiple exists in document)#7963

Merged
mskorokhodov merged 6 commits intomainfrom
enhancement/lab-select-operation
Apr 15, 2026
Merged

CONSOLE-1958: Operation picker (when multiple exists in document)#7963
mskorokhodov merged 6 commits intomainfrom
enhancement/lab-select-operation

Conversation

@mskorokhodov
Copy link
Copy Markdown
Collaborator

@mskorokhodov mskorokhodov commented Apr 9, 2026

Background

Description

Implemented functionality that allows to have multiple queries in same operation while working only with focused one (run button, query builder)

Screen.Recording.2026-04-10.at.12.24.36.mov

Checklist

  • Input validation
  • Output encoding
  • Authentication management
  • Session management
  • Access control
  • Cryptographic practices
  • Error handling and logging
  • Data protection
  • Communication security
  • System configuration
  • Database security
  • File management
  • Memory management
  • Testing

@mskorokhodov mskorokhodov marked this pull request as draft April 9, 2026 12:40
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-hive/laboratory 0.1.4-alpha-20260415092823-cf8e482445d0831b6d1ddd973628b90bacb0708e npm ↗︎ unpkg ↗︎
@graphql-hive/render-laboratory 0.1.4-alpha-20260415092823-cf8e482445d0831b6d1ddd973628b90bacb0708e npm ↗︎ unpkg ↗︎
hive 11.0.3-alpha-20260415092823-cf8e482445d0831b6d1ddd973628b90bacb0708e npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tag: cf8e482445d0831b6d1ddd973628b90bacb0708e

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces functionality to highlight the active GraphQL operation in the Monaco editor and to include the selected operation name in GraphQL requests. It parses the GraphQL query, identifies the operation definition at the cursor, applies CSS decorations to "inactive" lines, and exposes a callback for the operation name. A critical issue was identified regarding a memory leak in the editor's decoration handling due to event listeners not being properly disposed of, with a suggested fix provided.

Comment thread packages/libraries/laboratory/src/components/laboratory/editor.tsx Outdated
@mskorokhodov mskorokhodov force-pushed the enhancement/lab-select-operation branch from 7408a9a to f76b6b0 Compare April 10, 2026 10:20
@mskorokhodov mskorokhodov force-pushed the enhancement/lab-select-operation branch from f76b6b0 to ad5adff Compare April 10, 2026 10:26
@mskorokhodov mskorokhodov force-pushed the enhancement/lab-select-operation branch from 40a0a3b to c0f49ff Compare April 14, 2026 16:56
@mskorokhodov mskorokhodov marked this pull request as ready for review April 14, 2026 18:04
@mskorokhodov mskorokhodov requested a review from n1ru4l April 15, 2026 09:27
Copy link
Copy Markdown
Contributor

@n1ru4l n1ru4l left a comment

Choose a reason for hiding this comment

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

Legit

@mskorokhodov mskorokhodov merged commit 4a8bd4f into main Apr 15, 2026
24 checks passed
@mskorokhodov mskorokhodov deleted the enhancement/lab-select-operation branch April 15, 2026 11:39
This was referenced Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants