Use audit name in compliance page
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -45,6 +45,7 @@ const downloadMutation = graphql`
|
||||
|
||||
const auditRowFragment = graphql`
|
||||
fragment AuditRowFragment on Audit {
|
||||
name
|
||||
report {
|
||||
id
|
||||
filename
|
||||
@@ -129,6 +130,12 @@ export function AuditRow(props: { audit: AuditRowFragment$key }) {
|
||||
<div className="flex items-center gap-2">
|
||||
<IconMedal size={16} className="flex-none text-txt-tertiary" />
|
||||
{audit.framework.name}
|
||||
{audit.name && (
|
||||
<>
|
||||
{" "}
|
||||
<em>{audit.name}</em>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
{audit.report && audit.report.isUserAuthorized
|
||||
? (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @generated SignedSource<<3265a0991323eee4011c668b68d1b365>>
|
||||
* @generated SignedSource<<9540bd74ce3b0dd5366c237b56070d9f>>
|
||||
* @lightSyntaxTransform
|
||||
* @nogrep
|
||||
*/
|
||||
@@ -17,6 +17,7 @@ export type AuditRowFragment$data = {
|
||||
readonly lightLogoURL: string | null | undefined;
|
||||
readonly name: string;
|
||||
};
|
||||
readonly name: string | null | undefined;
|
||||
readonly report: {
|
||||
readonly filename: string;
|
||||
readonly hasUserRequestedAccess: boolean;
|
||||
@@ -32,6 +33,13 @@ export type AuditRowFragment$key = {
|
||||
|
||||
const node: ReaderFragment = (function(){
|
||||
var v0 = {
|
||||
"alias": null,
|
||||
"args": null,
|
||||
"kind": "ScalarField",
|
||||
"name": "name",
|
||||
"storageKey": null
|
||||
},
|
||||
v1 = {
|
||||
"alias": null,
|
||||
"args": null,
|
||||
"kind": "ScalarField",
|
||||
@@ -44,6 +52,7 @@ return {
|
||||
"metadata": null,
|
||||
"name": "AuditRowFragment",
|
||||
"selections": [
|
||||
(v0/*: any*/),
|
||||
{
|
||||
"alias": null,
|
||||
"args": null,
|
||||
@@ -52,7 +61,7 @@ return {
|
||||
"name": "report",
|
||||
"plural": false,
|
||||
"selections": [
|
||||
(v0/*: any*/),
|
||||
(v1/*: any*/),
|
||||
{
|
||||
"alias": null,
|
||||
"args": null,
|
||||
@@ -85,14 +94,8 @@ return {
|
||||
"name": "framework",
|
||||
"plural": false,
|
||||
"selections": [
|
||||
(v1/*: any*/),
|
||||
(v0/*: any*/),
|
||||
{
|
||||
"alias": null,
|
||||
"args": null,
|
||||
"kind": "ScalarField",
|
||||
"name": "name",
|
||||
"storageKey": null
|
||||
},
|
||||
{
|
||||
"alias": null,
|
||||
"args": null,
|
||||
@@ -116,6 +119,6 @@ return {
|
||||
};
|
||||
})();
|
||||
|
||||
(node as any).hash = "417e65b500df4b4cff874dab2bea90ee";
|
||||
(node as any).hash = "ebf47a97014ba4dad0da94f2bb01666f";
|
||||
|
||||
export default node;
|
||||
|
||||
Reference in New Issue
Block a user