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

@@ -40,6 +40,10 @@ function goWalletDetail() {
router.push('/wallet/detail');
}
function goCashbacks() {
router.push('/wallet/cashbacks');
}
async function fetchTransactions() {
loading.value = true;
try {
@@ -80,8 +84,12 @@ const pullIndicatorStyle = () => ({
</div>
<template v-else>
<div v-if="items.length" class="top-bar">
<div class="top-bar">
<button type="button" class="more-link secondary" @click="goCashbacks">
{{ t('wallet.view_cashbacks_detail') }} &#x203A;
</button>
<button
v-if="items.length"
type="button"
class="more-link"
@click="goWalletDetail"
@@ -191,12 +199,16 @@ const pullIndicatorStyle = () => ({
.top-bar {
display: flex;
justify-content: flex-end;
justify-content: space-between;
align-items: center;
padding: 0 4px 2px;
margin-top: -8px;
}
.top-bar .more-link.secondary {
color: #f0b90b;
}
.more-link {
background: none;
border: none;