diff --git a/NEWS.md b/NEWS.md index 2d9bf2017b..739b7de2c0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,7 @@ Development - Improve concurrent Ghost Tables syncs handling ([#15272](https://github.com/CartoDB/cartodb/pull/15272)) - Fix consent screen in OAuth apps without user ([#15247](https://github.com/CartoDB/cartodb/pull/15247)) - Migrate old industry values to new ones ([#15273](https://github.com/CartoDB/cartodb/pull/15273) +- Update user industries options with the allowed values from Hubspot ([#15265](https://github.com/CartoDB/cartodb/pull/15265)) - ArcGIS connector: Stop skipping ids on failure 4.31.0 (2019-11-19) diff --git a/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js b/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js index 4b6e919187..f2287d530f 100644 --- a/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js +++ b/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js @@ -23,10 +23,11 @@ const REQUIRED_OPTS = [ // These lists must match the options of the correspondant Hubspot enumeration properties. They can be retrieved from: // https://api.hubapi.com/properties/v1/contacts/properties/named/industry?hapikey=KEY const INDUSTRIES = [ - 'Apparel & Fashion', 'Banking & Financial Services', 'Business Services', 'Consulting Services', - 'Consumer & Retail', 'Education & Research', 'Energy & Mining', 'Government', 'Health & Medical', 'Insurance', - 'Manufacturing', 'Marketing & Advertising', 'Natural Resources & Environment', 'Non-Profit', 'Other', 'Real Estate', - 'Software & Technology', 'Transportation & Logistics', 'Utilities & Communications' + 'Architecture, Engineering and Construction', 'Banking and Financial Services', 'Cities and Government', + 'Consulting', 'CPG', 'Education and Research', 'Health and Medical', 'Insurance', 'Journalism and Media', + 'Manufacturing', 'Marketing and Advertising', 'Mining', 'Natural Resources and Environment', 'Non-Profit', + 'Real Estate', 'Retail', 'Software and Tech', 'Sports and Entertainment', 'Telecommunications', + 'Transport and Logistics', 'Utilities', 'Other' ]; const COMPANY_EMPLOYEES_RANGES = ['1-5', '5-25', '25-50', '50-100', '100-500', '500-1000', '1000+']; diff --git a/lib/assets/test/spec/dashboard/views/profile/profile-form-view.spec.js b/lib/assets/test/spec/dashboard/views/profile/profile-form-view.spec.js index e25f467aff..2b5505b7b2 100644 --- a/lib/assets/test/spec/dashboard/views/profile/profile-form-view.spec.js +++ b/lib/assets/test/spec/dashboard/views/profile/profile-form-view.spec.js @@ -119,7 +119,7 @@ describe('dashboard/views/profile/profile-form/profile-form-view', function () { // Industry const industryDropdown = view.$('#user_industry'); - expect(industryDropdown.find('option').length).toBe(21); + expect(industryDropdown.find('option').length).toBe(24); expect(industryDropdown.find('option:checked').text()).toContain(INDUSTRY); }); diff --git a/package-lock.json b/package-lock.json index 078be845c9..d5cf252108 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "cartodb-ui", - "version": "1.0.0-assets.140", + "version": "1.0.0-assets.141", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b0deaefdee..3e28bec598 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cartodb-ui", - "version": "1.0.0-assets.140", + "version": "1.0.0-assets.141", "description": "CARTO UI frontend", "repository": { "type": "git",