MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / renderConformanceOverview

Function renderConformanceOverview

libatomic/src/review/viewer.js:515–531  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513 }
514
515 function renderConformanceOverview() {
516 const host = $('conformance-overview'); host.replaceChildren(); host.className = 'overview';
517 const pass = passes.get('intent_conformance');
518 const heading = el('h2', '', 'Intent conformance '); heading.append(badge(title(pass.status), pass.status));
519 host.append(heading, el('p', 'region-meta', pass.detail), el('p', '', `${graph.criteria.length} scoped acceptance criterion/criteria`));
520 if(viewConformance?.scope)host.append(el('p','',`${viewConformance.intents.length} intents explicitly scoped to view ${viewConformance.scope.view}. Scope assignment is not change governance or acceptance approval.`));
521 if (viewComparison) {
522 const conformance=viewComparison.conformance;
523 const changes=conformance?.changes || [];
524 host.append(el('p','',`${changes.filter(change=>change.direction==='added_to_after').length} recorded change(s) only in source · ${changes.filter(change=>change.direction==='removed_from_after').length} only in target · ${(conformance?.criteria || []).length} criterion/criteria in scope`));
525 const evidence=el('div');
526 for(const change of changes) evidence.append(el('p','',`${title(change.direction)} · ${change.hash} · governing intent: ${change.intent_context.status}`));
527 for(const note of conformance?.diagnostics || []) evidence.append(el('p','muted',note));
528 if(evidence.childElementCount)host.append(detail('Recorded membership and governance evidence',evidence));
529 }
530 else if(viewConformance?.diagnostics.length)host.append(detail('View intent scope notes',el('pre','',viewConformance.diagnostics.join('\n'))));
531 }
532
533 function renderCriteria() {
534 const host = $('criteria'); host.replaceChildren();

Callers 1

renderSummaryFunction · 0.85

Calls 7

$Function · 0.85
elFunction · 0.85
badgeFunction · 0.85
titleFunction · 0.85
detailFunction · 0.85
getMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected