refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components
This commit is contained in:
@@ -254,34 +254,38 @@ export function JackpotPoolsConsole({ embedded = false }: JackpotPoolsConsolePro
|
||||
key={p.id}
|
||||
className="space-y-3 rounded-xl border border-border/60 bg-background p-3 shadow-sm"
|
||||
>
|
||||
<div className="flex flex-wrap items-center justify-between gap-2">
|
||||
<div className="flex flex-wrap items-baseline justify-between gap-2">
|
||||
<div>
|
||||
<h3 className="font-mono text-sm font-semibold">{p.currency_code}</h3>
|
||||
<h3 className="text-base font-semibold">{p.currency_code}</h3>
|
||||
<p className="text-muted-foreground text-xs">{t("configTitle")}</p>
|
||||
</div>
|
||||
<p className="text-muted-foreground font-mono text-xs">{t("displayBalance", { amount: currentAmount })}</p>
|
||||
<p className="text-muted-foreground text-sm font-medium">
|
||||
{t("displayBalance", { amount: currentAmount })}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<div className="rounded-lg border border-border/60 bg-muted/20 p-2.5">
|
||||
<p className="text-muted-foreground text-xs">{t("currentAmount")}</p>
|
||||
<p className="mt-0.5 font-mono text-base font-semibold">{currentAmount}</p>
|
||||
<p className="mt-1 text-2xl font-semibold leading-none tracking-tight">
|
||||
{currentAmount}
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-lg border border-border/60 bg-muted/20 p-2.5">
|
||||
<p className="text-muted-foreground text-xs">{t("status")}</p>
|
||||
<p className="mt-0.5 text-base font-semibold">
|
||||
<p className="mt-1 text-base font-semibold">
|
||||
{statusOn ? t("enabled") : t("disabled")}
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-lg border border-border/60 bg-muted/20 p-2.5">
|
||||
<p className="text-muted-foreground text-xs">{t("payoutRate")}</p>
|
||||
<p className="mt-0.5 font-mono text-base font-semibold">
|
||||
<p className="mt-1 text-lg font-semibold">
|
||||
{formatRatioAsPercent(percentUiToRatio(d.payout_rate))}
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-lg border border-border/60 bg-muted/20 p-2.5">
|
||||
<p className="text-muted-foreground text-xs">{t("forceTriggerGap")}</p>
|
||||
<p className="mt-0.5 font-mono text-base font-semibold">{d.force_trigger_draw_gap}</p>
|
||||
<p className="mt-1 text-lg font-semibold">{d.force_trigger_draw_gap}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -480,7 +484,7 @@ export function JackpotPoolsConsole({ embedded = false }: JackpotPoolsConsolePro
|
||||
<li key={row.id} className="rounded-md border border-border/60 bg-muted/20 p-2">
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<span className="font-mono text-xs">{row.adjustment_no}</span>
|
||||
<span className="font-mono text-xs">
|
||||
<span className="text-sm font-semibold">
|
||||
{row.amount_delta > 0 ? "+" : ""}
|
||||
{formatAdminMinorDecimal(row.amount_delta, p.currency_code)}
|
||||
</span>
|
||||
@@ -496,9 +500,9 @@ export function JackpotPoolsConsole({ embedded = false }: JackpotPoolsConsolePro
|
||||
|
||||
<div className="rounded-lg border border-border/60 bg-background p-3">
|
||||
<p className="text-muted-foreground text-xs">{t("triggerThreshold")}</p>
|
||||
<p className="mt-0.5 font-mono text-sm">{triggerThreshold}</p>
|
||||
<p className="mt-1 text-lg font-semibold">{triggerThreshold}</p>
|
||||
<p className="text-muted-foreground mt-2 text-xs">{t("minBetAmount")}</p>
|
||||
<p className="mt-0.5 font-mono text-sm">{minBetAmount}</p>
|
||||
<p className="mt-1 text-lg font-semibold">{minBetAmount}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user