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

Consolidate boolean and multivariate flag interfaces #26995

Open
dmarticus opened this issue Dec 17, 2024 · 0 comments
Open

Consolidate boolean and multivariate flag interfaces #26995

dmarticus opened this issue Dec 17, 2024 · 0 comments

Comments

@dmarticus
Copy link
Contributor

Background

Currently, our feature flag creation UI has different interfaces for boolean flags versus multivariate flags, despite boolean flags essentially being a special case of multivariate flags (with true/false variants). This inconsistency creates unnecessary cognitive load for users who work with both types of flags.

Current Behavior

  • Boolean flags have a distinct UI layout
  • Multivariate flags have a separate interface for defining variants
  • The two interfaces feel disconnected despite serving similar purposes

Proposed Solution

Unify the flag creation interface to treat all flags consistently:

  • Present boolean flags as a special case of multivariate flags (with true/false variants)
  • Use a consistent layout and interaction pattern for all flag types
  • Maintain the simplicity of boolean flag creation while fitting into the multivariate paradigm

Technical Considerations

  • May require updates to flag payload/serializer logic to properly detect flag type
  • Need to ensure backwards compatibility with existing flag configurations
  • Should maintain current functionality while improving UX

Previous Work

  • A design proposal was created ~2 years ago addressing this issue (see attached mockup)
  • Previous implementation was deprioritized due to resource constraints

Reference

Original discussion

Image

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

1 participant