feat(admin, i18n): enhance reports, draws, config, and player workflows

This commit is contained in:
2026-06-08 17:41:55 +08:00
parent af982bb9f7
commit 7e65c53732
55 changed files with 1986 additions and 804 deletions

View File

@@ -421,6 +421,9 @@ export function DashboardAgentRankingCard({
const v = metricValue(row);
const pct = (Math.abs(v) / maxAbs) * 100;
const color = barColor(row);
const agentName = row.agent_name?.trim() || "-";
const agentCode = row.agent_code?.trim() || "";
const showCode = agentCode !== "" && agentCode !== agentName;
return (
<div key={row.agent_node_id} className="rounded-lg bg-muted/20 px-2 py-2">
<div className="flex items-start justify-between gap-2">
@@ -429,8 +432,10 @@ export function DashboardAgentRankingCard({
#{idx + 1}
</span>
<div className="min-w-0">
<p className="truncate text-xs font-medium">{row.agent_name || "-"}</p>
<p className="truncate text-[11px] text-muted-foreground">{row.agent_code || ""}</p>
<p className="truncate text-xs font-medium">{agentName}</p>
{showCode ? (
<p className="truncate text-[11px] text-muted-foreground">{agentCode}</p>
) : null}
</div>
</div>
<div className="shrink-0 text-right text-xs font-semibold tabular-nums">