[Uptime] waterfall view reduce opacity for blocking/waiting color (#88611)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Shahzad 2021-01-25 12:33:26 +01:00 committed by GitHub
parent 72ef3b105a
commit 601d9fd018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@ import { WaterfallDataEntry } from '../../waterfall/types';
describe('Palettes', () => {
it('A colour palette comprising timing and mime type colours is correctly generated', () => {
expect(colourPalette).toEqual({
blocked: '#b9a888',
blocked: '#dcd4c4',
connect: '#da8b45',
dns: '#54b399',
font: '#aa6556',
@ -173,10 +173,10 @@ describe('getSeriesAndDomain', () => {
"series": Array [
Object {
"config": Object {
"colour": "#b9a888",
"colour": "#dcd4c4",
"showTooltip": true,
"tooltipProps": Object {
"colour": "#b9a888",
"colour": "#dcd4c4",
"value": "Queued / Blocked: 0.854ms",
},
},
@ -264,10 +264,10 @@ describe('getSeriesAndDomain', () => {
},
Object {
"config": Object {
"colour": "#b9a888",
"colour": "#dcd4c4",
"showTooltip": true,
"tooltipProps": Object {
"colour": "#b9a888",
"colour": "#dcd4c4",
"value": "Queued / Blocked: 84.546ms",
},
},
@ -330,10 +330,10 @@ describe('getSeriesAndDomain', () => {
"series": Array [
Object {
"config": Object {
"colour": "#b9a888",
"colour": "#dcd4c4",
"showTooltip": true,
"tooltipProps": Object {
"colour": "#b9a888",
"colour": "#dcd4c4",
"value": "Queued / Blocked: 0.854ms",
},
},

View file

@ -197,7 +197,7 @@ const buildTimingPalette = (): TimingColourPalette => {
const palette = Object.values(Timings).reduce<Partial<TimingColourPalette>>((acc, value) => {
switch (value) {
case Timings.Blocked:
acc[value] = SAFE_PALETTE[6];
acc[value] = SAFE_PALETTE[16];
break;
case Timings.Dns:
acc[value] = SAFE_PALETTE[0];