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

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


The following commit(s) were added to refs/heads/main by this push:
     new 058a951ce fix: some small adjustments (#8050)
058a951ce is described below

commit 058a951cef51783fe8d724e08b6a686ea82d2db9
Author: 青湛 <[email protected]>
AuthorDate: Fri Sep 13 22:31:53 2024 +1200

    fix: some small adjustments (#8050)
---
 config-ui/Dockerfile                                                 | 1 +
 .../blueprint/detail/components/add-connection-dialog/index.tsx      | 4 +---
 config-ui/src/routes/blueprint/detail/configuration-panel.tsx        | 5 ++++-
 config-ui/src/routes/project/layout/index.tsx                        | 4 ++--
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/config-ui/Dockerfile b/config-ui/Dockerfile
index c094df4fe..52c197213 100644
--- a/config-ui/Dockerfile
+++ b/config-ui/Dockerfile
@@ -28,6 +28,7 @@ FROM node:18-bookworm-slim as builder
 WORKDIR /home/node/code
 COPY . .
 
+RUN cp env.example .env
 RUN yarn install
 RUN yarn build
 
diff --git 
a/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
 
b/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
index ccb2046bf..2846146bf 100644
--- 
a/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
+++ 
b/config-ui/src/routes/blueprint/detail/components/add-connection-dialog/index.tsx
@@ -17,7 +17,7 @@
  */
 
 import { useState, useMemo } from 'react';
-import { useNavigate, Link } from 'react-router-dom';
+import { Link } from 'react-router-dom';
 import { PlusOutlined } from '@ant-design/icons';
 import { Modal, Select, Space, Button } from 'antd';
 import styled from 'styled-components';
@@ -62,8 +62,6 @@ export const AddConnectionDialog = ({ disabled = [], 
onCancel, onSubmit }: Props
   const [step, setStep] = useState(1);
   const [selectedValue, setSelectedValue] = useState<string>();
 
-  const navigate = useNavigate();
-
   const connections = useAppSelector(selectAllConnections);
 
   const options = useMemo(
diff --git a/config-ui/src/routes/blueprint/detail/configuration-panel.tsx 
b/config-ui/src/routes/blueprint/detail/configuration-panel.tsx
index 0a010226a..479214d14 100644
--- a/config-ui/src/routes/blueprint/detail/configuration-panel.tsx
+++ b/config-ui/src/routes/blueprint/detail/configuration-panel.tsx
@@ -169,7 +169,10 @@ export const ConfigurationPanel = ({ from, blueprint, 
onRefresh, onChangeTab }:
             <NoData
               text={
                 <>
-                  If you have not created data connections yet, please <Link 
to="/connections">create connections</Link>{' '}
+                  If you have not created data connections yet, please{' '}
+                  <Link to="/connections" target="_blank">
+                    create connections
+                  </Link>{' '}
                   first and then add them to the project.
                 </>
               }
diff --git a/config-ui/src/routes/project/layout/index.tsx 
b/config-ui/src/routes/project/layout/index.tsx
index fe504e325..ae0647c22 100644
--- a/config-ui/src/routes/project/layout/index.tsx
+++ b/config-ui/src/routes/project/layout/index.tsx
@@ -122,9 +122,9 @@ export const ProjectLayout = () => {
       <Layout>
         <Content style={{ padding: '36px 48px', overflowY: 'auto' }}>
           <p>
-            {breadcrumbs(paths).map((b) => (
+            {breadcrumbs(paths).map((b, i) => (
               <span key={b.path}>
-                <Link to={b.path}>{b.name}</Link>
+                {i !== paths.length - 2 ? <Link to={b.path}>{b.name}</Link> : 
<span>{b.name}</span>}
                 <span> / </span>
               </span>
             ))}

Reply via email to