From 99821d3c76a80537d2f37c731a6476f13c5f2199 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 31 Jul 2026 08:10:14 +0300 Subject: [PATCH] Add hidden username input to TelegramPanel for accessibility and password manager compatibility Introduced a hidden input field for the bot's username in the TelegramPanel component. This change ensures compatibility with password managers and improves accessibility for screen readers by providing a meaningful value for the bot's credentials. The input is read-only and hidden from the user interface, maintaining a clean design while enhancing functionality. --- .../src/features/admin/telegram/TelegramPanel.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend/src/features/admin/telegram/TelegramPanel.tsx b/frontend/src/features/admin/telegram/TelegramPanel.tsx index 8455dd2..7ff664f 100644 --- a/frontend/src/features/admin/telegram/TelegramPanel.tsx +++ b/frontend/src/features/admin/telegram/TelegramPanel.tsx @@ -110,6 +110,20 @@ export function TelegramPanel() { save.mutate() }} > + {/* Скрытое имя к паролям: браузер требует его в любой форме с секретами — иначе менеджер + паролей не понимает, к какой учётной записи их отнести, а скринридер читает поля без + подписи. Значение осмысленное: секреты здесь принадлежат боту, а не человеку. */} + +