Skip to content

Instantly share code, notes, and snippets.

View sawyerh's full-sized avatar

Sawyer Hollenshead sawyerh

View GitHub Profile
@sawyerh
sawyerh / SketchSystems.spec
Last active August 31, 2020 20:28
Upload verification step states
Upload verification step states
Not started
Skip -> Skipped
Add a file -> Completed
Child date in future -> Not applicable
Not applicable
Skipped
Add a file -> Completed
Completed
@sawyerh
sawyerh / SketchSystems.spec
Last active August 31, 2020 20:27
Verify ID step states
Verify ID step states
Not started
Answer some questions -> In Progress
In Progress
Answer all questions -> Completed
Completed
Review and confirm -> Submitted
Submitted
@sawyerh
sawyerh / machine.js
Created July 7, 2020 15:55
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@sawyerh
sawyerh / clippath.svg
Created June 12, 2012 04:26
SVG Clippath
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sawyerh
sawyerh / SketchSystems.spec
Last active April 23, 2020 21:05
Requests
Requests
Submit in-progress claim -> Request is missing required fields
Submit full form -> All required fields are present
Validation scenarios
All required fields are present
All data is valid -> 200 with no warnings
Some data is invalid -> 400 with errors
Request is missing required fields
Present data is valid -> 200 with warnings
@sawyerh
sawyerh / machine.js
Last active April 23, 2020 21:05
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@sawyerh
sawyerh / ConditionalContent.js
Last active April 5, 2020 15:56
Reusable components for complex multi-page forms
import PropTypes from "prop-types";
import React from "react";
/**
* Conditionally displays the content passed into it, and clears any
* fields if they're hidden when the component unmounts
*/
class ConditionalContent extends React.PureComponent {
componentWillUnmount() {
// Ensure all of the field values are cleared if they're not
@sawyerh
sawyerh / SketchSystems.spec
Last active February 18, 2020 14:34
Confirm your identity
Confirm your identity
Not started
Start -> In Progress
In Progress
Failure -> Failed
Success -> Completed
Failed
Something else? -> In Progress
Completed
@sawyerh
sawyerh / SketchSystems.spec
Last active November 10, 2019 15:46
Screener*
Screener*
Do you live in Vermont?
Yes -> Living situation
No -> Non-resident options
Contact info
Living situation
Stable -> Home address
Temporary -> Mailing address
Homeless -> Mailing address
@sawyerh
sawyerh / github-helper.js
Created February 3, 2018 20:37 — forked from timaschew/github-helper.js
automate a pull request flow via GitHub API - fork, create branch or update from upstream, commit changes, do pull request and optional merge
'use strict'
const Octokat = require('octokat')
const Promise = require('bluebird')
const ORIGIN_USERNAME = 'username-or-organisation'
const ORIGIN_REPO = 'the-origin-repo'
const ORIGIN_BRANCH = 'master'
const WAIT_FOR_FORK = 5
const WAIT_FOR_MERGE = 5