Skip to content

Commit

Permalink
Merge pull request #2158 from Agenta-AI/fix/observability-status-rend…
Browse files Browse the repository at this point in the history
…er-issue

fix(frontend): observability status render issue
  • Loading branch information
bekossy authored Oct 31, 2024
2 parents 8d718a0 + 1c7c242 commit 09df469
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
import {_AgentaRootsResponse, NodeStatusCode, NodeStatusDTO} from "@/services/observability/types"
import {
CheckCircleOutlined,
ClockCircleOutlined,
CloseCircleOutlined,
InfoCircleOutlined,
} from "@ant-design/icons"
import {CheckCircleOutlined, CloseCircleOutlined, InfoCircleOutlined} from "@ant-design/icons"
import {Space, Tag, Tooltip} from "antd"
import React from "react"

export const statusMapper = (status: NodeStatusCode) => {
switch (status) {
case NodeStatusCode.UNSET:
return {
label: "initiated",
color: "blue",
icon: <ClockCircleOutlined />,
}
case NodeStatusCode.ERROR:
return {
label: "failed",
Expand Down

0 comments on commit 09df469

Please sign in to comment.