feat(bot): improve /setup UX and update checklist on /bind

- Enhance /setup message with a warmer greeting and binding instructions\n- Rename 'Setup' buttons to 'Create' for clarity\n- Track /setup message ID to enable automatic checklist updates when /bind is used\n- Refresh /setup checklist after successful topic binding\n- Update English and Russian translations
This commit is contained in:
2026-03-15 01:44:13 +04:00
parent d0475743f8
commit 531e52b238
4 changed files with 62 additions and 11 deletions

View File

@@ -51,12 +51,14 @@ export const enBotTranslations: BotTranslationCatalog = {
joinRequestSent: (householdName) =>
`Join request sent for ${householdName}. Wait for a household admin to confirm you.`,
setupSummary: ({ householdName, created }) =>
`${created ? '✨' : ''} Welcome! ${householdName} is ${created ? 'successfully registered' : 'already active'} and ready to help.`,
`🏡 ${created ? 'New household!' : 'Household active!'} **${householdName}** is ready.\n\n` +
`I've set up the basic configuration. Now, let's organize your communication by linking topics for specific roles.`,
setupTopicsHeading: (configured, total) =>
`Let's configure your household topics to get started (${configured}/${total}):`,
`Current setup progress: ${configured}/${total}\n\n` +
`Tap buttons below to create new topics automatically, or go to any existing topic and use /bind to link it manually.`,
setupTopicBound: (role) => `${role}`,
setupTopicMissing: (role) => `${role}`,
setupTopicCreateButton: (role) => `Setup ${role}`,
setupTopicCreateButton: (role) => `Create ${role}`,
setupTopicBindButton: (role) => `Bind ${role}`,
useBindInTopic: 'Run /bind inside a topic to link it to a role.',
topicAlreadyBound: (role) => `This topic is already linked to ${role}.`,

View File

@@ -53,12 +53,14 @@ export const ruBotTranslations: BotTranslationCatalog = {
joinRequestSent: (householdName) =>
`Заявка на вступление в ${householdName} отправлена. Дождитесь подтверждения от админа дома.`,
setupSummary: ({ householdName, created }) =>
`${created ? '✨' : ''} Добро пожаловать! Дом ${householdName} ${created ? 'успешно зарегистрирован' : 'уже активен'} и готов к работе.`,
`🏡 ${created ? 'Новый дом!' : 'Дом активен!'} **${householdName}** готов.\n\n` +
`Базовая настройка выполнена. Теперь давайте распределим общение, привязав топики к конкретным ролям.`,
setupTopicsHeading: (configured, total) =>
`Давайте настроим топики для вашего дома (${configured}/${total}):`,
`Текущий прогресс настройки: ${configured}/${total}\n\n` +
`Нажмите кнопки ниже, чтобы создать топики автоматически, или перейдите в любой существующий топик и используйте /bind, чтобы привязать его вручную.`,
setupTopicBound: (role) => `${role}`,
setupTopicMissing: (role) => `${role}`,
setupTopicCreateButton: (role) => `Настроить ${role}`,
setupTopicCreateButton: (role) => `Создать ${role}`,
setupTopicBindButton: (role) => `Привязать ${role}`,
useBindInTopic: 'Используйте /bind внутри топика, чтобы привязать его к роли.',
topicAlreadyBound: (role) => `Этот топик уже привязан к роли «${role}».`,