refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components

This commit is contained in:
2026-06-11 18:02:02 +08:00
parent 44ad51698f
commit 1eb6702c51
54 changed files with 1888 additions and 1103 deletions

View File

@@ -120,19 +120,19 @@ export function RiskPoolDetailConsole({
<CardContent className="grid gap-3 sm:grid-cols-2 lg:grid-cols-4">
<div className="rounded-lg border bg-muted/40 p-3">
<p className="text-xs text-muted-foreground">{t("totalCap")}</p>
<p className="mt-1 font-mono text-sm font-medium tabular-nums">
<p className="mt-1 text-2xl font-semibold leading-none tracking-tight">
{formatAdminMinorUnits(pool.total_cap_amount, currencyCode)}
</p>
</div>
<div className="rounded-lg border bg-muted/40 p-3">
<p className="text-xs text-muted-foreground">{t("lockedWorstCase")}</p>
<p className="mt-1 font-mono text-sm font-medium tabular-nums">
<p className="mt-1 text-2xl font-semibold leading-none tracking-tight">
{formatAdminMinorUnits(pool.locked_amount, currencyCode)}
</p>
</div>
<div className="rounded-lg border bg-muted/40 p-3">
<p className="text-xs text-muted-foreground">{t("remainingSellable")}</p>
<p className="mt-1 font-mono text-sm font-medium tabular-nums">
<p className="mt-1 text-2xl font-semibold leading-none tracking-tight">
{formatAdminMinorUnits(pool.remaining_amount, currencyCode)}
</p>
</div>
@@ -178,7 +178,7 @@ export function RiskPoolDetailConsole({
{row.created_at ? formatDt(row.created_at) : "—"}
</TableCell>
<TableCell className="text-sm">{riskActionTypeLabel(row.action_type, t)}</TableCell>
<TableCell className="text-center text-sm tabular-nums">
<TableCell className="text-center text-sm font-semibold">
{formatAdminMinorUnits(row.amount, currencyCode)}
</TableCell>
<TableCell className="text-xs text-muted-foreground">