From ceaa3b6d03d660574577d9fb7dac31f11e40e1fb Mon Sep 17 00:00:00 2001 From: Devyansh Somvanshi <144378426+devs6186@users.noreply.github.com> Date: Thu, 12 Mar 2026 22:13:49 +0530 Subject: [PATCH] =?UTF-8?q?webui:=20include=20feature=20type=20in=20global?= =?UTF-8?q?=20search=20(match,=20regex,=20api,=20=E2=80=A6)=20(#2906)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * webui: include feature type in global search (match, regex, etc.) Searching for "match" or "regex" in the capa Explorer web UI produced no results because PrimeVue's globalFilterFields only included the name field, while the feature kind (e.g. "match", "regex", "api") is stored in the separate typeValue field. Add 'typeValue' to globalFilterFields so that the global search box matches nodes by both their value (name) and their kind (typeValue). No change to rendering or data structure; only the set of fields consulted during filtering is widened. Fixes #2349. * changelog: add entry for #2349 webui global search fix --- CHANGELOG.md | 2 +- web/explorer/src/components/RuleMatchesTable.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12aef47b..c90f0a49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,8 +49,8 @@ ### capa Explorer Web - webui: fix 404 for "View rule in capa-rules" by using encodeURIComponent for rule name in URL @devs6186 #2482 - - webui: show error when JSON does not follow expected result document schema; suggest reanalyzing for VT URLs @devs6186 #2363 +- webui: fix global search to match feature types (match, regex, api, …) @devs6186 #2349 ### capa Explorer IDA Pro plugin diff --git a/web/explorer/src/components/RuleMatchesTable.vue b/web/explorer/src/components/RuleMatchesTable.vue index 8972a355..483314f5 100644 --- a/web/explorer/src/components/RuleMatchesTable.vue +++ b/web/explorer/src/components/RuleMatchesTable.vue @@ -22,6 +22,7 @@ :scrollable="true" :filters="filters" :filterMode="filterMode" + :globalFilterFields="['name', 'typeValue']" sortField="namespace" :sortOrder="1" removableSort