You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/06/19 07:42:14 UTC
(incubator-devlake) branch feat-project-plugin created (now aa56eb841)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a change to branch feat-project-plugin
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at aa56eb841 feat: default enable project plugin and remove configuration
This branch includes the following new commits:
new aa56eb841 feat: default enable project plugin and remove configuration
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: feat: default enable project plugin and remove configuration
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch feat-project-plugin
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit aa56eb841e18c86795d4dd698e5d6eefb7ee5a9c
Author: mintsweet <0x...@gmail.com>
AuthorDate: Wed Jun 19 19:42:00 2024 +1200
feat: default enable project plugin and remove configuration
---
.../src/routes/project/detail/settings-panel.tsx | 4 +--
config-ui/src/routes/project/home/index.tsx | 31 +++++++---------------
2 files changed, 11 insertions(+), 24 deletions(-)
diff --git a/config-ui/src/routes/project/detail/settings-panel.tsx b/config-ui/src/routes/project/detail/settings-panel.tsx
index 4cb096a27..a4baa004a 100644
--- a/config-ui/src/routes/project/detail/settings-panel.tsx
+++ b/config-ui/src/routes/project/detail/settings-panel.tsx
@@ -189,10 +189,10 @@ export const SettingsPanel = ({ project, onRefresh }: Props) => {
<Block
title={
<Checkbox checked={issueTrace.enable} onChange={(e) => setIssueTrace({ enable: e.target.checked })}>
- Enable Issue Trace
+ Enable issue trace
</Checkbox>
}
- description=""
+ description="Parse the issue status and assignee history from issue changelogs. Currently, only Jira issues are supported."
/>
<Block>
<Button type="primary" loading={operating} disabled={!name} onClick={handleUpdate}>
diff --git a/config-ui/src/routes/project/home/index.tsx b/config-ui/src/routes/project/home/index.tsx
index 7c253d91e..6511f9928 100644
--- a/config-ui/src/routes/project/home/index.tsx
+++ b/config-ui/src/routes/project/home/index.tsx
@@ -19,15 +19,14 @@
import { useState, useMemo, useRef } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { PlusOutlined, SettingOutlined } from '@ant-design/icons';
-import { Flex, Table, Button, Modal, Input, Checkbox, message } from 'antd';
+import { Flex, Table, Button, Modal, Input, message } from 'antd';
import API from '@/api';
-import { PageHeader, Block, ExternalLink, IconButton } from '@/components';
+import { PageHeader, Block, IconButton } from '@/components';
import { getCron, PATHS } from '@/config';
import { ConnectionName } from '@/features';
import { useRefreshData } from '@/hooks';
import { OnboardTour } from '@/routes/onboard/components';
-import { DOC_URL } from '@/release';
import { formatTime, operator } from '@/utils';
import { PipelineStatus } from '@/routes/pipeline';
import { IBlueprint } from '@/types';
@@ -40,7 +39,6 @@ export const ProjectHomePage = () => {
const [pageSize] = useState(20);
const [open, setOpen] = useState(false);
const [name, setName] = useState('');
- const [enableDora, setEnableDora] = useState(true);
const [saving, setSaving] = useState(false);
const nameRef = useRef(null);
@@ -73,7 +71,6 @@ export const ProjectHomePage = () => {
const handleHideDialog = () => {
setOpen(false);
setName('');
- setEnableDora(true);
};
const handleCreate = async () => {
@@ -90,8 +87,13 @@ export const ProjectHomePage = () => {
metrics: [
{
pluginName: 'dora',
- pluginOption: '',
- enable: enableDora,
+ pluginOption: {},
+ enable: true,
+ },
+ {
+ pluginName: 'issue_trace',
+ pluginOption: {},
+ enable: true,
},
],
}),
@@ -221,21 +223,6 @@ export const ProjectHomePage = () => {
onChange={(e) => setName(e.target.value)}
/>
</Block>
- <Block
- title="Project Settings"
- description={
- <>
- <ExternalLink link={DOC_URL.DORA}>DORA metrics</ExternalLink>
- <span style={{ marginLeft: 4 }}>
- are four widely-adopted metrics for measuring software delivery performance.
- </span>
- </>
- }
- >
- <Checkbox checked={enableDora} onChange={(e) => setEnableDora(e.target.checked)}>
- Enable DORA Metrics
- </Checkbox>
- </Block>
</Modal>
{ready && dataSource.length === 1 && (
<OnboardTour nameRef={nameRef} connectionRef={connectionRef} configRef={configRef} />