Skip to content

Use shared form controls in Query Builder - #4843

Merged
trevor-scheer merged 2 commits into
mainfrom
trevor/query-builder-primitives
Dec 5, 2026
Merged

trevor-scheer merged 2 commits into
mainfrom
trevor/query-builder-primitives

Conversation

@trevor-scheer

@trevor-scheer trevor-scheer commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

The field filter, scalar and enum argument editors, and fragment rename input each maintain their own field styles. They now use the compact Input and Select from #4840. Values and fragment names use the shared monospace variant. Query Builder keeps the surrounding layout, including the nested filter inset and spacing next to the variable toggle.

The argument group uses the pane background to keep the shared fields distinct.

Before After
Scalar and enum argument editors before the migration Scalar and enum argument editors after the migration
Filter in a nested field list before the migration Filter in a nested field list after the migration
Inline fragment rename before the migration Inline fragment rename after the migration

@changeset-bot

changeset-bot Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4280417

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphiql/plugin-query-builder Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@trevor-scheer
trevor-scheer marked this pull request as ready for review December 5, 2026 05:23
@trevor-scheer
trevor-scheer merged commit 00d2230 into main Dec 5, 2026
23 checks passed
@trevor-scheer
trevor-scheer deleted the trevor/query-builder-primitives branch December 5, 2026 05:23
@github-actions github-actions Bot mentioned this pull request Dec 5, 2026
trevor-scheer pushed a commit that referenced this pull request Dec 5, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## graphiql@6.1.0

### Minor Changes

- [#4778](#4778)
[`8185286`](8185286)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Add an
optional `portalContainer` prop to `GraphiQL` and `GraphiQLInterface`
for hosting dialogs, menus, and tooltips.

### Patch Changes

- [#4838](#4838)
[`a58698d`](a58698d)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use
GraphiQL's shared form styles in Collections. The save dialog and inline
editors now use the selected body font size.

- [#4779](#4779)
[`d5c1c60`](d5c1c60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use
consistent title typography and header spacing across dialogs, and align
the Settings title with its rows at every density.

- [#4785](#4785)
[`d7dbfa4`](d7dbfa4)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Handle
Cmd/Ctrl+K inside the focused GraphiQL instance so host apps can use the
shortcut elsewhere.

- [#4780](#4780)
[`b0abd60`](b0abd60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Give the
built-in sidebar panes a shared horizontal inset and remove duplicate
padding from their content.
- Updated dependencies
[[`a58698d`](a58698d),
[`d5c1c60`](d5c1c60),
[`d7dbfa4`](d7dbfa4),
[`3849a6c`](3849a6c),
[`bfc9670`](bfc9670),
[`00d2230`](00d2230),
[`781075e`](781075e),
[`b3d61cd`](b3d61cd),
[`a53c42a`](a53c42a),
[`b0abd60`](b0abd60),
[`c13ae89`](c13ae89),
[`982e4c8`](982e4c8),
[`f4871ef`](f4871ef),
[`b80272a`](b80272a)]:
  - @graphiql/react@1.1.0
  - @graphiql/plugin-collections@1.0.2
  - @graphiql/plugin-doc-explorer@1.0.2
  - @graphiql/plugin-history@1.0.2
  - @graphiql/plugin-query-builder@1.0.2
## @graphiql/react@1.1.0

### Minor Changes

- [#4844](#4844)
[`f4871ef`](f4871ef)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Add a
shared `SearchInput` with a search icon, optional hint, and visible
focus ring. The Documentation Explorer uses it for its schema search
fields.

- [#4840](#4840)
[`b80272a`](b80272a)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Add themed
`Input`, `Select`, and `Textarea` components with native props and refs.
Collections uses the new components for its save, rename, import, and
export fields.

### Patch Changes

- [#4838](#4838)
[`a58698d`](a58698d)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use
GraphiQL's shared form styles in Collections. The save dialog and inline
editors now use the selected body font size.

- [#4779](#4779)
[`d5c1c60`](d5c1c60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use
consistent title typography and header spacing across dialogs, and align
the Settings title with its rows at every density.

- [#4783](#4783)
[`bfc9670`](bfc9670)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Keep
showing the schema loading indicator when a superseded introspection
returns before the current request.

- [#4781](#4781)
[`781075e`](781075e)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Open
activity rail tooltips beside their buttons so the Settings label fits
when GraphiQL is embedded near the bottom of the viewport.

- [#4784](#4784)
[`a53c42a`](a53c42a)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Show the
active tab's last response in the response panel and status bar when
opening, switching, reordering, or closing tabs.

- [#4780](#4780)
[`b0abd60`](b0abd60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Give the
built-in sidebar panes a shared horizontal inset and remove duplicate
padding from their content.

- [#4786](#4786)
[`c13ae89`](c13ae89)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Scope
design tokens to GraphiQL and its portals so they do not override the
host application's CSS variables.
  
If you override GraphiQL tokens on `:root` or another ancestor, move
those overrides onto the GraphiQL container. You can target the
container with the `className` you pass to `GraphiQL`. If you render
overlays in a separate portal host, add `graphiql-theme` to the host
element and set the overlay overrides there.

- [#4777](#4777)
[`982e4c8`](982e4c8)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Scope
Monaco editor styles to the GraphiQL container so loading GraphiQL's
stylesheet preserves the appearance and layout of other editors on the
page.
## graphql-language-service-server@4.1.0

### Minor Changes

- [#4839](#4839)
[`d000e78`](d000e78)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Warn about
unquoted `#` characters in files loaded through
`graphql-config.dotEnvPath`. A future major version will treat an
unquoted `#` as the start of a comment. Quote values that contain a
literal `#`, for example `TOKEN="abc#def"`.
## @graphiql/plugin-code-exporter@6.0.1

### Patch Changes

- [#4842](#4842)
[`093186b`](093186b)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use
GraphiQL's shared sidebar header and pane inset in Code Exporter.
- Updated dependencies
[[`a58698d`](a58698d),
[`d5c1c60`](d5c1c60),
[`bfc9670`](bfc9670),
[`781075e`](781075e),
[`a53c42a`](a53c42a),
[`b0abd60`](b0abd60),
[`c13ae89`](c13ae89),
[`982e4c8`](982e4c8),
[`f4871ef`](f4871ef),
[`b80272a`](b80272a)]:
  - @graphiql/react@1.1.0
## @graphiql/plugin-collections@1.0.2

### Patch Changes

- [#4838](#4838)
[`a58698d`](a58698d)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use
GraphiQL's shared form styles in Collections. The save dialog and inline
editors now use the selected body font size.

- [#4780](#4780)
[`b0abd60`](b0abd60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Give the
built-in sidebar panes a shared horizontal inset and remove duplicate
padding from their content.

- [#4840](#4840)
[`b80272a`](b80272a)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Add themed
`Input`, `Select`, and `Textarea` components with native props and refs.
Collections uses the new components for its save, rename, import, and
export fields.
- Updated dependencies
[[`a58698d`](a58698d),
[`d5c1c60`](d5c1c60),
[`bfc9670`](bfc9670),
[`781075e`](781075e),
[`a53c42a`](a53c42a),
[`b0abd60`](b0abd60),
[`c13ae89`](c13ae89),
[`982e4c8`](982e4c8),
[`f4871ef`](f4871ef),
[`b80272a`](b80272a)]:
  - @graphiql/react@1.1.0
## @graphiql/plugin-doc-explorer@1.0.2

### Patch Changes

- [#4785](#4785)
[`d7dbfa4`](d7dbfa4)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Handle
Cmd/Ctrl+K inside the focused GraphiQL instance so host apps can use the
shortcut elsewhere.

- [#4782](#4782)
[`b3d61cd`](b3d61cd)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Prioritize
exact and prefix matches when limiting documentation search results so
partial matches on large schemas cannot hide more relevant types or
fields.

- [#4780](#4780)
[`b0abd60`](b0abd60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Give the
built-in sidebar panes a shared horizontal inset and remove duplicate
padding from their content.

- [#4844](#4844)
[`f4871ef`](f4871ef)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Add a
shared `SearchInput` with a search icon, optional hint, and visible
focus ring. The Documentation Explorer uses it for its schema search
fields.
- Updated dependencies
[[`a58698d`](a58698d),
[`d5c1c60`](d5c1c60),
[`bfc9670`](bfc9670),
[`781075e`](781075e),
[`a53c42a`](a53c42a),
[`b0abd60`](b0abd60),
[`c13ae89`](c13ae89),
[`982e4c8`](982e4c8),
[`f4871ef`](f4871ef),
[`b80272a`](b80272a)]:
  - @graphiql/react@1.1.0
## @graphiql/plugin-history@1.0.2

### Patch Changes

- [#4841](#4841)
[`3849a6c`](3849a6c)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use the
shared compact, monospace input for editing History labels.

- [#4780](#4780)
[`b0abd60`](b0abd60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Give the
built-in sidebar panes a shared horizontal inset and remove duplicate
padding from their content.
- Updated dependencies
[[`a58698d`](a58698d),
[`d5c1c60`](d5c1c60),
[`bfc9670`](bfc9670),
[`781075e`](781075e),
[`a53c42a`](a53c42a),
[`b0abd60`](b0abd60),
[`c13ae89`](c13ae89),
[`982e4c8`](982e4c8),
[`f4871ef`](f4871ef),
[`b80272a`](b80272a)]:
  - @graphiql/react@1.1.0
## @graphiql/plugin-query-builder@1.0.2

### Patch Changes

- [#4843](#4843)
[`00d2230`](00d2230)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Use the
shared GraphiQL form controls for field filters, scalar and enum
arguments, and fragment names in Query Builder.

- [#4780](#4780)
[`b0abd60`](b0abd60)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Give the
built-in sidebar panes a shared horizontal inset and remove duplicate
padding from their content.
- Updated dependencies
[[`a58698d`](a58698d),
[`d5c1c60`](d5c1c60),
[`bfc9670`](bfc9670),
[`781075e`](781075e),
[`a53c42a`](a53c42a),
[`b0abd60`](b0abd60),
[`c13ae89`](c13ae89),
[`982e4c8`](982e4c8),
[`f4871ef`](f4871ef),
[`b80272a`](b80272a)]:
  - @graphiql/react@1.1.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant