Loading...
+
+
+
Description
@@ -233,6 +239,30 @@ async function viewTool(toolId) {
// Update title
document.getElementById('detail-title').textContent = `${tool.owner}/${tool.name} v${tool.version}`;
+ // Scrutiny Warnings
+ const warningsSection = document.getElementById('detail-warnings-section');
+ const warningsDiv = document.getElementById('detail-warnings');
+ const warnings = tool.scrutiny_report?.findings?.filter(f => f.result === 'warning') || [];
+ if (warnings.length > 0) {
+ warningsSection.classList.remove('hidden');
+ warningsDiv.innerHTML = warnings.map(w => `
+
+
+
+
+
${escapeHtml(w.check || 'Warning')}
+
${escapeHtml(w.message || '')}
+ ${w.suggestion ? `
${escapeHtml(w.suggestion)}
` : ''}
+
+
+
+ `).join('');
+ } else {
+ warningsSection.classList.add('hidden');
+ }
+
// Description
document.getElementById('detail-description').textContent = tool.description || 'No description';