feat(admin, i18n): enhance reports, draws, config, and player workflows
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user