Skip to content

LO-059 [Intermediate]: Campaign Enrollment Filters based on Lead Tags #396

Description

@Kuldeeep18

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

  1. Filter Dropdown: Add a tag filter select input above the lead enrollment table in campaign-builder.html.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gssoc:approvedGSSoC 2026 approved base points (+50 pts)level:intermediateDifficulty: Intermediate (+35 pts)type:designType: Design (+10 pts)type:featureType: Feature (+10 pts)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions