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
Feat/add enterprise badge to change req settings #2585
Feat/add enterprise badge to change req settings #2585
Conversation
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
…ings # Conflicts: # frontend/src/component/project/Project/ProjectSettings/ChangeRequestConfiguration/ChangeRequestConfiguration.tsx # frontend/src/hooks/usePlausibleTracker.ts
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
...nt/project/Project/ProjectSettings/ChangeRequestConfiguration/ChangeRequestConfiguration.tsx
Outdated
Show resolved
Hide resolved
const { hasAccess } = useContext(AccessContext); | ||
const { isOss, uiConfig } = useUiConfig(); | ||
const isPro = !( | ||
Boolean(uiConfig.versionInfo?.current.oss) || |
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.
uiConfig has isOSS
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.
Would be nice to have this in a reusable hook or util: const { isOss, isPro, isEnteprise } = usePlan()
or something. There's also useInstanceStatus
.
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.
Here's something that may help: #2600
{ | ||
Header: 'Required approvals', | ||
align: 'center', | ||
Cell: ({ row: { original } }: any) => { |
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.
maybe this can be extracted to a component
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.
Agreed, just moved the implementation for the moment, but it could use some cleanup
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
…equestConfiguration/ChangeRequestConfiguration.tsx Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
…nge_req_settings' into feat/add_enterprise_badge_to_change_req_settings
frontend/src/component/common/ProFeatureTooltip/ProFeatureTooltip.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/common/ProFeatureTooltip/ProFeatureTooltip.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/common/ProFeatureTooltip/ProFeatureTooltip.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/common/ProFeatureTooltip/ProFeatureTooltip.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/common/VerticalTabs/VerticalTab/VerticalTab.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/project/Project/ProjectSettings/ProjectSettings.tsx
Outdated
Show resolved
Hide resolved
…Settings.tsx Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
...nt/project/Project/ProjectSettings/ChangeRequestConfiguration/ChangeRequestConfiguration.tsx
Show resolved
Hide resolved
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
…nge_req_settings' into feat/add_enterprise_badge_to_change_req_settings # Conflicts: # frontend/src/component/project/ProjectAccess/ProjectAccess.tsx
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.
Looking good!
I still think we should have a look at some of the remaining comments before merging, though.
frontend/src/component/common/PremiumFeature/PremiumFeature.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/common/PremiumFeature/PremiumFeature.tsx
Outdated
Show resolved
Hide resolved
frontend/src/component/project/Project/ProjectSettings/ProjectSettings.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
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.
LGTM
@andreas-unleash I need to double check the messages with Elise and come back with a final version, so you know that we will need another small PR for this But other than this it looks super nice 👍 |
Hopefully a cleaner and DRY way of checking for the current Unleash plan level, which may help in cases like #2585 (comment)
Disable change requests for Pro and oss
About the changes
Closes #
Important files
Discussion points