Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): monitoring chart zero-value color and date range indicator (#38821)

非法操作b34a5940b3f6
diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx
index 4094ad0edc3..cdb021b0d56 100644
--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx
+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx
@@ -91,7 +91,7 @@ const RangeSelector: FC<Props> = ({ isCustomRange, ranges, onSelect }) => {
<SelectItem
key={item.value}
value={item.value}
- className="h-8 py-0 pr-2 pl-7 system-md-regular"
+ className="relative h-8 py-0 pr-2 pl-7 system-md-regular"
>
<SelectItemText className="px-0">{item.name}</SelectItemText>
<SelectItemIndicator className="absolute top-[8px] left-2 ml-0" />
diff --git a/web/app/components/app/overview/app-chart.tsx b/web/app/components/app/overview/app-chart.tsx
index 116894becf5..582033c797f 100644
--- a/web/app/components/app/overview/app-chart.tsx
+++ b/web/app/components/app/overview/app-chart.tsx
@@ -99,7 +99,7 @@ const Chart: React.FC<IChartProps> = ({
const tokenSummary = getTokenSummary(statistics)
const showTokenSummary =
CHART_TYPE_CONFIG[chartType].showTokens && hasNonZeroChartData(statistics, 'total_price')
- const isZeroSummary = summaryValue === '0' || summaryValue === '0 ms'
+ const isZeroSummary = !hasNonZeroChartData(statistics, yField)
return (
<div