Assessor_2.0/tests/client-data-facts-preview.html

26 lines
2.6 KiB
HTML

<!doctype html>
<html lang="en" data-theme="dark"><head><meta charset="UTF-8"><title>Synthetic Client Info Data results</title></head>
<body><main style="padding:var(--panel-inset)"><p>Synthetic preview · no client data</p><button class="btn" id="theme">Switch theme</button><div id="root" style="max-width:var(--activity-panel-width)"></div></main>
<script type="module">
import React from 'react';
import { createRoot } from 'react-dom/client';
import '@fontsource-variable/inter/wght.css';
import '/src/styles/layers.css';
import '/src/styles/ui-tokens.css';
import '/src/styles/tokens.css';
import '/src/styles/base.css';
import '/src/styles/components.css';
import '/src/styles/datahub.css';
import { DashboardTopFact } from '/src/features/dashboard/DashboardPanel.tsx';
const tool = {id:'synthetic',name:'Synthetic scanner'};
const snapshot = {version:1,projectId:'synthetic',scanRunIds:['synthetic-run'],generatedAt:'2026-10-02T12:00:00Z',
coverage:{observed:2,empty:0,explicitlyAbsent:0,restricted:0,incomplete:0},
observations:[['domain.fqdn','synthetic.example'],['entra.tenant_name','Synthetic tenant']].map(([property,value])=>({version:1,id:property,scanRunId:'synthetic-run',importFileId:'synthetic-file',tool,property,label:property,originalValue:value,normalizedValue:value,state:'observed',subject:{type:'domain'},attributes:{}})),
sections:[{version:1,id:'synthetic-users',scanRunId:'synthetic-run',importFileId:'synthetic-file',tool,
sectionKey:'sectionUserInformation',label:'User Information',state:'observed',tables:[{name:'User account summary',headers:['Nb user accounts','Original evidence'],rows:[[590,'Synthetic retained user summary']]}],attributes:{}}]};
const facts = [[1,'AD Domains','domain','ad-domains'],[1,'Entra Tenant','cloud','entra-tenants'],[590,'User Accounts','user','user-accounts'],[341,'Computer Objects','computer','computer-objects'],[3,'Domain Controllers','server','domain-controllers'],[277,'GPOs','policy','gpos']];
createRoot(document.getElementById('root')).render(React.createElement('section',{className:'client-data-facts','aria-label':'Environment facts'},facts.map(([value,label,glyph,evidenceGroup])=>React.createElement(DashboardTopFact,{key:label,value,label,glyph,snapshot,evidenceGroup,
backupRecords:label==='GPOs'?[{artifactId:'synthetic-backup',fileName:'Synthetic backup.zip',gpoCount:277,processingStatus:'complete',updatedAt:'2026-10-02T12:00:00Z'}]:undefined}))));
document.getElementById('theme').onclick=()=>{document.documentElement.dataset.theme=document.documentElement.dataset.theme==='dark'?'light':'dark';};
</script></body></html>