hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.03k stars 2.76k forks source link

v3-console: Explorer sidebar supergraph collapse button unclear behavior #10409

Open savanipoojan78 opened 1 month ago

savanipoojan78 commented 1 month ago

Component

What is the current behaviour?

DropDown on SuperGraph not working

What is the expected behaviour?

Screenshots or Screencast

https://github.com/user-attachments/assets/4269ba76-1d33-430d-957a-47d1587333fe

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you're aware of?

Keywords

m4ttheweric commented 1 month ago

This will only occur if you have 1. collapsed all supergraph nodes, and then 2. attempt to use the supergraph collapse button.

The supergraph collapse button collapses the data sources and since they're not visible, it looks like it's doing nothing.

Possible solutions if we were to make a change:

  1. Disable the collapse button if no data sources are visible
  2. Something else?