cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

Cannot change away from dark theme in GraphQL router playground

Open rickpasetto opened this issue 10 months ago • 7 comments

Component(s)

router

Component version

0.75.0

wgc version

0.51.3

controlplane version

cloud?

router version

0.75.0

What happened?

Description

Open up the endpoint to the GraphQL Playground on the router. It always defaults to dark mode. Changing the theme in settings has no effect

I can reproduce this problem both running the router locally and by running it self-hosted.

Steps to Reproduce

  • Open up the endpoint to the GraphQL Playground on the router
  • Open Settings
  • Click "Light" or "System Settings". It has no effect. Theme stays dark (and, admittedly, extremely difficult to read).

Expected Result

  • Ability to change theme

Actual Result

  • Cannot change theme from dark theme
Screenshot 2024-04-19 at 3 51 12 PM

https://github.com/wundergraph/cosmo/assets/308993/8a2fc47f-4eb4-4919-a16d-4ba55af22f65

Environment information

Environment

OS: macOS running Chrome 123.0.6312.124

Router configuration

No response

Router execution config

No response

Log output

No response

Additional context

No response

rickpasetto avatar Apr 19 '24 22:04 rickpasetto

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

github-actions[bot] avatar Apr 19 '24 22:04 github-actions[bot]

Thanks for reporting! Please use the native theme switcher. CleanShot 2024-04-30 at 11 19 15@2x

StarpTech avatar Apr 30 '24 09:04 StarpTech

@StarpTech sorry I don't know how you open the native theme switcher. Is this in a different version? (If you look at the videos above that shows what I see...)

rickpasetto avatar Apr 30 '24 17:04 rickpasetto

Oh, you were referring to the local router playground. Got it.

StarpTech avatar May 01 '24 08:05 StarpTech

I am viewing the studio pointing at a self-hosted router running on AWS. Is it possible that I've misconfigured it somehow?

rickpasetto avatar May 01 '24 14:05 rickpasetto

I can't validate it with the provided information but it doesn't looks like. Your report is valid. The playground does not support theming. In the Studio, you can only use our own light / dark mode.

StarpTech avatar May 01 '24 17:05 StarpTech

Hm. But it appears that it is "stuck" in dark mode, even if you choose "light" mode. I even notice in the playground (cosmo.wundergraph.com) I am unable to switch the theme.

rickpasetto avatar May 01 '24 23:05 rickpasetto