refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components

This commit is contained in:
2026-06-11 18:02:02 +08:00
parent 44ad51698f
commit 1eb6702c51
54 changed files with 1888 additions and 1103 deletions

View File

@@ -11,14 +11,17 @@
"selectAgentHint": "Settlement boundaries follow the agent tree; share, credit and rebate are configured per node.",
"allocatedCredit": "Allocated",
"availableCredit": "Available",
"profileFootnote": "Rebate cap {{rebate}}% · Default {{defaultRebate}}% · {{cycle}}",
"profileFootnote": "Rebate cap {{rebate}}% · Default {{defaultRebate}}%",
"tabOverview": "Overview",
"tabProfile": "Share & credit",
"tabProfileReadOnly": "Share & credit (read-only)",
"currentSite": "Site",
"viewAll": "View all",
"shareRebateCap": "Rebate cap {{rate}}%",
"overviewDownlineCard": "{{count}} direct downline — manage in the Downline tab.",
"overviewDownlineCard": "View and manage direct downline agents",
"overviewDownlineCount": "{{count}}",
"overviewPlayersHint": "View direct players and credit status",
"overviewPlayersSummary": "Player management",
"downlineEmptyTitle": "No direct downline yet",
"editAccount": "Account & status",
"saveProfile": "Save share & credit",
@@ -28,6 +31,7 @@
},
"listTitle": "Agents",
"listSearch": "Search name / code / login",
"siteSearch": "Search site name",
"parentAgent": "Parent",
"childrenCount": "Direct downline",
"subnav": {
@@ -189,7 +193,7 @@
"externalIdHint": "Leave blank to auto-generate",
"creditLimit": "Credit limit",
"rebateRate": "Rebate rate (%)",
"rebateRateHint": "Enter percent, e.g. 0.5 = 0.5%",
"rebateRateHint": "Enter percent, e.g. 5 = 5%",
"availableToGrant": "Agent available to grant: {{amount}}",
"riskTags": "Risk tags",
"riskTagsPlaceholder": "Comma-separated",

View File

@@ -163,6 +163,7 @@
"account": "Account settings",
"integration": "Integration",
"agents": "Agent lines",
"agent_list": "Agent list",
"settlement_center": "Settlement center",
"config": "Operations config"
},

View File

@@ -53,6 +53,7 @@
"loadFailed": "Failed to load integration sites",
"saveFailed": "Save failed",
"createSuccess": "Created site {{code}}",
"adminAccountCreated": "Created site admin account {{username}}",
"updateSuccess": "Updated site {{code}}",
"connectivityTest": "Test connectivity",
"connectivityTitle": "Partner wallet connectivity",
@@ -85,7 +86,10 @@
"dialogDescription": "Default wallet paths are fine unless the partner uses custom URLs.",
"form": {
"required": "Site name is required",
"codeRequired": "site_code is required"
"codeRequired": "site_code is required",
"adminUsernameRequired": "Site admin username is required",
"adminNicknameRequired": "Site admin nickname is required",
"adminPasswordRequired": "Initial site admin password must be at least 8 characters"
},
"columns": {
"code": "site_code",
@@ -97,6 +101,10 @@
"fields": {
"code": "site_code",
"name": "Site name",
"adminUsername": "Admin username",
"adminNickname": "Admin nickname",
"adminPassword": "Initial password",
"adminEmail": "Email (optional)",
"currency": "Default currency",
"status": "Status",
"walletApiUrl": "Partner wallet base URL",
@@ -109,13 +117,19 @@
"placeholders": {
"code": "Enter site identifier, for example partner-a",
"name": "Enter site name",
"adminUsername": "Enter admin username",
"adminNickname": "Enter account nickname",
"adminPassword": "At least 8 characters",
"adminEmail": "Enter email",
"currency": "Enter currency code, for example NPR",
"walletApiUrl": "Enter wallet API URL",
"lotteryH5BaseUrl": "Enter H5 URL",
"iframeOrigins": "Enter allowed origins, for example https://www.example.com",
"notes": "Enter notes",
"connectivityPlayerId": "Enter player ID, for example 10001"
}
},
"adminAccountSectionTitle": "Site admin account",
"adminAccountSectionDescription": "Creating a site will also create one admin account bound to that site."
},
"versionStatus": {
"active": "Active",