From 8d14e16cd38e5d45524e4147ead536fdb4ad7033 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 17 Jul 2026 04:04:04 +0300 Subject: [PATCH] :lipstick: feat(ui): drop residual Hub branding in sidebars, auth and notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Hub→CustoCRM rebrand (192497e) missed five user-facing strings and the matching Playwright selector. The sidebars still offered «Назад в Hub», the auth recovery/reset success states still referred to «в Hub», and the MAX/Telegram notifier hint told staff to open «профиль в Hub». Replace the last Hub references with the product name CustoCRM (auth, notifier hint) or drop the qualifier entirely (sidebar back button, which just returns to the command center). Update the Playwright selector that asserted the «Назад в Hub» button is absent for operators. - layout/SalesSidebar.tsx, layout/SupportSidebar.tsx: «Назад в Hub» → «Назад» - features/auth/AuthPasswordRecovery.tsx, AuthResetPassword.tsx: «в Hub» → «в CustoCRM» - notifications/binding.py: «профиль в Hub» → «профиль в CustoCRM» - tests/e2e/internal-ui.spec.ts: selector «Назад в Hub» → «Назад» --- apps/backend/hub_platform/notifications/binding.py | 2 +- apps/internal-ui/src/features/auth/AuthPasswordRecovery.tsx | 2 +- apps/internal-ui/src/features/auth/AuthResetPassword.tsx | 2 +- apps/internal-ui/src/layout/SalesSidebar.tsx | 2 +- apps/internal-ui/src/layout/SupportSidebar.tsx | 2 +- tests/e2e/internal-ui.spec.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/backend/hub_platform/notifications/binding.py b/apps/backend/hub_platform/notifications/binding.py index 290c3ad..d91c653 100644 --- a/apps/backend/hub_platform/notifications/binding.py +++ b/apps/backend/hub_platform/notifications/binding.py @@ -25,7 +25,7 @@ CODE_TTL = timedelta(minutes=10) NOTIFIER_PURPOSE = "notifications" CONFIRMATION_TEXT = "Готово! Уведомления CustoCRM подключены. Отключить можно в профиле." -HINT_TEXT = "Это сервисный бот уведомлений CustoCRM. Чтобы подключить уведомления, откройте профиль в Hub и нажмите «Подключить»." +HINT_TEXT = "Это сервисный бот уведомлений CustoCRM. Чтобы подключить уведомления, откройте профиль в CustoCRM и нажмите «Подключить»." # База deep-link по провайдеру: и TG, и MAX поддерживают ?start=<код>. _DEEP_LINK_BASE = { diff --git a/apps/internal-ui/src/features/auth/AuthPasswordRecovery.tsx b/apps/internal-ui/src/features/auth/AuthPasswordRecovery.tsx index 372692c..5a80358 100644 --- a/apps/internal-ui/src/features/auth/AuthPasswordRecovery.tsx +++ b/apps/internal-ui/src/features/auth/AuthPasswordRecovery.tsx @@ -82,7 +82,7 @@ export function AuthPasswordRecovery({ onBackToLogin }: { onBackToLogin: () => v

Проверьте почту

-

Если {sentEmail} зарегистрирован в Hub, на него отправлено письмо со ссылкой для сброса пароля.

+

Если {sentEmail} зарегистрирован в CustoCRM, на него отправлено письмо со ссылкой для сброса пароля.

diff --git a/apps/internal-ui/src/features/auth/AuthResetPassword.tsx b/apps/internal-ui/src/features/auth/AuthResetPassword.tsx index 4c597b6..20f207b 100644 --- a/apps/internal-ui/src/features/auth/AuthResetPassword.tsx +++ b/apps/internal-ui/src/features/auth/AuthResetPassword.tsx @@ -85,7 +85,7 @@ export function AuthResetPassword({ onDone }: { onDone: () => void }) {

Готово

-

Пароль успешно изменён. Войдите в Hub, используя новый пароль.

+

Пароль успешно изменён. Войдите в CustoCRM, используя новый пароль.

diff --git a/apps/internal-ui/src/layout/SalesSidebar.tsx b/apps/internal-ui/src/layout/SalesSidebar.tsx index c205659..7ab093d 100644 --- a/apps/internal-ui/src/layout/SalesSidebar.tsx +++ b/apps/internal-ui/src/layout/SalesSidebar.tsx @@ -14,7 +14,7 @@ export function SalesSidebar({ route, user, setRoute, waitingCount = 0 }: { rout