From 21bc57bc2496005888a95f7b01b5c2627c315a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 26 Oct 2018 22:55:26 +0100 Subject: [PATCH 1/2] fix(ui): use correct classes for not yet applied filters --- ui/src/Components/Labels/FilterInputLabel/index.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/src/Components/Labels/FilterInputLabel/index.js b/ui/src/Components/Labels/FilterInputLabel/index.js index a7f1d0d07..648bd900e 100644 --- a/ui/src/Components/Labels/FilterInputLabel/index.js +++ b/ui/src/Components/Labels/FilterInputLabel/index.js @@ -56,7 +56,10 @@ const FilterInputLabel = observer( className={ filter.applied ? cs.className - : ["badge-secondary", ...cs.baseClassNames].join(" ") + : [ + "badge-secondary components-filteredinputlabel", + ...cs.baseClassNames + ].join(" ") } style={cs.style} > @@ -67,7 +70,9 @@ const FilterInputLabel = observer( onClick={() => alertStore.filters.removeFilter(filter.raw)} > !c.match(/badge-/)) + .join(" ")}`} > × @@ -78,7 +83,7 @@ const FilterInputLabel = observer( {filter.hits} ) : ( - + ) @@ -93,7 +98,6 @@ const FilterInputLabel = observer( value={filter.raw} propName="raw" change={this.onChange} - className={cs.colorClassNames.join(" ")} classEditing="py-0 border-0 bg-light" /> From 87540017a4dc81ccce36b001b6f31d572075b2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 26 Oct 2018 22:56:40 +0100 Subject: [PATCH 2/2] chore(ui): drop margin between annotations and labels --- .../AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap | 2 +- ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap index 35bfcde0d..3b2611ef3 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap @@ -3,7 +3,7 @@ exports[` matches snapshot with showAlertmanagers=false showReceiver=false 1`] = ` "
  • -
    +
    -
    +
    {alert.annotations.filter(a => a.isLink === false).map(a => (