feat: Magic Wallet Phase 6 UI + purchase cycle controls

- FrontOffice.Main.csproj: switch to ProjectReference for CMS Protobuf
- MagicWallet.razor.cs: update default record with PurchaseCycleCount
- WalletService.cs: add PurchaseCycleCount to MagicWalletStatus record
- Profile/Index.razor.cs: load _purchaseCycleCount from MagicWalletStatus
- Profile/Index.razor: conditional purchase dialog (IPG vs Daya by cycle)
- Licenses.razor: fix grid column size xs=6
This commit is contained in:
masoodafar-web
2026-02-22 20:04:44 +03:30
parent be2633ddaf
commit a2e1e1fead
6 changed files with 50 additions and 23 deletions
@@ -32,7 +32,8 @@ public record MagicWalletStatus(
long MagicMaxDeposit,
long MagicRemainingDeposit,
long Balance,
DateTime? MagicActivatedAt
DateTime? MagicActivatedAt,
int PurchaseCycleCount
);
public class WalletService
@@ -212,12 +213,13 @@ public class WalletService
response.MagicMaxDeposit,
response.MagicRemainingDeposit,
response.Balance,
activatedAt
activatedAt,
response.PurchaseCycleCount
);
}
catch
{
return new MagicWalletStatus(0, 0, 0, 0, 0, 0, null);
return new MagicWalletStatus(0, 0, 0, 0, 0, 0, null, 0);
}
}