Add api, invitationOnly, deprecated badges to tool panel (THE-116)

Show boolean feature badges in the tool details panel when true:
- API (blue): tool has a public API
- Invite Only (amber): tool requires an invitation
- Deprecated (dark red): tool is no longer actively maintained

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
s0lray
2026-03-26 14:57:19 -04:00
co-authored by Paperclip
parent 78d8ad7e54
commit 2db8276c09
2 changed files with 16 additions and 1 deletions
+6 -1
View File
@@ -335,7 +335,12 @@
.badge-active { background: #c84040; }
/* Unknown / fallback */
.badge-unknown { background: #606060; }
.badge-unknown { background: #606060; }
/* Boolean feature badges */
.badge-api { background: #1e90cc; }
.badge-invitation-only { background: #b87800; }
.badge-deprecated { background: #8b3030; }
/* OPSEC row layout */
.opsec-row {
+10
View File
@@ -451,6 +451,16 @@ function openPanel(d) {
var pricingClass = ["free","freemium","paid"].indexOf(pricing) !== -1 ? pricing : "unknown";
badgeHtml += ' <span class="badge-pill badge-' + pricingClass + '">' + escapeHtml(pricing) + '</span>';
if (d.data.api === true) {
badgeHtml += ' <span class="badge-pill badge-api">API</span>';
}
if (d.data.invitationOnly === true) {
badgeHtml += ' <span class="badge-pill badge-invitation-only">Invite Only</span>';
}
if (d.data.deprecated === true) {
badgeHtml += ' <span class="badge-pill badge-deprecated">Deprecated</span>';
}
badgesEl.innerHTML = badgeHtml;
badgesEl.classList.remove("empty");
}