From 34fa77ab641391ed3911100856c9ed401bae649d Mon Sep 17 00:00:00 2001 From: mintsweet <0x1304570@gmail.com> Date: Fri, 15 Dec 2023 19:40:43 +1300 Subject: [PATCH] refactor(config-ui): use new ui checkbox to replace old --- .../detail/components/sync-policy/index.tsx | 13 ++++++------- .../src/pages/project/detail/settings-panel.tsx | 16 +++++++--------- config-ui/src/pages/project/home/index.tsx | 11 ++++------- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx b/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx index 7844dd4574f..43ab6cae51d 100644 --- a/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx +++ b/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx @@ -19,8 +19,8 @@ import { useState, useEffect, useMemo } from 'react'; import dayjs from 'dayjs'; import type { RadioChangeEvent } from 'antd'; -import { Radio, Space, Input } from 'antd'; -import { Tag, Checkbox } from '@blueprintjs/core'; +import { Radio, Space, Checkbox, Input } from 'antd'; +import { Tag } from '@blueprintjs/core'; import { TimePrecision } from '@blueprintjs/datetime'; import { DateInput2 } from '@blueprintjs/datetime2'; @@ -205,11 +205,10 @@ export const SyncPolicy = ({ - onChangeSkipOnFail((e.target as HTMLInputElement).checked)} - /> + onChangeSkipOnFail(e.target.checked)}> + Skip failed tasks (Recommended when collecting a large volume of data, eg. 10+ GitHub repos, Jira boards, + etc.) +

A task is a unit of a pipeline, an execution of a blueprint. By default, when a task is failed, the whole pipeline will fail and all the data that has been collected will be discarded. By skipping failed tasks, the diff --git a/config-ui/src/pages/project/detail/settings-panel.tsx b/config-ui/src/pages/project/detail/settings-panel.tsx index 50bab3e8e2b..1ed40313fbb 100644 --- a/config-ui/src/pages/project/detail/settings-panel.tsx +++ b/config-ui/src/pages/project/detail/settings-panel.tsx @@ -18,8 +18,8 @@ import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { Flex, Card, Modal, Input, Button, message } from 'antd'; -import { Checkbox, Icon } from '@blueprintjs/core'; +import { Flex, Card, Modal, Input, Checkbox, Button, message } from 'antd'; +import { Icon } from '@blueprintjs/core'; import API from '@/api'; import { Block } from '@/components'; @@ -106,17 +106,15 @@ export const SettingsPanel = ({ project, onRefresh }: Props) => { setName(e.target.value)} /> - setEnableDora((e.target as HTMLInputElement).checked)} - /> + setEnableDora(e.target.checked)}> + Enable DORA Metrics + - + - +