Description
When users enroll leads into a campaign inside the builder (campaign-builder.html), they are presented with a simple flat list of leads. Enrolling leads one-by-one is tedious. We need to add tag filtering on the lead targeting screen.
User & Contributor Value
- Contributors: Integrating filters inside dynamic JavaScript template rendering loops and updating local array states.
- Users: High impact. Allows enrolling thousands of targeted leads in bulk (e.g. enrolling only leads tagged "Q3 Leads").
Code Locations
- frontend/campaign-builder.html
Implementation Guide
- Filter Dropdown: Add a tag filter select input above the lead enrollment table in
campaign-builder.html.
- Filter Logic: In the JS rendering logic (
renderLeadsTab()), read the selected tag filter. Filter the leads array and only show matching leads. Add a "Select All Filtered" checkbox to bulk enroll.
Description
When users enroll leads into a campaign inside the builder (
campaign-builder.html), they are presented with a simple flat list of leads. Enrolling leads one-by-one is tedious. We need to add tag filtering on the lead targeting screen.User & Contributor Value
Code Locations
Implementation Guide
campaign-builder.html.renderLeadsTab()), read the selected tag filter. Filter the leads array and only show matching leads. Add a "Select All Filtered" checkbox to bulk enroll.