Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Headers Editor to GraphiQL #1543

Merged
merged 29 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b6539d9
Add a header editor to the GraphiQL Interface.
connorshea May 21, 2020
d8acb7d
Move the header and variable editors into tabs.
connorshea May 22, 2020
7521185
Include header contents in prettification and history.
connorshea May 22, 2020
6a25678
Pass headers as a parameter to the fetcher.
connorshea May 22, 2020
c0e68da
Fix a linting error.
connorshea May 22, 2020
2dcd46d
Rename "Query Headers" tab to "Request Headers".
connorshea May 22, 2020
9f29e6a
Add the old variable editor CSS class again.
connorshea May 22, 2020
e7cfcab
Rename extra editor to secondary editor.
connorshea May 22, 2020
7679ddf
Bring back defaultVariableEditorOpen prop, bring back variable classes.
connorshea May 22, 2020
a4cc907
Trigger edit headers on first render.
connorshea May 23, 2020
6c98764
Toggle the display of the editors rather than removing them entirely.
connorshea May 23, 2020
40c29b5
Cursed fix for the gutter getting squashed when both editors were sid…
connorshea May 23, 2020
de470ae
Open the secondary editor when clicking on either of the editor tab n…
connorshea May 23, 2020
2e54fb9
Add headerEditorEnabled prop for enabling/disabling the header editor.
connorshea May 23, 2020
ea990e1
Remove unnecessary props from GraphiQLProps.
connorshea May 23, 2020
dd0cbca
Update GraphiQL README with new props for the header editor.
connorshea May 23, 2020
403e9d0
Add header submission to renderExample.js.
connorshea May 23, 2020
1ef963f
Enable variable editor by default if neither tab is set as active.
connorshea May 23, 2020
a01dc1a
Appease the linters.
connorshea May 23, 2020
3a67fa6
Update GraphiQL tests with mock headers and fix a bug in history.
connorshea May 23, 2020
0fe587a
Add a test for the history queue saving when changing headers.
connorshea May 23, 2020
5e5ee11
Fix a test that depended on a specific ID.
connorshea May 23, 2020
d9a5118
chore: fix linter errors
connorshea May 23, 2020
a9c9bd5
Merge branch 'master' into add-headers-editor
acao May 27, 2020
4c1c747
fix: change the second argument to opts so it can be expanded later
connorshea May 27, 2020
d771071
fix: headers needs to actually be defined
connorshea May 27, 2020
f699127
improvement: change the active/inactive tabs to grey and black
connorshea May 27, 2020
6ebabc8
fix: pass the headers as part of an object
connorshea May 27, 2020
ff8b7d9
improvement: set the enableHeaderEditor prop to false by default
connorshea May 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading