From 9b021b29b98474e8ef68aa5992d4c06eacb72e2c Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Thu, 17 Sep 2020 10:43:01 +0200 Subject: [PATCH] Fix a11y bugs in query stats table: too many columns, header info not passed to column contents (#209) --- src/Explorer/Tabs/QueryTab.html | 33 +++++++++++++++--------------- src/Explorer/Tabs/QueryTab.less | 36 ++++++++++++++++----------------- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/src/Explorer/Tabs/QueryTab.html b/src/Explorer/Tabs/QueryTab.html index 4bc8d48b0..2f0483d03 100644 --- a/src/Explorer/Tabs/QueryTab.html +++ b/src/Explorer/Tabs/QueryTab.html @@ -111,17 +111,18 @@ data-bind="visible: isMetricsToggled() && allResultsMetadata().length > 0 && errors().length === 0" > + - - - + + - - - - - - - - - - - - - - diff --git a/src/Explorer/Tabs/QueryTab.less b/src/Explorer/Tabs/QueryTab.less index 6edb1ba76..f672ef530 100644 --- a/src/Explorer/Tabs/QueryTab.less +++ b/src/Explorer/Tabs/QueryTab.less @@ -93,7 +93,7 @@ margin-left: @MediumSpace; .flex-display(); .flex-direction(); - + .togglesWithMetadata { margin-top: @MediumSpace; @@ -102,23 +102,23 @@ height: @ToggleHeight; width: @ToggleWidth; margin-left: @MediumSpace; - + &:focus { .focus(); } - + .tab { margin-right: @MediumSpace; } - + .toggleSwitch { .toggleSwitch(); } - + .selectedToggle { .selectedToggle(); } - + .unselectedToggle { .unselectedToggle(); } @@ -136,7 +136,7 @@ .queryResultNextEnable { color: @AccentMediumHigh; font-size: @mediumFontSize; - cursor: pointer; + cursor: pointer; img { height: @ImgHeight; @@ -153,7 +153,7 @@ img { height: @ImgHeight; width: @ImgWidth; - margin-left: @SmallSpace; + margin-left: @SmallSpace; } } } @@ -181,7 +181,7 @@ cursor: pointer; padding: @SmallSpace; } - + .queryMetricsSummaryContainer { .flex-display(); .flex-direction(); @@ -195,10 +195,14 @@ overflow-y: auto; overflow-x: hidden; + caption { + width: 100px; + } + .queryMetricsSummaryHead { .flex-display(); } - + .queryMetricsSummaryHeader.queryMetricsSummaryTuple { font-size: 10px; } @@ -207,7 +211,7 @@ .flex-display(); .flex-direction(); } - + .queryMetricsSummaryTuple { border-bottom: 1px solid @BaseMedium; height: 32px; @@ -221,18 +225,14 @@ text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - flex: 0 1 auto; - } - - &:nth-child(2) { - flex: 1 1 auto; + flex: 0 0 50%; } &:nth-child(3) { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - flex: 0 0 50%; + flex: 0 0 50%; } .queryMetricInfoTooltip { @@ -264,7 +264,7 @@ .tooltipTextAfter(); } } - + .queryEngineExeTimeInfo { width: @QueryEngineExeInfo; top: -85px;
+ Query Statistics +
METRICVALUEMETRICVALUE
Request Charge
Showing Results
Retrieved document count + Retrieved document count More information Total number of retrieved documents @@ -148,8 +148,8 @@
Retrieved document size + Retrieved document size More information Total size of retrieved documents in bytes @@ -161,8 +161,8 @@
Output document count + Output document count More information Number of output documents @@ -171,8 +171,8 @@
Output document size + Output document size More information Total size of output documents in bytes @@ -184,8 +184,8 @@
Index hit document count + Index hit document count More information Total number of documents matched by the filter @@ -194,8 +194,8 @@
Index lookup time + Index lookup time More information Time spent in physical index layer @@ -206,8 +206,8 @@
Document load time + Document load time More information Time spent in loading documents @@ -218,8 +218,8 @@
Query engine execution time + Query engine execution time More information
System function execution time + System function execution time More information Total time spent executing system (built-in) functions @@ -251,8 +251,8 @@
User defined function execution time + User defined function execution time More information Total time spent executing user-defined functions @@ -266,8 +266,8 @@
Document write time + Document write time More information Time spent to write query result set to response buffer @@ -279,7 +279,6 @@
Round Trips