Skip to content

feat(condo): DOMA-13361 add region messenger link#7822

Merged
Alexander-Turkin merged 3 commits into
mainfrom
feat/condo/DOMA-13361/add-messenger-link
Jul 9, 2026
Merged

feat(condo): DOMA-13361 add region messenger link#7822
Alexander-Turkin merged 3 commits into
mainfrom
feat/condo/DOMA-13361/add-messenger-link

Conversation

@Alexander-Turkin

@Alexander-Turkin Alexander-Turkin commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Added an optional “region messenger bot” link to user settings (shows only when available), including tooltip text and opening in a new tab.
    • Extended the employee bot section on the profile to support the new regional messenger option.
  • Bug Fixes
    • Improved alignment and spacing for the bot link title and tooltip icon using consistent styling.
  • Documentation
    • Updated localized UI strings (English, Spanish, Russian), including a key rename for the employee bot description and new labels/action text for the regional messenger bot.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 342f793a-ee46-4583-9af6-49fd1257194a

📥 Commits

Reviewing files that changed from the base of the PR and between 33673a7 and 84970ab.

📒 Files selected for processing (7)
  • .helm
  • apps/condo/domains/user/components/UserSettingsContent.module.css
  • apps/condo/domains/user/components/UserSettingsContent.tsx
  • apps/condo/lang/en/en.json
  • apps/condo/lang/es/es.json
  • apps/condo/lang/ru/ru.json
  • apps/condo/next.config.ts
✅ Files skipped from review due to trivial changes (3)
  • .helm
  • apps/condo/domains/user/components/UserSettingsContent.module.css
  • apps/condo/lang/ru/ru.json
🚧 Files skipped from review as they are similar to previous changes (4)
  • apps/condo/lang/es/es.json
  • apps/condo/next.config.ts
  • apps/condo/domains/user/components/UserSettingsContent.tsx
  • apps/condo/lang/en/en.json

📝 Walkthrough

Walkthrough

Adds a region messenger employee bot link exposed through runtime config and rendered in user settings with updated styling and locale strings. Also updates the .helm submodule reference.

Changes

Region Messenger Bot Feature

Layer / File(s) Summary
Config, UI, and translations
apps/condo/next.config.ts, apps/condo/domains/user/components/UserSettingsContent.tsx, apps/condo/domains/user/components/UserSettingsContent.module.css, apps/condo/lang/en/en.json, apps/condo/lang/es/es.json, apps/condo/lang/ru/ru.json
Adds regionMessengerEmployeeBotLink to runtime config, renders the conditional region messenger bot link in user settings, updates bot link styling, and renames/adds related locale keys.
Submodule reference
.helm
Updates the .helm submodule pointer to a new commit.

Estimated code review effort: 2 (Simple) | ~15 minutes

Suggested reviewers: nomerdvadcatpyat, toplenboren

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding a region messenger link in condo.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/condo/DOMA-13361/add-messenger-link

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration.

🔧 Stylelint (17.14.0)
apps/condo/domains/user/components/UserSettingsContent.module.css

ConfigurationError: Could not find "stylelint-config-rational-order". Do you need to install the package or use the "configBasedir" option?
at getModulePath (file:///usr/local/lib/node_modules/stylelint/lib/utils/getModulePath.mjs:38:9)
at loadExtendedConfig (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:285:21)
at extendConfig (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:252:25)
at async augmentConfigBasic (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:85:20)
at async augmentConfigFull (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:138:24)
at async getConfigForFile (file:///usr/local/lib/node_modules/stylelint/lib/getConfigForFile.mjs:102:26)
at async resolveOptionValue (file:///usr/local/lib/node_modules/stylelint/lib/utils/resolveOptionValue.mjs:27:24)
at async standalone (file:///usr/local/lib/node_modules/stylelint/lib/standalone.mjs:127:22)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
apps/condo/domains/user/components/UserSettingsContent.tsx (1)

437-441: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Same className mismatch as UserSettingsContent.module.css.

styles.botLinkTitle / styles.botLinkTooltipIcon reference camelCase properties, but the CSS module defines kebab-case selectors (.bot-link-title, .bot-link-tooltip-icon). See the companion comment on UserSettingsContent.module.css for the root cause and fix.

Also applies to: 467-475

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/condo/domains/user/components/UserSettingsContent.tsx` around lines 437
- 441, The JSX in UserSettingsContent is using the wrong CSS module keys for the
bot link title and tooltip icon. Update UserSettingsContent to use the class
names that match the selectors defined in UserSettingsContent.module.css for the
bot link title/tooltip icon elements, and apply the same fix to the other
affected bot link block referenced in UserSettingsContent. Keep the identifiers
aligned with the module’s exported names so styles resolve correctly.
🧹 Nitpick comments (1)
apps/condo/domains/user/components/UserSettingsContent.tsx (1)

431-489: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicated bot-link row markup between Telegram and region-messenger sections.

The Telegram bot block (Lines 431-459) and the new region-messenger block (Lines 461-489) are structurally identical (title span + tooltip icon + Typography.Link), differing only in the title/message/href/id values. Consider extracting a small shared BotLinkRow component to avoid duplicating this JSX.

♻️ Sketch of a shared component
type BotLinkRowProps = {
    title: string
    tooltip: string
    openMessage: string
    href: string
    id: string
}

const BotLinkRow: React.FC<BotLinkRowProps> = ({ title, tooltip, openMessage, href, id }) => (
    <Col span={24}>
        <Row align='middle'>
            <Col lg={5} xs={10}>
                <Typography.Text type='secondary'>
                    <span className={styles.botLinkTitle}>{title}</span>
                    <Tooltip title={tooltip}>
                        <span className={styles.botLinkTooltipIcon}>
                            <Info size='small' />
                        </span>
                    </Tooltip>
                </Typography.Text>
            </Col>
            <Col lg={18} xs={10} offset={1}>
                <Typography.Link href={href} target='_blank' id={id}>
                    {openMessage}
                </Typography.Link>
            </Col>
        </Row>
    </Col>
)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/condo/domains/user/components/UserSettingsContent.tsx` around lines 431
- 489, The Telegram and region-messenger bot link sections in
UserSettingsContent are duplicated JSX with only labels, href, and ids changing.
Extract the repeated layout into a shared BotLinkRow component (or equivalent
helper) and pass in title, tooltip, openMessage, href, and id props, then reuse
it for both telegramEmployeeBotName and regionMessengerEmployeeBotLink branches.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@apps/condo/domains/user/components/UserSettingsContent.tsx`:
- Around line 437-441: The JSX in UserSettingsContent is using the wrong CSS
module keys for the bot link title and tooltip icon. Update UserSettingsContent
to use the class names that match the selectors defined in
UserSettingsContent.module.css for the bot link title/tooltip icon elements, and
apply the same fix to the other affected bot link block referenced in
UserSettingsContent. Keep the identifiers aligned with the module’s exported
names so styles resolve correctly.

---

Nitpick comments:
In `@apps/condo/domains/user/components/UserSettingsContent.tsx`:
- Around line 431-489: The Telegram and region-messenger bot link sections in
UserSettingsContent are duplicated JSX with only labels, href, and ids changing.
Extract the repeated layout into a shared BotLinkRow component (or equivalent
helper) and pass in title, tooltip, openMessage, href, and id props, then reuse
it for both telegramEmployeeBotName and regionMessengerEmployeeBotLink branches.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4f9a6d44-5454-4dc0-aadd-a5923efbdd9d

📥 Commits

Reviewing files that changed from the base of the PR and between 77b26e0 and 64a42ea.

📒 Files selected for processing (7)
  • .helm
  • apps/condo/domains/user/components/UserSettingsContent.module.css
  • apps/condo/domains/user/components/UserSettingsContent.tsx
  • apps/condo/lang/en/en.json
  • apps/condo/lang/es/es.json
  • apps/condo/lang/ru/ru.json
  • apps/condo/next.config.ts

@nomerdvadcatpyat nomerdvadcatpyat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebase helm

@Alexander-Turkin Alexander-Turkin force-pushed the feat/condo/DOMA-13361/add-messenger-link branch from 64a42ea to 33673a7 Compare July 7, 2026 07:52
Comment thread apps/condo/next.config.ts
const cardIssuerImages = JSON.parse(conf['CARD_ISSUER_IMAGES'] || '{}')
const hCaptchaSiteKey = conf['HCAPTCHA_CONFIG'] ? { SITE_KEY: hCaptcha['SITE_KEY'] } : {}
const subscriptionProgressModalConfig = JSON.parse(conf['SUBSCRIPTION_PROGRESS_MODAL_CONFIG'] || '{}')
const regionMessengerEmployeeBotLink = conf['REGION_MESSENGER_EMPLOYEE_BOT_LINK']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can just call it messenger, but ok

@Alexander-Turkin Alexander-Turkin force-pushed the feat/condo/DOMA-13361/add-messenger-link branch from 33673a7 to 84970ab Compare July 9, 2026 12:16
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@Alexander-Turkin Alexander-Turkin merged commit 527f80a into main Jul 9, 2026
85 of 87 checks passed
@Alexander-Turkin Alexander-Turkin deleted the feat/condo/DOMA-13361/add-messenger-link branch July 9, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants