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

Function acceptanceBlock

libatomic/src/review/viewer.js:178–188  ·  view source on GitHub ↗
(reference)

Source from the content-addressed store, hash-verified

176 }
177
178 function acceptanceBlock(reference) {
179 const entries=acceptedFor(reference);if(!entries.length)return null;
180 const host=el('div');
181 host.append(el('p','muted',`Signer ${decision.signer} explicitly accepted this degradation in attested review ${decision.id}. The finding/unknown state has not been removed or relabelled ready.`));
182 for(const {issue,acceptance} of entries) {
183 host.append(el('p','source-path',issue.id),el('p','',acceptance.rationale));
184 for(const evidence of acceptance.evidence)host.append(el('p','source-path',evidence));
185 if(acceptance.follow_up)host.append(el('p','','Follow-up: '+acceptance.follow_up));
186 }
187 return detail('Attested accepted degradation — risk remains',host);
188 }
189
190 function metricTable(region) {
191 const host = el('section', 'metrics-block');

Callers 2

findingBlockFunction · 0.85
renderCriteriaFunction · 0.85

Calls 4

acceptedForFunction · 0.85
elFunction · 0.85
detailFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected