feat: add smoke tests, agent credit ledger, and player cashback page

Introduce admin smoke-test suite with API probes, agent credit transaction history, and player cashback records; fix SmokeTestModule DI and polish admin/player UI assets.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-09 16:05:48 +08:00
parent 9c6c5e51f3
commit d5e7c8edb3
52 changed files with 3357 additions and 67 deletions

View File

@@ -25,8 +25,9 @@ function dec(value: string | number | null | undefined): number {
export function snapshotFromAgentRow(
row: Pick<
AgentRow | AgentDetail | AgentSubAgentRow,
'username' | 'creditLimit' | 'usedCredit' | 'availableCredit' | 'level'
'username' | 'creditLimit' | 'usedCredit' | 'availableCredit'
> & {
level?: number;
directPlayerLiability?: string;
childAgentExposure?: string;
},