diff --git a/web/src/assets/more.svg b/web/src/assets/more.svg new file mode 100644 index 0000000000..44170fd4dd --- /dev/null +++ b/web/src/assets/more.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/web/src/components/AttributeRow/AttributeRow.styled.ts b/web/src/components/AttributeRow/AttributeRow.styled.ts index 4bf7568809..1ca4f639a6 100644 --- a/web/src/components/AttributeRow/AttributeRow.styled.ts +++ b/web/src/components/AttributeRow/AttributeRow.styled.ts @@ -2,11 +2,11 @@ import {InfoCircleOutlined} from '@ant-design/icons'; import {Tag as AntdTag, Typography} from 'antd'; import styled from 'styled-components'; import TestOutputMark from 'components/TestOutputMark'; +import moreIcon from 'assets/more.svg'; export {default as AttributeTitle} from './AttributeTitle'; export const Container = styled.div` - align-items: center; background-color: ${({theme}) => theme.color.white}; display: flex; margin-bottom: 4px; @@ -74,3 +74,7 @@ export const OutputsMark = styled(TestOutputMark)` margin: 4px; } `; + +export const MoreIcon = styled.img.attrs({ + src: moreIcon, +})``; diff --git a/web/src/components/AttributeRow/AttributeRow.tsx b/web/src/components/AttributeRow/AttributeRow.tsx index a07dd78530..376ec77bfd 100644 --- a/web/src/components/AttributeRow/AttributeRow.tsx +++ b/web/src/components/AttributeRow/AttributeRow.tsx @@ -1,4 +1,3 @@ -import {MoreOutlined} from '@ant-design/icons'; import {Dropdown, Menu, Popover} from 'antd'; import parse from 'html-react-parser'; import MarkdownIt from 'markdown-it'; @@ -125,8 +124,8 @@ const AttributeRow = ({ - e.preventDefault()}> - + e.preventDefault()} style={{height: 'fit-content'}}> + diff --git a/web/src/components/CreateTestPlugins/Default/steps/BasicDetails/BasicDetailsForm.tsx b/web/src/components/CreateTestPlugins/Default/steps/BasicDetails/BasicDetailsForm.tsx index bd16a6ded3..c55c87517d 100644 --- a/web/src/components/CreateTestPlugins/Default/steps/BasicDetails/BasicDetailsForm.tsx +++ b/web/src/components/CreateTestPlugins/Default/steps/BasicDetails/BasicDetailsForm.tsx @@ -31,6 +31,7 @@ const BasicDetailsForm = ({ = ({ +const RequestDetailsHeadersInput = ({ unit = 'Header', name = ['headers'], initialValue = DEFAULT_HEADERS, label = 'Header', -}) => ( - + className = '', +}: IProps) => ( + {(fields, {add, remove}) => ( <> @@ -50,7 +51,7 @@ const RequestDetailsHeadersInput: React.FC = ({ style={{fontWeight: 600, height: 'auto', padding: 0}} type="link" > - {`Add ${label}`} + Add {label} )} diff --git a/web/src/components/GuidedTour/testRunSteps.ts b/web/src/components/GuidedTour/testRunSteps.ts index 038f768c54..300341bff1 100644 --- a/web/src/components/GuidedTour/testRunSteps.ts +++ b/web/src/components/GuidedTour/testRunSteps.ts @@ -9,13 +9,6 @@ export enum StepsID { } const Steps: Step[] = [ - { - title: 'Response', - target: GuidedTourService.getStepSelector(StepsID.Response), - content: 'View various responses here. When the test is finished, you will get the following results.', - placement: 'left', - disableBeacon: true, - }, { title: 'Trigger', target: GuidedTourService.getStepSelector(StepsID.Trigger), @@ -24,6 +17,13 @@ const Steps: Step[] = [ 'You can change the trigger by altering the details and saving. This will rerun the test with the updated trigger.', disableBeacon: true, }, + { + title: 'Response', + target: GuidedTourService.getStepSelector(StepsID.Response), + content: 'View various responses here. When the test is finished, you will get the following results.', + placement: 'left', + disableBeacon: true, + }, { title: 'Mode Switcher', target: '.ant-tabs-nav-wrap', diff --git a/web/src/components/Settings/DataStorePlugin/DataStorePluginForm.styled.ts b/web/src/components/Settings/DataStorePlugin/DataStorePluginForm.styled.ts index 0daacb5cc7..cd4a00331b 100644 --- a/web/src/components/Settings/DataStorePlugin/DataStorePluginForm.styled.ts +++ b/web/src/components/Settings/DataStorePlugin/DataStorePluginForm.styled.ts @@ -1,6 +1,7 @@ import {DeleteOutlined} from '@ant-design/icons'; import {Button, Typography} from 'antd'; import styled from 'styled-components'; +import RequestDetailsHeadersInput from 'components/CreateTestPlugins/Rest/steps/RequestDetails/RequestDetailsHeadersInput'; export const FormContainer = styled.div` display: grid; @@ -59,3 +60,7 @@ export const Title = styled(Typography.Title)` margin: 0; } `; + +export const HeadersInput = styled(RequestDetailsHeadersInput)` + max-width: 1000px; +`; diff --git a/web/src/components/Settings/DataStorePlugin/forms/GrpcClient/GrpcClient.tsx b/web/src/components/Settings/DataStorePlugin/forms/GrpcClient/GrpcClient.tsx index 3d06aebc52..91bea4e87d 100644 --- a/web/src/components/Settings/DataStorePlugin/forms/GrpcClient/GrpcClient.tsx +++ b/web/src/components/Settings/DataStorePlugin/forms/GrpcClient/GrpcClient.tsx @@ -1,9 +1,8 @@ import {Checkbox, Col, Form, Input, Row, Select, Space, Switch} from 'antd'; - -import RequestDetailsHeadersInput from 'components/CreateTestPlugins/Rest/steps/RequestDetails/RequestDetailsHeadersInput'; import {SupportedDataStoresToDefaultEndpoint} from 'constants/DataStore.constants'; import {SupportedDataStores, TDraftDataStore} from 'types/DataStore.types'; import * as S from './GrcpClient.styled'; +import * as FS from '../../DataStorePluginForm.styled'; import GrpcClientSecure from './GrpcClientSecure'; const COMPRESSION_LIST = [ @@ -78,7 +77,7 @@ const GrpcClient = () => { - + diff --git a/web/src/components/Settings/DataStorePlugin/forms/HttpClient/HttpClient.tsx b/web/src/components/Settings/DataStorePlugin/forms/HttpClient/HttpClient.tsx index d2f638dc53..c2ab48aca1 100644 --- a/web/src/components/Settings/DataStorePlugin/forms/HttpClient/HttpClient.tsx +++ b/web/src/components/Settings/DataStorePlugin/forms/HttpClient/HttpClient.tsx @@ -1,7 +1,7 @@ import {Checkbox, Col, Form, Input, Row, Space, Switch} from 'antd'; -import RequestDetailsHeadersInput from 'components/CreateTestPlugins/Rest/steps/RequestDetails/RequestDetailsHeadersInput'; import {TDraftDataStore} from 'types/DataStore.types'; import GrpcClientSecure from '../GrpcClient/GrpcClientSecure'; +import * as S from '../../DataStorePluginForm.styled'; const HEADER_DEFAULT_VALUES = [{key: '', value: ''}]; @@ -23,7 +23,7 @@ const HttpClient = () => { - +