graphql / graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.
MIT License
16.13k stars 1.73k forks source link

[graphiql] Cant assign name for the tab #3608

Open Kowjako opened 6 months ago

Kowjako commented 6 months ago

Is there an existing issue for this?

Current Behavior

I cant change name when new tab is added

Expected Behavior

I want to give specific name for each newly added tab

Steps To Reproduce

  1. Go to graphiql example like this: https://graphql.github.io/swapi-graphql/?
  2. Add new tab using "+" button
  3. Try to change tab name

Environment

Anything else?

No response

peterldowns commented 6 months ago

Running into this on the github graphql explorer, would be really nice to be able to name my queries instead of seeing them all as <untitled>:

image

acao commented 6 months ago

that's not good at all... surprised e2e did not catch this, I will take a look

seeruk commented 4 months ago

It's because it's based on the name of the query in that tab, you have to give a name to the query:

image

It took me a few moments to figure this out when I first tried it out too...

mfulton26 commented 3 months ago

Using the name of the first query isn't a great experience when a tab contains multiple queries in. I also sometimes want to name the tab differently than the first query or leave the query unnamed.

acao commented 3 months ago

@mfulton26 agreed, it is not ideal, do you want to create a feature request?

mfulton26 commented 3 months ago

@mfulton26 agreed, it is not ideal, do you want to create a feature request?

I thought I did. It got marked as a duplicate of this issue: https://github.com/graphql/graphiql/issues/3406#issuecomment-2308288268