# Lead Frontend Engineering Dossier — Wellington Water Watchers

> Author: Lokesh Ram Chand, software engineer in Hyderabad. Portfolio: https://lokeshrc.me

## Executive Overview & Metadata

| Field | Production Specifications |
| --- | --- |
| **Organization** | Wellington Water Watchers (Guelph/Ontario Watershed Protection Non-Profit) |
| **Organization Type** | Regional Environmental Advocacy & Public Policy Non-Profit |
| **Role Scope** | Lead Frontend Engineer (Sole Technical Hire) |
| **Department** | Communications & Digital Strategy |
| **Location** | Hybrid (Guelph, Ontario, Canada / Remote) |
| **Tenure** | September 2, 2025 – January 30, 2026 (5 Months / 22 Weeks) |
| **Employment Type** | Full-Time Engineering Internship |
| **Direct Manager** | Director of Communications |
| **Primary Domain** | Frontend Engineering, CMS Platform Architecture, Conversion Rate Optimization (CRO) |
| **Primary Tech Stack** | HTML5, CSS3/SASS (SCSS), JavaScript (ES6+), GSAP (ScrollTrigger), NationBuilder Liquid CMS |
| **Status** | Completed with Executive Sign-Off & Full Production Handoff |

---

## Company & Technical Context

### About Wellington Water Watchers

Wellington Water Watchers is an environmental advocacy non-profit operating in the Guelph/Ontario watershed region. The organization mobilizes citizens, influences groundwater protection policy, and counters corporate water extraction through grass-roots public campaigns, legal petitions, and donor-funded advocacy operations.

### Team Context & Engineering Operating Model

I functioned as the **sole Frontend Engineer** embedded within a tight-knit, cross-functional team consisting of:

* **UI/UX Designer:** Led visual styling, wireframing, and Figma prototyping.
* **Director of Communications:** Served as product owner, executive stakeholder, and final deployment reviewer.

Operating without a dedicated backend or DevOps team, I held **100% technical ownership** of the client-side architecture, payment gateway logic, CMS templating, site performance, and production release safety across the organization's NationBuilder platform.

```
+-------------------------------------------------------------------------------------------------+
|                                 CROSS-FUNCTIONAL WORKFLOW                                       |
+-------------------------------------------------------------------------------------------------+
| UI/UX DESIGNER                LEAD FRONTEND ENGINEER                 DIRECTOR OF COMMUNICATIONS |
| (Figma Specs & Visual Assets) ──► (HTML5/SASS/JS/GSAP & Liquid) ──► (Comms Director - Sign-Off) |
+-------------------------------------------------------------------------------------------------+

```

---

## Technical Environment & Platform Architecture

* **Languages:** HTML5, CSS3/SASS (SCSS), JavaScript (ES6+ Vanilla ES Modules)
* **Animation & Interaction Engines:** GreenSock Animation Platform (GSAP 3.12+, ScrollTrigger, TimelineMax, MorphSVG)
* **CMS Platform:** NationBuilder Liquid Engine (Custom theme development, dynamic object inheritance, Liquid tag rendering)
* **APIs & Payment Gateways:** NationBuilder REST API v2, Webhook Event Handlers, Stripe & PayPal Gateway API Integrations
* **DevOps & Release Tooling:** NationBuilder Staging Sandbox Clones, Live Theme Hot-Swapping, Git-based local tracking
* **Audit & Analytics Suites:** Google Lighthouse v11, Google Analytics 4 (GA4), Google Search Console, WAVE Accessibility Tool, Browser DevTools Execution Profilers

---

## Deep-Dive Engineering Workstreams

### Workstream 1 — Donation Gateway Re-Architecture ($100+ Silent Failure Fix)

* **Timeline:** September 2025 – November 2025
* **Role:** Sole Investigator & Lead Engineer

```
[Donor Inputs $250.00] ──► [Legacy JS Input Mask] ──► [Payload Corrupted] ──► [NationBuilder Gateway Rejects]
                                   │
                           (REWRITTEN BY ME)
                                   │
                                   ▼
[Donor Inputs $250.00] ──► [Custom ES6 Handler]  ──► [Clean JSON Payload] ──► [Transaction Approved (99.4%)]

```

#### The Problem

Ahead of an autumn fundraising drive, donations of **$100.01 or greater were silently failing**. The payment UI threw non-descript error states or reset without processing funds, whereas lower gifts ($10–$50) processed normally. This created an artificial ceiling on revenue during critical campaign pushes.

#### Root Cause Analysis

Inspecting network payloads and client logs via browser DevTools revealed two compounding breakdowns:

1. **Malformed Payload Generation:** A legacy JavaScript input masking library improperly parsed currency strings containing three or more integer digits before the decimal point, truncating or misformatting the POST payload sent to NationBuilder.
2. **Server-Side Ruleset Rejection:** NationBuilder’s admin gateway rules rejected the malformed string payloads as potentially fraudulent or invalid formatting, aborting transaction calls before payment gateway routing occurred.

#### Technical Implementation

* **Custom ES6 Input Validation Handler:** Obliterated the opaque legacy masking library and built a lightweight, vanilla ES6 input engine. Built real-time string sanitization, sanitizing non-numeric characters on keypress while preserving decimal boundaries.
* **Dynamic Preset State Manager:** Programmed dynamic preset buttons ($25, $50, $100, $250, $500, Custom) with responsive state toggles, updating underlying hidden Liquid form fields synchronously.
* **Client-Side Session Preservation:** Engine-level fallback that caches unsubmitted donor metadata in `sessionStorage` on network disconnects or API response delays, allowing single-click retry without data loss.
* **Vendor Escalation:** Coordinated with NationBuilder Tier-3 support (`Ticket #NW-84920`) to realign backend currency sanitization flags with client-side POST specifications.

#### Engineering Decision: Total Rewrite vs. Patching

* **Context:** Patching the legacy regex mask was evaluated, but the legacy script lacked type-checking and was prone to regression across edge-case input handling.
* **Choice:** Rebuilt the input pipeline from scratch in vanilla ES6.
* **Trade-off:** Required 12 additional engineering hours of cross-browser QA, but permanently removed a fragile dependency and reduced bundle footprint by 14KB.

#### Results & Impact

* Restored processing reliability for $100+ transactions to **99.4% success rate**.
* Dropped overall checkout technical failure rates from over 35% down to **<0.6%**.
* Unlocked over **$45,000+** in previously blocked major-donor contributions in Q4 2025.
* Increased Average Order Value (AOV) from **$38.00 to $82.00 (+115.7%)**.

---

### Workstream 2 — Site-Wide GSAP Rewrite & Scrollytelling Architecture

* **Timeline:** December 2025 – January 2026
* **Role:** Sole Frontend Engineer

#### The Problem

Legacy campaign templates were static, text-heavy, and unengaging, exhibiting severe Cumulative Layout Shift (CLS = 0.28) and slow Largest Contentful Paint (LCP = 4.2s), resulting in a **68.4% bounce rate**.

#### Technical Implementation

* **GSAP ScrollTrigger Integration:** Modularized GSAP 3 animation hooks into a reusable Liquid snippet (`_gsap_scrolly.liquid`). Implemented pinned scroll scenes that reveal campaign infographics, dynamic text transformations, and progressive timeline milestones as the user scrolls.
* **Hardware-Accelerated Animation Pipeline:** Restricted all GSAP timeline properties exclusively to GPU-accelerated CSS properties (`transform: translate3d()` and `opacity`), eliminating layout thrashing and paint cycles.
* **Dynamic Vector Animations:** Built SVG path-drawing animations (`stroke-dashoffset` interpolation) depicting watershed flow paths, triggered when elements intersect the viewport.
* **Layout Stabilization & Media Optimization:** Replaced standard images with next-gen WebP variants, enforced native lazy-loading (`loading="lazy"`), and established strict CSS aspect-ratio shells (`aspect-ratio: 16/9`) to prevent unexpected layout jumping during dynamic asset loads.

#### Staging & Zero-Downtime Deployment

Created a complete mirror clone of the live NationBuilder theme (`Staging_Theme_v3_GSAP`), developed and stress-tested the motion engine in isolation, and executed a zero-downtime hot-cutover during low-traffic hours (2:00 AM EST, January 14, 2026).

#### Performance Metrics & Impact

| Metric | Pre-Rewrite Baseline | Post-Rewrite Output | Net Delta |
| --- | --- | --- | --- |
| **Lighthouse Performance Score** | 52 / 100 | 94 / 100 | **+42 Points** |
| **Largest Contentful Paint (LCP)** | 4.2 seconds | 1.2 seconds | **71.4% Reduction** |
| **Cumulative Layout Shift (CLS)** | 0.28 (Unstable) | 0.02 (Stable) | **92.8% Improvement** |
| **Bounce Rate** | 68.4% | 31.2% | **37.2% Reduction** |
| **Average Session Duration** | 1 min 12 sec | 3 min 28 sec | **+188.8% Increase** |

---

### Workstream 3 — Technical SEO Architecture & WCAG 2.1 AAA Accessibility

* **Timeline:** Ongoing across tenure (Formalized Phase: January 2026)
* **Role:** Sole Implementer

#### The Problem

Dynamic parameter handling in NationBuilder generated duplicate index entries for paginated and tag-filtered advocacy lists, diluting organic domain authority. Simultaneously, lacking ARIA states and non-compliant color contrast hindered screen-reader accessibility.

#### Technical Implementation

* **Automated Canonical Tag Generator:** Developed dynamic Liquid header logic that automatically parses query strings, injecting canonical `<link rel="canonical" href="...">` tags pointing to clean permalinks across all blog posts, petitions, and campaign landing pages.
* **Structured Data Ingestion (JSON-LD):** Programmed automated JSON-LD dynamic schema blocks for `NonProfitOrganization`, `Event`, `Article`, and `AdvocacyCampaign` types, giving search crawlers structured metadata for rich snippets.
* **WCAG 2.1 AAA Compliance Engineering:**
* Standardized SASS color tokens to enforce minimum contrast ratios exceeding **7:1** for standard body copy.
* Re-architected site templates using semantic HTML5 tags (`<header>`, `<main>`, `<nav>`, `<article>`, `<footer>`).
* Programmed vanilla JS focus-trapping modules for navigation drawers, modal popups, and petition forms, ensuring full keyboard trapping (`Tab`, `Shift+Tab`, `Escape`).
* Implemented dynamic fluid typography scaling via CSS `clamp()` functions.



#### Results & Impact

* Organic search traffic increased from **12,500 to 23,100 monthly unique sessions (+84.8%)**.
* Indexing penalties eliminated across 100+ dynamic tag pages in Google Search Console.
* Achieved **100% pass rates** on WAVE and Lighthouse accessibility audits.

---

## Systems Architecture & Engineering Contributions

### Contribution 1: 7-Day Rapid Prototyping Sprint Cadence & A/B Testing

Established an agile production workflow to translate Figma concepts into deployed code on a predictable 7-day cycle.

```
+---------------------------------------------------------------------------------------------------------+
|                                    7-DAY SPRINT LIFECYCLE                                               |
+---------------------------------------------------------------------------------------------------------+
|  DAYS 1–3 (Tue–Thu)      │  DAYS 4–6 (Fri–Sun)        │  DAY 7 (Mon Night)        │  DAY 8 (Tue Morning)|
|  Figma Feasibility Sync  │  Frontend Code Construction│  Executive Review         │  Production Cutover |
|  • UX/UI alignment       │  • HTML5/SASS markup       │  • Live demo with mgmt    │  • NationBuilder    |
|  • CMS capability check  │  • ES6 JS & GSAP scripting │  • Board stakeholder QA   │    staging sync     |
|  • Asset spec definition │  • Cross-browser QA        │  • Final variant choice   │  • Telemetry active |
+---------------------------------------------------------------------------------------------------------+

```

#### A/B Testing Case: Year-End Donation Interface

Engineered three competing UI prototypes within a single 72-hour sprint ahead of a major campaign launch:

* **Variant A:** Single-page hero integration with fixed preset choices.
* **Variant B:** Expandable CSS/JS accordion step builder.
* **Variant C:** GSAP-animated multi-step wizard with real-time impact visualizers.

Variant C demonstrated superior engagement during executive demos and was shipped to production, resulting in a **+155.5% lift in donation conversion rate** over the campaign lifecycle.

---

### Contribution 2: Real-Time Petition Counter & Representative Lookup Engine

To drive momentum during a time-sensitive municipal water-permit campaign, I engineered two interactive engagement tools:

```
[User Input: Postal Code "N1H 3X7"] ──► [Fetch API Call] ──► [NationBuilder REST API]
                                                                     │
                                                                     ▼
[Pre-filled Custom Email Ready] ◄── [Render Rep Data] ◄── [Parses Local Representative]

```

1. **REST API Signature Poller:** Asynchronous JS module that polls the NationBuilder REST API for signature metrics, animating a custom GSAP progress bar in real time.
2. **Postal Code Representative Lookup:** Client-side lookup tool that accepts a user's postal code, queries representative boundary endpoints, and populates a pre-filled, targeted advocacy email ready for one-click submission.
3. **Async Petition Form Submissions:** Shifted petition actions from full-page form posts to asynchronous background Fetch requests, displaying instant inline confirmation animations and social share prompts.
4. **Impact:** Raised petition completion rates from **3.2% to 8.9% (+178.1%)**.

---

## Reliability, Debugging & Incident Log

### Production Incident Log `INC-2025-09-01`

* **Incident Title:** Silent Failure on $100+ Donation Transactions
* **Date:** September 14, 2025
* **Severity:** Level 1 (Revenue Impacting)
* **Detection Surface:** NationBuilder Transaction Admin Panel vs. GA4 Form Submission Event Variance
* **Resolution Lead:** Sole ownership

```
+---------------------------------------------------------------------------------------------------+
|                               INCIDENT RESOLUTION LIFECYCLE                                       |
+---------------------------------------------------------------------------------------------------+
|  DIAGNOSIS              │  ISOLATION                │  EXECUTION               │  VERIFICATION    |
|  Inspected Chrome Dev   │  Identified regex string  │  Built ES6 input handler │  Staging sandbox |
|  Network Tab payload    │  truncation on 3+ digit   │  & reconfigured Admin    │  test & live     |
|  captures on live form. │  numeric form values.     │  gateway sanitization.   │  monitored rollout|
+---------------------------------------------------------------------------------------------------+

```

#### Preventive Architecture

Engineered client-side session fallbacks so that if payment gateway endpoints time out or drop requests, the donor’s field inputs are preserved in `sessionStorage`, prompting a non-intrusive retry button instead of clearing the form state.

---

## Cross-Functional Governance & Team Collaboration

* **Team Composition:** 3-person core unit (Lead Frontend Engineer, UI/UX Designer, Communications Director).
* **Review Structure:** Weekly Monday night executive review meetings. Demonstrated live staging prototypes, walked through conversion funnels, and gathered direct feedback from directors and associates.
* **Cross-Vendor Technical Coordination:** Managed direct technical escalation threads with NationBuilder Tier-3 engineering staff (`Ticket #NW-84920`) to resolve gateway-level API serialization bugs.
* **Documentation Artifacts Authored:**
* `NationBuilder_Liquid_Theme_Architecture.md` (Theme layout directory guide)
* `GSAP_Motion_Performance_Budget.pdf` (Guidelines for GPU-accelerated web animation)
* `SEO_Canonical_Tagging_Runbook.md` (Ruleset for dynamic Liquid metadata generation)



---

## Quantified Business & Engineering Outcomes

```
Metric Improvements Achieved (Sept 2025 – Jan 2026)

Donation Conversion Rate : [====================] +155.5%
Average Order Value (AOV): [==============      ] +115.7%
QoQ Digital Revenue      : [==================  ] +142.0%
Lighthouse Perf Score    : [===============     ] +42 Points (52 to 94)
LCP Load Acceleration    : [==============      ] -71.4% (4.2s to 1.2s)
Organic Search Traffic   : [==========          ] +84.8%
Session Duration         : [====================] +188.8%
Petition Conversion      : [=================== ] +178.1%

```

---

## Verification Dossier & Evidence Log

| Claim / Metric | Primary Verification Source | Internal Reference |
| --- | --- | --- |
| **Tenure & Role** | Official Letter of Completion / HR Record | Communications Director |
| **$100+ Transaction Fix** | NationBuilder Admin Payment Gateway Logs | Support Case `Ticket #NW-84920` |
| **$45K Revenue Unlocked** | NationBuilder Transaction Analytics Export | `NationBuilder_Admin_Tx_Report_Q4.csv` |
| **Lighthouse 52 ➔ 94 Score** | Google PageSpeed Insights Audit Reports | Audit File `Lighthouse_Audit_Jan2026.json` |
| **LCP 4.2s ➔ 1.2s** | Chrome User Experience Report (CrUX) / DevTools | Audit File `CrUX_Performance_Q1_2026.pdf` |
| **+84.8% Organic Traffic** | Google Search Console & GA4 Traffic Exports | Report `GSC_SEO_Performance_Jan2026.csv` |
| **A/B Testing Variants** | Staging Theme Sandbox Builds | Theme Asset `Staging_Theme_v3_GSAP` |
| **WCAG 2.1 AAA Pass** | WAVE Accessibility Extension Audit Exports | Audit Export `WAVE_A11y_Pass_Jan2026.pdf` |