GithubHelp home page GithubHelp logo

election-match's People

Contributors

tmcmeans avatar

Watchers

 avatar

election-match's Issues

Create Loader component

Handle UI/UX to display progress bar while election data is being fetched

  • Create loader component
  • Serve up some JSX (img or gif) to display loader when data is being fetched

Test DataCleaner File

Use jest/enzyme for testing purposes.

  • Test that methods are called with correct arguments
  • Test that methods return correct OCD-ID address translation

Deploy to Heroku

Although not part of the project specs, it is an enhancement for the app.

Test ApiCalls file

Use jest/enzyme for testing purposes.

  • Test that fetch API has been called with the correct arguments
  • Test that fetch API throws an error if something goes wrong in the fetch call (sad path)
  • Test that async method returns some election results data if response is ok (happy path)

Test AddressForm component

Although I am trying to parse out async/data cleaning methods to a helper file, I'm sure I will be using the AddressForm component to save user data via a controlled form.

  • Test that AddressForm component methods are called
  • Test that state has changed when form data changes (controlled form)

Organize App component

Although I am trying to parse out async/data cleaning methods to a helper file, I'm sure I will be using the App component in some capacity to make fetch calls.

  • Render child components in App
  • Add onSubmit method for changing data
  • Pass props to child components

create AddressForm component

This React component will be a controlled form that will save the user's address data in object format in local state on submit.

  • Create stateful React component
  • Create controlled form for user address entry
  • Create handleInputChange method for saving user data to component's local state
  • Create onSubmit method skeleton for making fetch calls to DW Elections API
  • Add form validation for users

Test App component

Although I am trying to parse out async/data cleaning methods to a helper file, I'm sure I will be using the App component in some capacity to make fetch calls.

  • Test that App component methods are called
  • Test that state has changed when data/props change

Test component UI with jest snapshots

Use jest/enzyme for testing purposes.

  • Snapshot tests for App
  • Snapshot tests for AddressForm
  • Snapshot tests for CardContainer
  • Snapshot tests for ElectionCard
  • Snapshot tests for Loader

Update Readme

  • Make sure documentation reads well
  • Update instructions for running the app on any computer
  • Add screenshots of key features

Create CardContainer and ElectionCard components

The CardContainer component will be the wrapper that each ElectionCard component will live in.

  • Create CardContainer as a functional component to just return some JSX
  • Use data-down/actions-up React architecture to pass election data from App component to CardContainer and down to each ElectionCards
  • Create ElectionCard as a functional component to just return some JSX
  • Display CardContainer and ElectionCards when user hits submit

Create Apicalls.js file

Parse out async functionality to a helper file.

  • Create fetch call method for consuming election data
  • Import Apicalls.js file to App to be called during component lifecycle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.