feat(web): add user ID and name to transaction details for better tracking

This commit is contained in:
2026-03-11 12:09:15 +08:00
parent ee329c7b9b
commit 9bdeea8a12
3 changed files with 23 additions and 2 deletions

View File

@@ -130,10 +130,22 @@ function RecentTransactions({ txns }: { txns: Transaction[] }) {
<span className="ml-1 text-xs text-muted">#{tx.connectorNumber}</span>
)}
</p>
<p className="text-xs text-muted">{tx.idTag}</p>
<p className="text-xs text-muted">
{tx.idTag}
{tx.idTagUserId && (
<>
<span className="mx-1">·</span>
{tx.idTagUserName ?? tx.idTagUserId}
<span className="ml-1 opacity-50">({tx.idTagUserId.slice(0, 8)})</span>
</>
)}
</p>
</div>
<div className="shrink-0 text-right">
<p className="text-sm font-medium tabular-nums text-foreground">{kwh}</p>
<p className="text-sm font-medium tabular-nums text-foreground">
{kwh}
<span className="text-xs"> kWh</span>
</p>
<p className="text-xs text-muted">{amount}</p>
</div>
<div className="w-16 shrink-0 text-right">