Skip to content

Add a devtools option #233

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

Open
kyle-ssg opened this issue Jun 21, 2024 · 1 comment
Open

Add a devtools option #233

kyle-ssg opened this issue Jun 21, 2024 · 1 comment

Comments

@kyle-ssg
Copy link
Member

kyle-ssg commented Jun 21, 2024

When testing features it would be useful to have the ability to see and flip flags for that instance interactively.

import FlagsmithToolbar from 'flagsmith/toolbar'
FlagsmithToolbar.init(flagsmithInstance)
FlagsmithToolbar.show()
FlagsmithToolbar.hide()

Would inject an overlay into the site where you could override any feature flag.

Notes

  • We can use the generated types to allow users to select values to change the feaure to
  • Users will authenticate via GitHub
@novakzaballa
Copy link
Contributor

novakzaballa commented Jun 24, 2024

@kyle-ssg @matthewelwell Can I work on this one?

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

No branches or pull requests

2 participants