chatwoot/public
Sandeep pandey 16b8693e1b
fix: standardize contact company field on company_name (#14099)
Standardizes the contact company import/filter/automation contract on
`company_name`.

Closes #14096
Revives #9907

## Why

Contact company is read across the current CRM/contact UI from
`additional_attributes['company_name']`, but CSV import and a few
backend filter/automation paths still used the older `company` key. That
meant imported company values could be saved in a place the dashboard,
sorting, filters, and automation conditions did not consistently read
from.

Based on the production data check, the legacy `company` automation
configuration is effectively dead: the affected account did not have
contacts populated with `additional_attributes['company']`. So this PR
intentionally avoids adding long-term fallback behavior and uses
`company_name` as the single key going forward.

## What changed

- Contact CSV import now writes only `company_name` into
`additional_attributes['company_name']`.
- The example contact import CSV now uses the `company_name` header.
- Contact company sorting/filter config now uses `company_name`.
- Automation condition config now uses `company_name`.
- Existing standard automation conditions with `attribute_key:
'company'` are migrated to `company_name`.
- Existing saved contact filters with standard `attribute_key:
'company'` are migrated to `company_name`.
- Custom attributes named `company` are preserved and are not rewritten
by the migration.

## How to test

- Import a contact CSV with a `company_name` column and confirm the
Contact Company field is populated.
- Sort contacts by Company and confirm imported contacts are ordered
correctly.
- Create/edit an automation with Company as a condition and confirm it
saves with `company_name`.
- Verify existing saved contact filters and automation rules using the
old standard `company` key are migrated to `company_name`.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
2026-04-27 18:43:26 +05:30
..
assets chore(v5): update priority icons (#13905) 2026-03-26 09:20:36 +05:30
audio feat(ce): Add Year in review feature (#13078) 2025-12-15 17:24:45 -08:00
brand-assets chore: Improve signup flow, reduce the number of inputs (#13350) 2026-01-22 18:47:42 -08:00
dashboard/images feat: notion OAuth setup (#11765) 2025-06-26 19:16:06 +05:30
downloads fix: standardize contact company field on company_name (#14099) 2026-04-27 18:43:26 +05:30
integrations feat: TikTok channel (#12741) 2025-12-17 07:54:50 -08:00
404.html fix: Replace default Rails error pages with custom designs (#13514) 2026-02-11 07:57:00 -08:00
422.html fix: Replace default Rails error pages with custom designs (#13514) 2026-02-11 07:57:00 -08:00
500.html fix: Replace default Rails error pages with custom designs (#13514) 2026-02-11 07:57:00 -08:00
android-icon-36x36.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
android-icon-48x48.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
android-icon-72x72.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
android-icon-96x96.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
android-icon-144x144.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
android-icon-192x192.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-57x57.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-60x60.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-72x72.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-76x76.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-114x114.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-120x120.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-144x144.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-152x152.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-180x180.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon-precomposed.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-icon.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
apple-touch-icon-precomposed.png Initial Commit 2019-08-14 15:18:44 +05:30
apple-touch-icon.png Initial Commit 2019-08-14 15:18:44 +05:30
browserconfig.xml [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
favicon-16x16.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
favicon-32x32.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
favicon-96x96.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
favicon-512x512.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
favicon-badge-16x16.png Fix: Adds favicon badge for notification alert. (#2079) 2021-04-13 19:25:19 +05:30
favicon-badge-32x32.png Fix: Adds favicon badge for notification alert. (#2079) 2021-04-13 19:25:19 +05:30
favicon-badge-96x96.png Fix: Adds favicon badge for notification alert. (#2079) 2021-04-13 19:25:19 +05:30
manifest.json [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
ms-icon-70x70.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
ms-icon-144x144.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
ms-icon-150x150.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
ms-icon-310x310.png [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
robots.txt chore: Block Search bots from rendering widget (#1331) 2020-10-10 11:48:31 +05:30
sw.js Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30