Refactor agents console and related components
Some checks failed
lotteryadmin CI / build (push) Has been cancelled

- Simplified share rate calculation in AgentsConsole by removing unnecessary checks and directly setting the profile share rate.
- Updated the use of `profileParentCaps` to always return total share rate in the agent profile.
- Removed unused variables and memoized calculations for improved performance.
- Cleaned up imports in various files, removing unused components and optimizing the code structure.
- Added `tRef` dependency to several useEffect hooks to ensure proper reactivity to translation changes.
- Enhanced report preview tables with better label handling for various statuses and actions.
- Updated wallet filter options to align with player-side transaction types.
- Introduced new properties in types for better type safety and clarity.
This commit is contained in:
2026-06-30 17:55:00 +08:00
parent 6c3ded5b75
commit 4484a7a77a
56 changed files with 320 additions and 158 deletions

View File

@@ -200,6 +200,8 @@
"rebateLimit": "Rebate ceiling (%)",
"relativeShareRate": "Share rate (% of parent)",
"relativeShareRateValue": "{{rate}}% of parent",
"actualShareRate": "Effective share {{rate}}%",
"relativeShareCapHint": "Up to 100% of parent (parent total share {{parent}}%)",
"riskTags": "Risk tags",
"riskTagsPlaceholder": "Comma-separated, e.g. overdue, high_turnover",
"saveSuccess": "Share and credit settings saved",

View File

@@ -273,6 +273,24 @@
"play": "Play name or code",
"operator": "Admin account or name"
},
"labels": {
"transferDirection": {
"in": "Transfer in",
"out": "Transfer out"
},
"transferStatus": {
"processing": "Processing",
"success": "Success",
"failed": "Failed",
"pending_reconcile": "Pending reconcile",
"reversed": "Reversed",
"manually_processed": "Case closed"
},
"operatorType": {
"admin": "Admin",
"system": "System"
}
},
"items": {
"draw_profit": {
"title": "Draw bets / payout / P&L",

View File

@@ -146,8 +146,10 @@
},
"reason": {
"payment_record": "Bill payment",
"bet": "Bet hold",
"bet_hold": "Bet hold",
"game_settlement": "Draw settlement",
"bill_settlement": "Period payment",
"game_settlement_reversal": "Draw reversal",
"game_settlement_win": "Draw settlement credit",
"bet_hold_release": "Hold release",

View File

@@ -24,6 +24,9 @@
"transferOutRefund": "Transfer-out refund",
"bizBetDeduct": "Bet debit",
"bizBetReverse": "Bet reversal",
"bizPrize": "Payout",
"bizRefund": "Refund",
"bizReversal": "Reversal",
"bizSettlePayout": "Settlement payout",
"bizJackpotPayout": "Jackpot payout",
"bizSettlementAdjustment": "Settlement adjustment",

View File

@@ -93,6 +93,24 @@
"wallet_transfer_report": "वालेट ट्रान्सफर",
"wallet_txns_daily": "वालेट लेनदेन (दैनिक)"
},
"labels": {
"operatorType": {
"admin": "प्रशासक",
"system": "प्रणाली"
},
"transferDirection": {
"in": "भित्र",
"out": "बाहिर"
},
"transferStatus": {
"failed": "असफल",
"manually_processed": "केस बन्द",
"pending_reconcile": "मिलान बाँकी",
"processing": "प्रक्रियामा",
"reversed": "रिभर्स भयो",
"success": "सफल"
}
},
"libraryTitle": "रिपोर्ट प्रकार",
"loadFailed": "लोड असफल",
"no": "होइन",

View File

@@ -144,8 +144,10 @@
},
"reason": {
"payment_record": "Bill payment",
"bet": "Bet hold",
"bet_hold": "Bet hold",
"game_settlement": "Draw settlement",
"bill_settlement": "Period payment",
"game_settlement_reversal": "Draw reversal",
"game_settlement_win": "Draw settlement credit",
"bet_hold_release": "Hold release",

View File

@@ -10,6 +10,9 @@
"bizBetDeduct": "बेट कटौती",
"bizBetReverse": "बेट उल्टाउने",
"bizJackpotPayout": "ज्याकपट भुक्तानी",
"bizPrize": "भुक्तानी",
"bizRefund": "फिर्ता",
"bizReversal": "रिभर्सल",
"bizSettlePayout": "बन्दोबस्त भुक्तानी",
"bizSettlementAdjustment": "बन्दोबस्त समायोजन",
"bizType": "व्यवसाय प्रकार",

View File

@@ -160,6 +160,8 @@
"totalShareRate": "占成比例 (%)",
"relativeShareRate": "占成比例(占上级 %",
"relativeShareRateValue": "占上级 {{rate}}%",
"actualShareRate": "实际占成 {{rate}}%",
"relativeShareCapHint": "占上级比例最高 100%(上级总占成 {{parent}}%",
"creditLimit": "授信额度",
"rebateLimit": "回水上限 (%)",
"defaultPlayerRebate": "默认玩家回水 (%)",

View File

@@ -273,6 +273,24 @@
"play": "玩法名称或编码",
"operator": "管理员账号或昵称"
},
"labels": {
"transferDirection": {
"in": "转入",
"out": "转出"
},
"transferStatus": {
"processing": "处理中",
"success": "成功",
"failed": "失败",
"pending_reconcile": "待对账",
"reversed": "已冲正",
"manually_processed": "已结案"
},
"operatorType": {
"admin": "管理员",
"system": "系统"
}
},
"items": {
"draw_profit": {
"title": "每期下注/派彩/盈亏",

View File

@@ -131,9 +131,11 @@
},
"reason": {
"payment_record": "账单收付",
"bet": "下注冻结",
"bet_hold": "下注冻结",
"freezeAmount": "冻结 {{amount}}",
"game_settlement": "开奖结算",
"bill_settlement": "账期收付",
"game_settlement_reversal": "开奖冲正",
"game_settlement_win": "开奖结算入账",
"bet_hold_release": "占用释放",

View File

@@ -24,6 +24,9 @@
"transferOutRefund": "转出失败回补",
"bizBetDeduct": "下注扣款",
"bizBetReverse": "下注冲正",
"bizPrize": "派彩",
"bizRefund": "退本",
"bizReversal": "冲正",
"bizSettlePayout": "派彩入账",
"bizJackpotPayout": "奖池派彩",
"bizSettlementAdjustment": "结算调账",