You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally I was going to just use React but given the number of props, it made sense to use a typechecker. Using Jest for unit-testing was a no-brainer.
The progress bar is essentially broken up into a container (PureComponent) and presenter (Stateless Component), primarily so that the container manages state issues.
Listener and handleExternalUpdate callback for handling managing external state changes have been commented out, it felt adequate at this time to just show how they'd be used
improvement ideas/to-do's
Redux
Improve test coverage: currently am just ensuring components render properly based on props
Currently props overwrite css in progress-bar.css, would be better to make use of defaultProps
Add aria options to make the progress bar accessible?
Add option to make the progress bar continuous, like a loading icon?
The components could probably be named better
optional props to override CSS
name
type
default
description
min
number
0
custom progress bar minimum-starting point
max
number
100
custom progress bar maximum-ending point
shouldSelfIncrement
boolean
false
progress bar will increment automatically
selfIncrementInterval
number
500ms
if set to true, the interval time for auto incrementing