diff --git a/frontend/src/integrations/hubspot/components/hubspot-property-map.vue b/frontend/src/integrations/hubspot/components/hubspot-property-map.vue index 9964d9824e..244ab0abd0 100644 --- a/frontend/src/integrations/hubspot/components/hubspot-property-map.vue +++ b/frontend/src/integrations/hubspot/components/hubspot-property-map.vue @@ -76,11 +76,20 @@ const enabled = computed({ }); const getLabel = (field: string) => { - const label = field + const is12MonthPresent = field.includes('12Month'); + let sentence = field .replace('attributes.', '') + .replace('12Month', '') .replace('_', ' ') - .replace(/([A-Z])/g, ' $1'); - return label.at(0).toUpperCase() + label.substring(1).toLowerCase(); + .replace(/([A-Z])/g, ' $1') + .trim(); + + if (is12MonthPresent) { + sentence = sentence + .replace(/^/, 'Annual '); + } + + return sentence.charAt(0).toUpperCase() + sentence.slice(1).toLowerCase(); }; diff --git a/frontend/src/modules/automation/config/automation-types/hubspot/config.ts b/frontend/src/modules/automation/config/automation-types/hubspot/config.ts index 3c685cb550..da5d17ed8e 100644 --- a/frontend/src/modules/automation/config/automation-types/hubspot/config.ts +++ b/frontend/src/modules/automation/config/automation-types/hubspot/config.ts @@ -14,9 +14,13 @@ import { HubspotAutomationTrigger, } from '@/modules/automation/config/automation-types/hubspot/types/HubspotAutomationTrigger'; import { HubspotEntity } from '@/integrations/hubspot/types/HubspotEntity'; -import AutomationsHubspotPaywall from './hubspot-paywall.vue'; -import AutomationsHubspotTrigger from './hubspot-trigger.vue'; +import annualEmployeeChurnRate from '@/modules/organization/config/filters/annualEmployeeChurnRate/config'; +import annualEmployeeGrowthRate from '@/modules/organization/config/filters/annualEmployeeGrowthRate/config'; +import employeeCount from '@/modules/organization/config/filters/employeeCount/config'; +import organizationTags from '@/modules/organization/config/filters/tags/config'; import AutomationsHubspotAction from './hubspot-action.vue'; +import AutomationsHubspotTrigger from './hubspot-trigger.vue'; +import AutomationsHubspotPaywall from './hubspot-paywall.vue'; export const hubspotMemberFilters: Record = { noOfActivities, @@ -31,6 +35,10 @@ export const hubspotOrganizationFilters: Record = { headcount, industry, annualRevenue, + annualEmployeeChurnRate, + annualEmployeeGrowthRate, + employeeCount, + organizationTags, }; export const hubspot: AutomationTypeConfig = { diff --git a/frontend/src/modules/organization/components/list/organization-list-table.vue b/frontend/src/modules/organization/components/list/organization-list-table.vue index 36423f185f..ede7bf0c28 100644 --- a/frontend/src/modules/organization/components/list/organization-list-table.vue +++ b/frontend/src/modules/organization/components/list/organization-list-table.vue @@ -484,6 +484,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + +