2.6 KiB
2.6 KiB
AccountManagement Scene
UI
- Identity panel: username, email, profile image
- Password change modal:
- fields:
new password,confirm password - actions:
Submit,Cancel
- fields:
- Linked accounts panel:
Link Accountfor OAuth providers- linked provider status list
- Stats panel:
- Origin points, Win, Loss, Forfeit, Draw, Cards owned, Cards played
- Spending panel:
Total Spentcensored by default- uncensor toggle
- money spent + origin points spent
Download Reportfor full spending profile
- Spending controls panel:
- set monthly spending cap (money and/or origin points)
- cap lock-enforced once set
- cap can be changed once per month
- warnings required before set/change
- show next eligible cap-change date/time
- Legal links panel:
- TOS, EULA, other required legal docs
Client
- Display profile, linked providers, stats, spending, legal docs.
- Support password update workflow.
- Support spending cap update workflow with warning acknowledgment.
Server
- Return account profile, linked providers, stats, spending summary.
- Process password changes.
- Enforce spending cap locks and cooldown windows.
- Return spending report export URL.
- Return legal document metadata and URLs.
Data Exchange
Client -> Server (AccountOverviewRequest)
requestId,accountId
Server -> Client (AccountOverviewResponse)
requestId,username,email,profileImageUrl,linkedProvidersstats:originPoints,wins,losses,forfeits,draws,cardsOwned,cardsPlayedspendingSummary:moneySpent,originPointsSpent,censoredByDefaultspendingCap:capEnabled,moneyCapAmount,originPointsCapAmount,effectiveFromUtc,nextCapChangeAllowedAtUtc,lockReasonlegalDocuments(name + url)
Client -> Server (ChangePasswordRequest)
requestId,currentPassword(if policy requires),newPassword,confirmPassword
Server -> Client (ChangePasswordResponse)
requestId,success,errorCode
Client -> Server (LinkOAuthRequest)
requestId,provider
Server -> Client (LinkOAuthResponse)
requestId,success,linkedProviders,errorCode
Client -> Server (SpendingCapUpdateRequest)
requestId,moneyCapAmount(optional),originPointsCapAmount(optional),acceptWarning
Server -> Client (SpendingCapUpdateResponse)
requestId,success,spendingCap,nextCapChangeAllowedAtUtc,warningMessage,errorCode
Client -> Server (SpendingReportRequest)
requestId,format(csv,json,pdf)
Server -> Client (SpendingReportResponse)
requestId,success,downloadUrl,expiresAtUtc,errorCode