1
1
import darkModeImage from 'assets/codecovAI/pr-review-example-dark-mode.png'
2
2
import lightModeImage from 'assets/codecovAI/pr-review-example-light-mode.png'
3
+ import darkModeImageTests from 'assets/codecovAI/test-gen-example-dark-mode.png'
4
+ import lightModeImageTests from 'assets/codecovAI/test-gen-example-light-mode.png'
3
5
import { Card } from 'ui/Card'
4
6
import { ExpandableSection } from 'ui/ExpandableSection'
5
7
import LightDarkImg from 'ui/LightDarkImg'
@@ -12,8 +14,14 @@ const CodecovAICommands: React.FC = () => {
12
14
< Card . Title size = "base" > Codecov AI Commands</ Card . Title >
13
15
</ Card . Header >
14
16
< Card . Content >
15
- After installing the app, use this command in your PR comments:
17
+ After installing the app, use these commands in your PR comments:
16
18
< ul className = "mt-2 list-inside list-disc space-y-1" >
19
+ < li >
20
+ < span className = "rounded border border-gray-200 bg-gray-100 px-1 font-semibold" >
21
+ @codecov-ai-reviewer test
22
+ </ span >
23
+ -- the assistant will generate tests for the PR.
24
+ </ li >
17
25
< li >
18
26
< span className = "rounded border border-gray-200 bg-gray-100 px-1 font-semibold" >
19
27
@codecov-ai-reviewer review
@@ -31,12 +39,32 @@ const CodecovAICommands: React.FC = () => {
31
39
</ p >
32
40
</ ExpandableSection . Trigger >
33
41
< ExpandableSection . Content className = "m-0 p-0" >
34
- < LightDarkImg
35
- className = "size-full object-cover"
36
- src = { lightModeImage }
37
- darkSrc = { darkModeImage }
38
- alt = "codecov pr review example"
39
- />
42
+ < div className = "h-[300px] w-full" >
43
+ < LightDarkImg
44
+ className = "size-full object-cover"
45
+ src = { lightModeImage }
46
+ darkSrc = { darkModeImage }
47
+ alt = "codecov pr review example"
48
+ />
49
+ </ div >
50
+ </ ExpandableSection . Content >
51
+ </ ExpandableSection >
52
+ < ExpandableSection className = "-mt-2 border-t-0" >
53
+ < ExpandableSection . Trigger >
54
+ < p >
55
+ Here is an example of Codecov AI Test Generation. Test generation
56
+ may take time.
57
+ </ p >
58
+ </ ExpandableSection . Trigger >
59
+ < ExpandableSection . Content className = "m-0 p-0" >
60
+ < div className = { `h-[300px] w-full` } >
61
+ < LightDarkImg
62
+ className = "size-full object-cover"
63
+ src = { lightModeImageTests }
64
+ darkSrc = { darkModeImageTests }
65
+ alt = "codecov test generation example"
66
+ />
67
+ </ div >
40
68
</ ExpandableSection . Content >
41
69
</ ExpandableSection >
42
70
</ div >
0 commit comments