Skip to content

Instantly share code, notes, and snippets.

Scott Fletcher sfletche

Block or report user

Report or block sfletche

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View initialState.js
const initialState = {
pricingPlans: [],
pricingPlansWithRepayment: [],
selectedOptionIdentifier: null,
selectedPreviewOptionIdentifier: null,
error: {},
function reducer(state = initialState, action = {}) {
switch (action.type) {
View combineReducers.js
export function showAllPlans(state = false, action = {}) {
switch (action.type) {
return action.showAllPlans;
return state;
export function maxProjectAmounts(state = [], action = {}) {
View Panda Application

Panda Application States

Concurrent Steps


  • Record Notice Sent to Lender Date


  • Verify Intended Scope of Work
View Champ Application

Champ States

Application Phase

Application Review

Provide Project Info

Select Payment Term

Review Financing Summary

  "id": "80994",
  "api_version": "2.0.0",
  "created_at": "2017-05-23T18:21:43.612+00:00",
  "updated_at": "2017-05-23T18:23:04.517+00:00",
  "origination_source": "champ_superuser",
  "sponsor": {
    "identifier": "cscda",
    "name": "CSCDA"
  "errors": {},
  "applications": [
      "id": "80994",
      "api_version": "2.5.0",
      "created_at": "2017-05-23T18:21:43.612+00:00",
      "updated_at": "2017-05-23T18:23:04.517+00:00",
      "origination_source": "champ_superuser",

Application Status

Application Phases

The 5 Phases of an application (as presented on the Contractor Portal)

  • Application
  • Financing Docs
  • Install & Completion Certificate
  • Funding
  • Closed
View application-response-81279
"phases": [
"name": "application_submission",
"steps": [
"name": "application_submission",
"type": "milestone",
"completed_at": "2017-06-01T00:25:24.842+00:00"
sfletche /
Last active Jun 14, 2017
Module import and export cheatsheet

JS Modules are file-based, meaning one module per file.

Modules are singletons, meaning there's always only one instance of the module (and it's state).

Named Exports

export function foo() { ... }
export let bar = 23;
const baz = [1, 2, 3];
export { baz };
View Clone Lead in Salesforce
View existing Lead in SF
Click Clone
Make sure Lead Status is Unassigned
Change Lead Measure (to help differentiate in Champ) (NOTE: make sure lead measures will align with existing contractors)
Remove Location
Trigger Availability Check
- System Information -> Lead Owner -> Change
- Queue / Homeowner Availability Queue
- Save
You can’t perform that action at this time.