mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
parent
80117ebf9a
commit
dc846011f3
3 changed files with 11 additions and 2 deletions
5
.changeset/odd-llamas-shave.md
Normal file
5
.changeset/odd-llamas-shave.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
fix: show alert indicator for bar charts too
|
||||
|
|
@ -289,7 +289,10 @@ const getChartConfigFromAlert = (
|
|||
} else if (details.taskType === AlertTaskType.TILE) {
|
||||
const tile = details.tile;
|
||||
// Doesn't work for metric alerts yet
|
||||
if (tile.config.displayType === DisplayType.Line) {
|
||||
if (
|
||||
tile.config.displayType === DisplayType.Line ||
|
||||
tile.config.displayType === DisplayType.StackedBar
|
||||
) {
|
||||
return {
|
||||
connection,
|
||||
dateRange,
|
||||
|
|
|
|||
|
|
@ -258,7 +258,8 @@ const Tile = forwardRef(
|
|||
</Text>
|
||||
{hovered ? (
|
||||
<Flex gap="0px">
|
||||
{chart.config.displayType === DisplayType.Line && (
|
||||
{(chart.config.displayType === DisplayType.Line ||
|
||||
chart.config.displayType === DisplayType.StackedBar) && (
|
||||
<Indicator
|
||||
size={alert?.state === AlertState.OK ? 6 : 8}
|
||||
zIndex={1}
|
||||
|
|
|
|||
Loading…
Reference in a new issue