fix: partner system bugs - commission field, withdrawal UX, admin amount

1. Add desired commission percent field to partner application form
   and admin review page (Bug 1)
2. Add prominent "Requested Amount" row in admin withdrawal detail (Bug 2)
3. Switch withdrawal input from kopecks to rubles with auto-conversion
   on submit (Bug 3)

Includes i18n updates for all 4 locales (ru, en, zh, fa).
This commit is contained in:
Fringg
2026-02-27 04:02:27 +03:00
parent 4d14e3e806
commit e94d81fe5a
9 changed files with 94 additions and 32 deletions

View File

@@ -10,6 +10,7 @@ export interface PartnerApplicationInfo {
telegram_channel: string | null;
description: string | null;
expected_monthly_referrals: number | null;
desired_commission_percent: number | null;
admin_comment: string | null;
approved_commission_percent: number | null;
created_at: string;
@@ -41,6 +42,7 @@ export interface PartnerApplicationRequest {
telegram_channel?: string;
description?: string;
expected_monthly_referrals?: number;
desired_commission_percent?: number;
}
// ==================== Admin-facing types ====================
@@ -56,6 +58,7 @@ export interface AdminPartnerApplicationItem {
telegram_channel: string | null;
description: string | null;
expected_monthly_referrals: number | null;
desired_commission_percent: number | null;
status: string;
admin_comment: string | null;
approved_commission_percent: number | null;