feat: improve squad management UX — rename, swap icons, color gift button

1. Rename "Управление серверами" → "Управление сквадами" across all
   4 locales (ru, en, zh, fa) — title, subtitle, nav, subscription
   options. The page manages RemnaWave squads, not individual servers.

2. Swap toggle button semantics — the button now shows the ACTION
   that will happen on click, not the current state:
   - Active squad: red X icon (click to deactivate)
   - Inactive squad: green checkmark (click to activate)

3. Gift/trial button: amber/orange when functional (clearly clickable),
   gray when disabled. Previously always gray, making it look inactive
   even when it could be clicked.
This commit is contained in:
Fringg
2026-04-23 05:00:36 +03:00
parent 2d6815a88e
commit 33f32648f0
5 changed files with 22 additions and 22 deletions

View File

@@ -186,14 +186,14 @@ export default function AdminServers() {
onClick={() => toggleMutation.mutate(server.id)}
className={`rounded-lg p-2 transition-colors ${
server.is_available
? 'bg-success-500/20 text-success-400 hover:bg-success-500/30'
: 'bg-dark-700 text-dark-400 hover:bg-dark-600'
? 'bg-error-500/20 text-error-400 hover:bg-error-500/30'
: 'bg-success-500/20 text-success-400 hover:bg-success-500/30'
}`}
title={
server.is_available ? t('admin.servers.disable') : t('admin.servers.enable')
}
>
{server.is_available ? <CheckIcon /> : <XIcon />}
{server.is_available ? <XIcon /> : <CheckIcon />}
</button>
{/* Toggle Trial */}
@@ -201,7 +201,7 @@ export default function AdminServers() {
onClick={() => toggleTrialMutation.mutate(server.id)}
className={`rounded-lg p-2 transition-colors ${
server.is_trial_eligible
? 'bg-accent-500/20 text-accent-400 hover:bg-accent-500/30'
? 'bg-warning-500/20 text-warning-400 hover:bg-warning-500/30'
: 'bg-dark-700 text-dark-400 hover:bg-dark-600'
}`}
title={t('admin.servers.toggleTrial')}