From b684b3cd88ff3488ace474b8841cd6f2cc0f729f Mon Sep 17 00:00:00 2001 From: s0lray Date: Tue, 24 Mar 2026 18:51:15 -0400 Subject: [PATCH] feat(ui): replace text suffixes with color-coded SVG badges (THE-73) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parse (T)/(D)/(R)/(M) suffixes from tool names and render them as colored tspan elements in the SVG tree. Add matching badge pill styles to the HTML legend so it visually matches the tree indicators. - T (tool) → blue #4a9eda - D (dork) → orange #e8944a - R (registration) → amber #c8a030 - M (manual URL) → purple #9a7eda Badge colors are theme-invariant; they work on both dark and light backgrounds without separate light-mode overrides. Co-Authored-By: Paperclip --- public/css/arf.css | 21 +++++++++++++++++++++ public/index.html | 10 ++++++---- public/js/arf.js | 31 +++++++++++++++++++++++++++++-- 3 files changed, 56 insertions(+), 6 deletions(-) diff --git a/public/css/arf.css b/public/css/arf.css index 3238f8b..d590b95 100644 --- a/public/css/arf.css +++ b/public/css/arf.css @@ -12,6 +12,12 @@ --color-noscript-border: #7a4a00; --color-legend: #e0e0e0; --color-header: #e0e0e0; + + /* Status badge colors — saturated enough for both light and dark backgrounds */ + --badge-T: #4a9eda; + --badge-D: #e8944a; + --badge-R: #c8a030; + --badge-M: #9a7eda; } body.light-mode { @@ -105,3 +111,18 @@ h3 { a { color: var(--color-node-stroke); } + +/* Status badge pills (used in legend) */ +.badge { + display: inline-block; + font-size: 10px; + font-weight: bold; + padding: 1px 4px; + border-radius: 3px; + color: #fff; + vertical-align: middle; +} +.badge-T { background-color: var(--badge-T); } +.badge-D { background-color: var(--badge-D); } +.badge-R { background-color: var(--badge-R); } +.badge-M { background-color: var(--badge-M); } diff --git a/public/index.html b/public/index.html index e349123..991a897 100644 --- a/public/index.html +++ b/public/index.html @@ -32,10 +32,12 @@ -

(T) - Indicates a link to a tool that must be installed and run locally
- (D) - Google Dork, for more information: Google Hacking
- (R) - Requires registration
- (M) - Indicates a URL that contains the search term and the URL itself must be edited manually

+

+ T - Indicates a link to a tool that must be installed and run locally
+ D - Google Dork, for more information: Google Hacking
+ R - Requires registration
+ M - Indicates a URL that contains the search term and the URL itself must be edited manually
+