Skip to content

Commit 8f85ab3

Browse files
Merge pull request #12 from Corgea/new_login
New Login Flow vs code
2 parents 9f46bdc + b7c939f commit 8f85ab3

File tree

19 files changed

+901
-926
lines changed

19 files changed

+901
-926
lines changed

assets/views/vulnerabilityDetails.pug

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,31 @@ html
2929
a(href=`command:vscode.open?${corgeaURI}`)
3030
button.btn-secondary.mr-2 See on Corgea
3131
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
3535
.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.
5157
else
5258
if vulnerability.auto_fix_suggestion.patch && vulnerability.auto_fix_suggestion.patch.diff
5359
button.btn-primary(onclick="applyDiff()") Apply Fix

0 commit comments

Comments
 (0)