Enhance dialogs and configuration handling in the admin interface
CI / Backend (build + test) (push) Successful in 1m14s
CI / Frontend (lint + typecheck + build) (push) Successful in 31s

- Updated `EditNodeDialog` and `RegisterNodeDialog` to prevent interaction outside the dialog, improving user experience.
- Added data attributes to password fields in both dialogs for better password management.
- Refactored `CreateConfigDialog` to accept inbounds as a prop, improving data handling and user feedback when no inbounds are available.
- Introduced a warning banner in the root layout to inform users about the necessity of linking their Telegram account for notifications and password recovery.
- Updated translations for improved clarity regarding available inbounds and Telegram linking requirements.
This commit is contained in:
Leonid Pershin
2026-07-02 17:06:53 +03:00
parent 0d0fc2c86b
commit 7dcc8889a0
7 changed files with 72 additions and 16 deletions
+14 -2
View File
@@ -36,6 +36,12 @@ const resources = {
telegramLoginExpired: 'Время ожидания истекло, попробуйте снова.',
},
telegramLinkWarning: {
message: 'Вы не привязали Telegram — без этого вы не будете получать уведомления и не сможете самостоятельно восстановить пароль.',
action: 'Привязать Telegram',
dismiss: 'Скрыть',
},
nav: {
dashboard: 'Мои конфиги',
instructions: 'Инструкции',
@@ -66,7 +72,7 @@ const resources = {
label: 'Метка (необязательно)',
deviceLimitLabel: 'Лимит устройств (необязательно)',
deviceLimitPlaceholder: 'Без лимита',
noInboundsAvailable: 'Нет доступных локаций для вашей роли.',
noInboundsNotice: 'Пока нет доступных локаций для создания конфига. Обратитесь к администратору — необходимо, чтобы он добавил сервер.',
created: 'Конфиг создан.',
quotaExceeded: 'Достигнут лимит конфигов для вашей роли.',
showLink: 'Ссылка / QR',
@@ -297,6 +303,12 @@ const resources = {
telegramLoginExpired: 'The request expired, please try again.',
},
telegramLinkWarning: {
message: "You haven't linked Telegram — without it you won't receive notifications and won't be able to recover your password yourself.",
action: 'Link Telegram',
dismiss: 'Dismiss',
},
nav: {
dashboard: 'My configs',
instructions: 'Instructions',
@@ -327,7 +339,7 @@ const resources = {
label: 'Label (optional)',
deviceLimitLabel: 'Device limit (optional)',
deviceLimitPlaceholder: 'Unlimited',
noInboundsAvailable: 'No locations available for your role.',
noInboundsNotice: 'No locations are available for creating a config yet. Please contact the administrator — a server needs to be added.',
created: 'Config created.',
quotaExceeded: 'Config quota reached for your role.',
showLink: 'Link / QR',