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: onboard / configure connection's plugin name is fixed to GitHub #8156

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions config-ui/src/routes/onboard/step-2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,23 @@ export const Step2 = () => {
return null;
}

const platformNames: Record<string, string> = {
github: 'GitHub',
gitlab: 'GitLab',
azuredevops: 'Azure DevOps',
}

return (
<>
<S.StepContent>
{['github', 'gitlab', 'azuredevops'].includes(plugin) && (
{platformNames[plugin] && (
<div className="content">
<ConnectionToken
type="create"
label="Personal Access Token"
subLabel={
<p>
Create a personal access token in GitHub. For self-managed {config.name}, please skip the onboarding
Create a personal access token in {platformNames[plugin]}. For self-managed {config.name}, please skip the onboarding
and configure via <Link to={'/connections'}>Data Connections</Link>.
</p>
}
Expand Down
Loading