feat(billing): show user display name in ledger records

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-04 14:18:17 +08:00
parent a4d46f2b1e
commit f8317e8312
3 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -839,7 +839,10 @@ function LedgerTab() {
{result.items.map((row) => (
<tr key={row.id}>
<td className="billing-time">{formatTime(row.createdAt)}</td>
<td>@{row.username}</td>
<td>
<span>{row.displayName || row.username}</span>
<span className="muted"> @{row.username}</span>
</td>
<td><span className={`ledger-type-tag ledger-type-${row.type}`}>{TYPE_LABEL[row.type] ?? row.type}</span></td>
<td className={`billing-num ${row.amountCents < 0 ? 'text-error' : 'text-income'}`}>
{row.amountCents >= 0 ? '+' : ''}¥{formatYuan(Math.abs(row.amountCents))}