| 440 | } |
| 441 | |
| 442 | function renderSlop() { |
| 443 | const pass = passes.get('anti_slop'); |
| 444 | const host = $('slop-selection'); host.replaceChildren(); |
| 445 | const region = regions.find(region => region.id === state.region); |
| 446 | if (region) host.append(selection(region, 'slop')); |
| 447 | else { |
| 448 | const empty = el('div', 'empty', state.query ? 'No matching source region. Clear the search to return to the review.' : pass.status === 'not_applicable' ? pass.detail : 'No numbered findings in this view. That does not establish a clean-code verdict.'); |
| 449 | empty.append(button('Browse changed metrics', () => { state.query = ''; $('search').value = ''; state.filter = 'changed'; $('region-filter').value = 'changed'; render(); })); |
| 450 | host.append(empty); |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | function comparisonOverview() { |
| 455 | const host=el('div'), direction=el('div','comparison-direction'); |