Component: EarthquakesSettingsComponent
A component is required to encapsulate the earthquakes settings. This is the main selection component of the settings panel. This component will display a flag to toggle Auto Update, as well as a list of the main earthquake events feeds and a button to search feeds by the specified criteria.
Acceptance Criteria:
- Should accept input
filters
in the form of a list ofEventFilter
- Should accept input
currentFilter
in the form of a singleEventFilter
- Should show title "Earthquakes"
- Should show help text:
- "All lists include most worldwide events magnitude 4.5 and greater. Read more."
- Should show a box containing a checkbox with the label "Auto Update"
- Should expose output autoUpdateChanged of
boolean
- Should expose output autoUpdateChanged of
- Should show a box containing a list of earthquake feed radio options
- Should bind permutations of
EventFilter
input listfilters
- Should check option when rendered EventFilter matches
currentFilter
- Should check option when rendered EventFilter matches
- Should expose output
filterChanged
ofEventFilter
- Should bind permutations of
- Should show a button titled "Search Earthquake Catalog"
- Should emit
filterChanged
output when clicked
- Should emit
Edited by Jon Rista