|
29 | 29 | a(href=`command:vscode.open?${corgeaURI}`) |
30 | 30 | button.btn-secondary.mr-2 See on Corgea |
31 | 31 | if vulnerability.auto_fix_suggestion.status != "fix_available" |
32 | | - .card |
33 | | - .card-header Could Not Issue Fix |
34 | | - if vulnerability.auto_fix_suggestion.status === "unsupported" |
| 32 | + .card-wrapper |
| 33 | + .card.split-view |
| 34 | + .card-header Issue Explanation |
35 | 35 | .card-body |
36 | | - p.fix_explanation.text-white Corgea currently does not support this language. |
37 | | - else if vulnerability.auto_fix_suggestion.status === "plan" |
38 | | - .card-body |
39 | | - p.fix_explanation.text-white You've reached the limit of your plan. Please upgrade to get all the fixes. |
40 | | - else if vulnerability.auto_fix_suggestion.status === "false_positive" |
41 | | - .card-body |
42 | | - p.fix_explanation |
43 | | - h3.text-white False Positive Detected |
44 | | - span.text-white !{false_positive_reason} |
45 | | - else if vulnerability.auto_fix_suggestion.status === "gpt_error" |
46 | | - .card-body |
47 | | - p.fix_explanation.text-white Corgea was unable to generate a fix for this issue. This was likely due to insufficient context or failing QA checks. |
48 | | - else |
49 | | - .card-body |
50 | | - p.fix_explanation.text-white Corgea was unable to generate a fix for this issue due to AI limitations. |
| 36 | + p.issue_explanation.text-white !{vulnerability.details.explanation} |
| 37 | + |
| 38 | + .card.split-view |
| 39 | + .card-header Could Not Auto Fix |
| 40 | + if vulnerability.auto_fix_suggestion.status === "unsupported" |
| 41 | + .card-body |
| 42 | + p.fix_explanation.text-white Corgea currently does not support this language. |
| 43 | + else if vulnerability.auto_fix_suggestion.status === "plan" |
| 44 | + .card-body |
| 45 | + p.fix_explanation.text-white You've reached the limit of your plan. Please upgrade to get all the fixes. |
| 46 | + else if vulnerability.auto_fix_suggestion.status === "false_positive" |
| 47 | + .card-body |
| 48 | + p.fix_explanation |
| 49 | + h3.text-white False Positive Detected |
| 50 | + span.text-white !{false_positive_reason} |
| 51 | + else if vulnerability.auto_fix_suggestion.status === "gpt_error" |
| 52 | + .card-body |
| 53 | + p.fix_explanation.text-white Corgea was unable to generate a fix for this issue. This was likely due to insufficient context or failing QA checks. |
| 54 | + else |
| 55 | + .card-body |
| 56 | + p.fix_explanation.text-white Corgea was unable to generate a fix for this issue due to AI limitations. |
51 | 57 | else |
52 | 58 | if vulnerability.auto_fix_suggestion.patch && vulnerability.auto_fix_suggestion.patch.diff |
53 | 59 | button.btn-primary(onclick="applyDiff()") Apply Fix |
|
0 commit comments