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

fix: check for enterprise in the create/edit templates UI #8985

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

daveleek
Copy link
Contributor

@daveleek daveleek commented Dec 16, 2024

Hiding with enterprise tag in routes wasn't enough anymore as we're showing those to Pro with upgrade messages. This temporarily disables the UI completely.

Before
Skjermbilde 2024-12-16 kl  11 26 36

After
image

Also disables the create screen if you know the direct url:
Skjermbilde 2024-12-16 kl  14 49 48

Copy link

vercel bot commented Dec 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 1:52pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Dec 16, 2024 1:52pm

Copy link
Contributor

github-actions bot commented Dec 16, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add screenshots before & after just to understand the PR better?

@daveleek
Copy link
Contributor Author

@gastonfournier thanks, yeah updated description now

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this improves the UI. If we don't want to show it, we should remove the item in the left side, making the UI blank doesn't seem like a good solution

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG! Thanks for addressing the comment!

@@ -32,7 +40,7 @@ export const ReleaseManagement = () => {
}}
maxWidth='700px'
permission={CREATE_RELEASE_TEMPLATE}
disabled={false}
disabled={!isEnterprise()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +23 to +25
if (!releasePlansEnabled) {
return null;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine if the feature is disabled you should not be able to see this... I don't think it's needed due to

menu: { advanced: true, mode: ['enterprise'] },
flag: 'releasePlans',
enterprise: true,
but 🤷

@daveleek daveleek merged commit 37b55ef into main Dec 16, 2024
11 checks passed
@daveleek daveleek deleted the fix/release-plan-ui-enterprise-only branch December 16, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants