show remediation

pull/4735/head
aniket-engg 6 months ago committed by Aniket
parent ff0af721e3
commit 5811a921ef
  1. 8
      libs/remix-ui/run-tab/src/lib/components/solScanTable.tsx
  2. 2
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx

@ -13,14 +13,15 @@ export function SolScanTable(props: SolScanTableProps) {
return ( return (
<> <>
<p>Scanning successful! <b>{scanDetails.length} warnings </b> found for file: <b>{fileName}</b></p> <p>Scanning successful! <b>{scanDetails.length} warnings </b> found for file: <b>{fileName}</b></p>
<p>See the warning details below. For more details, <a href="https://solidityscan.com/signup">Sign up with SolidityScan</a></p> <p>See the warning details below. For more details, <a href="https://solidityscan.com/signup" target='blank'>Sign up with SolidityScan</a></p>
<table className="table table-bordered table-hover"> <table className="table table-bordered table-hover">
<thead> <thead>
<tr> <tr>
<td scope="col">ID</td>
<td scope="col">NAME</td> <td scope="col">NAME</td>
<td scope="col">SEVERITY</td> <td scope="col">SEVERITY</td>
<td scope="col">CONFIDENCE</td>
<td scope="col">DESCRIPTION</td> <td scope="col">DESCRIPTION</td>
<td scope="col">REMEDIATION</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -28,10 +29,11 @@ export function SolScanTable(props: SolScanTableProps) {
Array.from(scanDetails, (template) => { Array.from(scanDetails, (template) => {
return ( return (
<tr key={template.template_details.issue_id}> <tr key={template.template_details.issue_id}>
<td scope="col">{template.template_details.issue_id}</td>
<td scope="col">{template.template_details.issue_name}</td> <td scope="col">{template.template_details.issue_name}</td>
<td scope="col">{template.template_details.issue_severity}</td> <td scope="col">{template.template_details.issue_severity}</td>
<td scope="col">{template.template_details.issue_confidence}</td>
<td scope="col">{parse(template.template_details.static_issue_description)}</td> <td scope="col">{parse(template.template_details.static_issue_description)}</td>
<td scope="col">{template.template_details.issue_remediation ? parse(template.template_details.issue_remediation) : 'Not Available' }</td>
</tr> </tr>
) )
}) })

@ -283,7 +283,7 @@ export function UniversalDappUI(props: UdappProps) {
title: <FormattedMessage id="udapp.solScan.successModalTitle" />, title: <FormattedMessage id="udapp.solScan.successModalTitle" />,
message: <SolScanTable scanDetails={scanDetails} fileName={fileName}/>, message: <SolScanTable scanDetails={scanDetails} fileName={fileName}/>,
okLabel: 'Close', okLabel: 'Close',
modalParentClass: 'modal-lg' modalParentClass: 'modal-xl'
} }
} else { } else {
modal = { modal = {

Loading…
Cancel
Save