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

Allow to collapse strategy #9529

Open
spgandhi opened this issue Mar 12, 2025 · 4 comments
Open

Allow to collapse strategy #9529

spgandhi opened this issue Mar 12, 2025 · 4 comments

Comments

@spgandhi
Copy link
Contributor

Describe the feature request

I would like the ability to collapse strategy in the UI. Additionally the ability to "Collapse all" and "Expand all".

Happy to also contribute if the feature request gets approved

Background

We tend to have several strategies for a feature flag. The highest I have seen is 29 for an experiment flag. But there are several other flags where we have somewhere between 10-15 strategies. This might be largely related to how my company operates and how we run AB tests (where we need to keep old strategies to allow the users to age).

Solution suggestions

  1. For each strategy there is a way to collapse and expand it.
  2. Somewhere in the top bar in each environment, there is an option to collapse all and expand all.

Not something to be done for v1, but for v2 we can also consider storing the collapse state for the user in localStorage. So that the next time they open the flag, the collapse state for each strategy can be restored.

@spgandhi
Copy link
Contributor Author

Just a basic UI I put together

Image

@gastonfournier gastonfournier moved this from New to Investigating in Issues and PRs Mar 13, 2025
@nikken
Copy link

nikken commented Mar 13, 2025

Hi,
Thank you for your input! Just trying to understand your need here better; you would like to collapse single strategies, what would then make it easier for you compared to collapsing the entire environment as you can do today? In what use cases is it useful to keep some strategies open and some strategies closed? No right or wrong answers, just trying to get the full picture here 😄

@spgandhi
Copy link
Contributor Author

Thanks for getting back. Like I mentioned above, we have some flags where we have 30 strategies. Some of those strategies only apply to users, say, who installed the app between Jan 1 - Mar 31, 2024. We still want to keep this strategy active because we are aging the user. So now we have so many such strategies for a flag.

So out of these 30 strategies, 80% are something that I don't want to look at every time I open the flag details page. I only care about the last 5-6 strategies that I would have added recently.

So in such cases it would be helpful to be able to collapse some strategies so that I can focus on what's important to me in the moment.

@nikken
Copy link

nikken commented Mar 14, 2025

I see, thanks for sharing your need! I'll bring it back to the team and evaluate the need. Hide/show should be possible to include in some way :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Investigating
Development

No branches or pull requests

2 participants