Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(frontend): Automate Tab - Deep Link Technique (#2791)
* feature(frontend): Automate Tab - Deep Link Technique * feature(frontend): Automate Tab - Deep Link Technique * feature(frontend): fixing jest parser
- Loading branch information
Showing
30 changed files
with
478 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as S from './CodeBlock.styled'; | ||
import CodeBlock, {IProps as ICodeBlockProps} from './CodeBlock'; | ||
import useCopy from '../../hooks/useCopy'; | ||
|
||
interface IProps extends ICodeBlockProps { | ||
title: string; | ||
} | ||
|
||
const FramedCodeBlock = ({title, ...props}: IProps) => { | ||
const copy = useCopy(); | ||
|
||
return ( | ||
<S.FrameContainer> | ||
<S.FrameHeader> | ||
<S.FrameTitle>{title}</S.FrameTitle> | ||
<S.CopyButton ghost type="primary" onClick={() => copy(props.value)}> | ||
Copy | ||
</S.CopyButton> | ||
</S.FrameHeader> | ||
<CodeBlock {...props} /> | ||
</S.FrameContainer> | ||
); | ||
}; | ||
|
||
export default FramedCodeBlock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
import FramedCodeBlock from './FramedCodeBlock'; | ||
|
||
// eslint-disable-next-line no-restricted-exports | ||
export {default} from './CodeBlock'; | ||
export {FramedCodeBlock}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
web/src/components/RunDetailAutomate/RunDetailAutomate.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import Test from 'models/Test.model'; | ||
import TestRun from 'models/TestRun.model'; | ||
import * as S from './RunDetailAutomate.styled'; | ||
import TestDefinition from '../RunDetailAutomateDefinition'; | ||
import RunDetailAutomateMethods from '../RunDetailAutomateMethods/RunDetailAutomateMethods'; | ||
|
||
interface IProps { | ||
test: Test; | ||
run: TestRun; | ||
} | ||
|
||
const RunDetailAutomate = ({test}: IProps) => { | ||
return ( | ||
<S.Container> | ||
<S.SectionLeft> | ||
<TestDefinition test={test} /> | ||
</S.SectionLeft> | ||
<S.SectionRight> | ||
<RunDetailAutomateMethods /> | ||
</S.SectionRight> | ||
</S.Container> | ||
); | ||
}; | ||
const RunDetailAutomate = ({test, run}: IProps) => ( | ||
<S.Container> | ||
<S.SectionLeft> | ||
<TestDefinition test={test} /> | ||
</S.SectionLeft> | ||
<S.SectionRight> | ||
<RunDetailAutomateMethods test={test} run={run} /> | ||
</S.SectionRight> | ||
</S.Container> | ||
); | ||
|
||
export default RunDetailAutomate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.