This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v1.0 by this push:
     new 36fb7dc17 fix: onboard / configure connection's plugin name is fixed 
to GitHub (#8157)
36fb7dc17 is described below

commit 36fb7dc173eb73b93026440fbefcbd30e14f2d6c
Author: Klesh Wong <[email protected]>
AuthorDate: Wed Oct 23 18:52:04 2024 +0800

    fix: onboard / configure connection's plugin name is fixed to GitHub (#8157)
---
 config-ui/src/routes/onboard/step-2.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/routes/onboard/step-2.tsx 
b/config-ui/src/routes/onboard/step-2.tsx
index cd2eba4dc..d730c0026 100644
--- a/config-ui/src/routes/onboard/step-2.tsx
+++ b/config-ui/src/routes/onboard/step-2.tsx
@@ -129,17 +129,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={PATHS.CONNECTIONS()}>Data 
Connections</Link>.
                 </p>
               }

Reply via email to