forked from grafana/pyroscope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(frontend): remove function 'colorBasedOnDiff' which appears to be not used * feat(frontend): add a function to create a linear color scale * support color palettes * put all together * don't allow percentages to go over 100% * highlight active palette * apply same colors to profilertable * fix tests and generate screenshots * address comments
- Loading branch information
Showing
23 changed files
with
664 additions
and
138 deletions.
There are no files selected for viewing
Binary file modified
BIN
-39 Bytes
(100%)
cypress/snapshots/e2e.ts/e2e-comparison-diff-flamegraph.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* eslint-disable react/jsx-props-no-spreading */ | ||
import React from 'react'; | ||
import { ComponentMeta } from '@storybook/react'; | ||
import { | ||
DefaultPalette, | ||
ColorBlindPalette, | ||
} from '../webapp/javascript/components/FlameGraph/FlameGraphComponent/colorPalette'; | ||
import DiffLegend from '../webapp/javascript/components/FlameGraph/FlameGraphComponent/DiffLegend'; | ||
|
||
export default { | ||
title: 'DiffLegend', | ||
} as ComponentMeta<typeof DiffLegend>; | ||
|
||
export const Default = () => <DiffLegend palette={DefaultPalette} />; | ||
export const ColorBlind = () => <DiffLegend palette={ColorBlindPalette} />; |
This file was deleted.
Oops, something went wrong.
41 changes: 24 additions & 17 deletions
41
webapp/javascript/components/FlameGraph/FlameGraphComponent/DiffLegend.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.