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) {
case TOGGLE_ALL_PLANS:
return action.showAllPlans;
default:
return state;
}
}
export function maxProjectAmounts(state = [], action = {}) {
View Panda Application States.md

Panda Application States

Concurrent Steps

Step

  • Record Notice Sent to Lender Date

Step

  • Verify Intended Scope of Work
View Champ Application States.md

Champ States

Application Phase

Application Review

Provide Project Info

Select Payment Term

Review Financing Summary

View application-details-response.md
{
  "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"
View applications-response.md
{
  "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",
View application-status.md

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
sfletche / import-export-cheatsheet.md
Last active Jun 14, 2017
Module import and export cheatsheet
View import-export-cheatsheet.md

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
Save
Trigger Availability Check
- System Information -> Lead Owner -> Change
- Queue / Homeowner Availability Queue
- Save
You can’t perform that action at this time.