Repositories and contributors

Repository

CandyPixel

Manages the CandyPixel integration for capturing leads from customer websites.

CandyPixel's intake flow. A website submits form data, the catcher stores it in S3 and acknowledges receipt, and a queue-triggered worker processes it separately.
Illustrative diagram

Browse the repository archive

Archive location. SugarRush/CandyPixel. Purpose based on README.md at d59c937.

Browser script. The candypixel.js history follows Faiz Halim’s removal of jQuery in 2019 and Reza Rosli’s browser rewrite in 2022.

Development history

  1. 2018

    From a website form to a SalesCandy lead

    1. Set up website capture

      Ele Elyiana opened the repository with a README describing a JavaScript snippet for lead-generation pages. Two days later, CandyPixel had manager-side setup for creating an integration and assigning it to a project.

      990cf0b b5526de
    2. Map form fields and submit leads

      On an October feature branch, Ele added form-field mapping and lead submission. Campaign attribution from the page URL followed on 30 October. The mainline included all three the next day.

      444cf22 7487627 49acd3d
    3. Give the manager API a stable record ID

      Ele changed the manager API to look up each integration by its record ID. The embed snippet still carried its own token.

      acabfcc
  2. 2019–20

    Acknowledge the enquiry before processing it

    1. Store website submissions in S3

      Ele added a catcher that stored the request in Amazon S3 and returned success after the write.

      be36d65
    2. Handle messages that failed repeatedly

      Ele added a handler to read the dead-letter queue, where messages went after repeated processing failures.

      56bfbe2
    3. Separate receipt from lead processing

      This snapshot shows the catcher and the SQS-triggered worker as separate functions. The website could receive an acknowledgement as soon as the submission was stored, while the worker processed it separately.

      3b4b494
  3. 2020–21

    Share processing code and extend campaign tracking

    1. Load shared code from a Lambda layer

      Ele moved the common SugarRush library out of a Git submodule and into a Lambda layer, changing how CandyPixel loaded the shared code.

      46a6046
    2. Trace bulk edits

      Wahidiatul Firni added trace messages at several points in the bulk-action handler, making it possible to see how far a bulk edit had progressed.

      c9cf171
    3. Use the tenant’s configured tracking fields

      Ele added an endpoint that looked up the tenant’s configured tracking fields and returned a deduplicated list. The snippet dropped its fixed list of campaign fields in the same revision.

      711717b
  4. 2022

    Adopt the rewritten browser embed

    1. Make the script URL configurable

      Reza Rosli moved the script URL into a variable near the top of the embed snippet. Someone testing a different script location could change it in one place.

      6b0cadb
    2. Update the service snippet for the browser rewrite

      Reza updated the service-side snippet for 3.6.11 and added a compatibility warning for older snippets and custom code. The rewrite itself lives in the separate candypixel.js repository.

      d76e683
    3. Update the template for 3.7.1

      Reza continued updating the service-side template alongside the browser code through the April commit labelled 3.7.1, the last authored change in the archived refs.

      d59c937

Contributors

  • Ele Elyiana

    Primary contributor · 456 authored commits

    Built the manager setup and form mapping, then moved website capture to an S3-backed intake path. A site could acknowledge a stored enquiry while a separate worker processed it for downstream lead ingestion.

  • Reza Rosli

    12 authored commits

    Updated the service’s embed template for the 3.6.11 browser rewrite and gave developers one place to swap the script URL during debugging.

  • Wahidiatul Firni

    1 authored commit

    Added bulk-edit trace messages and corrected the GraphQL handler’s tenant ID lookup.

When contributors were active

Authored commits per quarter through Q1 2023, oldest first. Rows are ordered by the first quarter with activity. Brighter cells show more commits. Scroll across to see later quarters.

Contributor2018 Q32018 Q42019 Q12019 Q22019 Q32019 Q42020 Q12020 Q22020 Q32020 Q42021 Q12021 Q22021 Q32021 Q42022 Q12022 Q2
Ele Elyiana 456 commits · 2018 Q3–2021 Q3 3 43 35 77 71 67 31 37 30 23 19 11 9 0 0 0
Reza Rosli 12 commits · 2019 Q4–2022 Q2 0 0 0 0 0 5 0 0 0 0 0 0 0 0 5 2
Wahidiatul Firni 1 commit · 2021 Q2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0