From d3e3c966d62c53b7dd0601d1bcb1cdcaf9486d50 Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Fri, 16 Aug 2024 12:57:44 +0200 Subject: [PATCH] web: introduce column filters and UI tweaks --- .../src/components/FunctionCapabilities.vue | 50 +++++++++++++------ .../src/components/RuleMatchesTable.vue | 5 -- web/explorer/src/views/AnalysisView.vue | 2 + 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/web/explorer/src/components/FunctionCapabilities.vue b/web/explorer/src/components/FunctionCapabilities.vue index 4372da335..c3e9e463a 100644 --- a/web/explorer/src/components/FunctionCapabilities.vue +++ b/web/explorer/src/components/FunctionCapabilities.vue @@ -7,6 +7,7 @@ size="small" :filters="filters" :filterMode="filterMode" + filterDisplay="row" :globalFilterFields="['address', 'rule', 'namespace']" > - + + - + + - + + + - - - - diff --git a/web/explorer/src/components/RuleMatchesTable.vue b/web/explorer/src/components/RuleMatchesTable.vue index 9b84fc14e..71daf622b 100644 --- a/web/explorer/src/components/RuleMatchesTable.vue +++ b/web/explorer/src/components/RuleMatchesTable.vue @@ -339,11 +339,6 @@ onMounted(() => { visibility: hidden !important; height: 1.3rem; } -/* Disable the toggle button for rules */ -:deep(.p-treetable-tbody > tr:is([aria-level="1"]) > td > div > .p-treetable-node-toggle-button) { - visibility: collapse !important; - height: 1.3rem; -} /* Make all matches nodes (i.e. not rule names) slightly smaller, and tighten up the spacing between the rows */ diff --git a/web/explorer/src/views/AnalysisView.vue b/web/explorer/src/views/AnalysisView.vue index 85efb2e2e..fc020fd3b 100644 --- a/web/explorer/src/views/AnalysisView.vue +++ b/web/explorer/src/views/AnalysisView.vue @@ -18,12 +18,14 @@ v-if="doc.meta.flavor === 'static' && showCapabilitiesByFunctionOrProcess && !showNamespaceChart" :data="doc" :show-library-rules="showLibraryRules" + :show-column-filters="showColumnFilters" />