Files
sor/Client/context-files/scenes/account-management.scene.md
T

2.6 KiB

AccountManagement Scene

UI

  • Identity panel: username, email, profile image
  • Password change modal:
    • fields: new password, confirm password
    • actions: Submit, Cancel
  • Linked accounts panel:
    • Link Account for OAuth providers
    • linked provider status list
  • Stats panel:
    • Origin points, Win, Loss, Forfeit, Draw, Cards owned, Cards played
  • Spending panel:
    • Total Spent censored by default
    • uncensor toggle
    • money spent + origin points spent
    • Download Report for 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, linkedProviders
  • stats: originPoints, wins, losses, forfeits, draws, cardsOwned, cardsPlayed
  • spendingSummary: moneySpent, originPointsSpent, censoredByDefault
  • spendingCap: capEnabled, moneyCapAmount, originPointsCapAmount, effectiveFromUtc, nextCapChangeAllowedAtUtc, lockReason
  • legalDocuments (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