-
Notifications
You must be signed in to change notification settings - Fork 429
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
chore: improve UPDATE_FEATURE_STATE permission in UI #2986
chore: improve UPDATE_FEATURE_STATE permission in UI #2986
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
![]() Looks like there's something on the API preventing it still @zachaysan |
I've fixed the above in #2990. There is one minor FE tweak that I've noticed which would be good to resolve which is that the tooltip which comes up on hover on the feature row is kind of misleading now. ![]() I have a feeling this has been misleading since we allowed users to view the feature slide out, but it's a good time to resolve it here I think @novakzaballa. I think we can just remove the tooltip altogether here. |
I've removed the tooltip here |
Changes should be wrapped in the relevant feature flag.
<Permission | ||
level='environment' | ||
permission={Utils.getManageFeaturePermission( | ||
is4Eyes, | ||
identity, | ||
)} | ||
id={this.props.environmentId} | ||
> | ||
{({ | ||
permission: savePermission, | ||
}) => ( | ||
<Permission | ||
level='environment' | ||
permission={ | ||
'MANAGE_SEGMENT_OVERRIDES' | ||
} | ||
id={ | ||
this.props.environmentId | ||
} | ||
> | ||
{({ | ||
permission: | ||
manageSegmentsOverrides, | ||
}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand what this code is doing but I have tested it functionally and it seems to behave how I expect!
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
How did you test this code?