-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] Personal Access Token empty page #14660
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
[dashboard] Personal Access Token empty page #14660
Conversation
started the job as gitpod-build-laushinka-implement-empty-personalaccesstoken.1 because the annotations in the pull request description changed |
b2dfba5
to
f3185f4
Compare
/werft run 👍 started the job as gitpod-build-laushinka-implement-empty-personalaccesstoken.5 |
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.
/hold for Qs
Looking good, thanks for starting with a feature flag and placeholder for the feature!
@@ -29,6 +30,14 @@ export default function getSettingsMenu(params: { userBillingMode?: BillingMode | |||
link: [settingsPathNotifications], | |||
}, | |||
...renderBillingMenuEntries(params.userBillingMode), | |||
...(params.showPersonalAccessTokens |
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.
Noob question, can we not use the FeatureFlagContext directly in this method to avoid having to pass it in as an argument?
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.
Since feature flags is now wrapped a React Context, the FeatureFlagsContext can only be used in a React component, which this file isn't.
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.
What prevents it from being a React file? I'm fine with this change, just trying to understand the reasoning a bit better.
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.
Hmm, I think when we know we're not returning JSX or HTML, there is no need to have something be a React component. But I actually wondered why the feature flag needed to be a Context 🤔
f3185f4
to
95f91eb
Compare
Description
Implements empty
/personal-access-token
page behindpersonalAccessTokensEnabled
feature flag.Related Issue(s)
Fixes #14614
How to test
/personal-access-token
page.personalAccessTokensEnabled
.Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh