iachat/app/javascript/dashboard/routes/dashboard/settings
Vishnu Narayanan 70c183ea6e
feat: hide email forwarding address if INBOUND_EMAIL_DOMAIN is not configured (#12768)
#### Summary

- Improved email inbox setup flow to handle cases where inbound email
forwarding is not configured on the installation
- Added conditional display of email forwarding address based on
MAILER_INBOUND_EMAIL_DOMAIN environment variable availability
- Enhanced user messaging to guide users toward configuring SMTP/IMAP
settings when forwarding is unavailable

#### Changes

**Backend (app/views/api/v1/models/_inbox.json.jbuilder)**
- Added forwarding_enabled boolean flag to inbox API response based on
MAILER_INBOUND_EMAIL_DOMAIN presence
- Made forward_to_email conditional - only included when forwarding is
enabled

  **Frontend - Inbox Creation Flow**
- Created new EmailInboxFinish.vue component to handle email inbox setup
completion
  - Shows different messages based on whether forwarding is enabled:
- With forwarding: displays forwarding address and encourages SMTP/IMAP
configuration
- Without forwarding: warns that SMTP/IMAP configuration is required for
emails to be processed
- Added link to configuration page for easy access to SMTP/IMAP settings

<img width="988" height="312" alt="Screenshot 2025-11-18 at 3 27 27 PM"
src="https://github.com/user-attachments/assets/928aff78-df73-49fa-9a26-dbbd1297b26a"
/>

<img width="765" height="489" alt="Screenshot 2025-11-18 at 3 24 46 PM"
src="https://github.com/user-attachments/assets/6a182c7d-087f-4e88-92a5-30f147a567a7"
/>


Fixes
https://linear.app/chatwoot/issue/CW-5881/hide-forwaring-email-section-if-inbound-email-domain-is-not-configured


## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

- Tested locally

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
2025-11-18 18:05:12 -08:00
..
account feat: SAML feedback changes [CW-5666] (#12511) 2025-09-24 16:07:07 +05:30
agentBots feat: Ability to reset api_access_token (#11565) 2025-05-29 14:42:13 +05:30
agents feat: SAML feedback changes [CW-5666] (#12511) 2025-09-24 16:07:07 +05:30
assignmentPolicy chore: Assignment policy improvements (#12429) 2025-09-16 14:10:10 +05:30
attributes fix: Translate Priority and Messages types in Automations and Macros (#11741) 2025-07-08 12:40:40 +05:30
auditlogs chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
automation feat: Add support for labels in automations (#11658) 2025-09-18 14:17:54 +05:30
billing chore: Add auto-refresh and self-hosted redirect logic to the billing page (#12615) 2025-10-09 10:57:30 -07:00
canned chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
components chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
customRoles chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
helper chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
inbox feat: hide email forwarding address if INBOUND_EMAIL_DOMAIN is not configured (#12768) 2025-11-18 18:05:12 -08:00
integrations fix: Brand installation name not showing (#12861) 2025-11-13 22:16:25 +05:30
labels chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
macros chore: Replace Thumbnail with Avatar (#12119) 2025-08-11 15:47:17 +05:30
profile feat: Add the frontend support for MFA (#12372) 2025-09-18 21:16:06 +05:30
reports feat: allow selecting month range in overview reports (#12701) 2025-11-12 18:34:00 +05:30
security feat: Control the allowed login methods via Super Admin (#12892) 2025-11-17 21:55:12 -08:00
sla chore: Migrate to next Switch component (#12005) 2025-07-23 13:56:17 +05:30
teams feat: Update Inbox/Team creation UI (#12305) 2025-09-02 14:11:38 +05:30
settings.routes.js feat: SAML UI [CW-2958] (#12345) 2025-09-15 19:33:54 +05:30
SettingsHeader.vue chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
SettingsLayout.vue feat: Agent assignment policy index page with CRUD actions (#12373) 2025-09-10 12:07:21 +05:30
SettingsSubPageHeader.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
SettingsWrapper.vue feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
Wrapper.vue chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00