Last active
August 5, 2020 03:42
-
-
Save EpocSquadron/ece49ddb2955ab518e51cd30041f798c to your computer and use it in GitHub Desktop.
Search Machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search Machine | |
queryEnteredDebounced -> Suggesting | |
Empty* | |
Filled | |
searchRequested -> Loading Results | |
cleared -> Empty | |
Suggesting | |
suggestionSelected -> Filled | |
Displaying Error | |
Loading Results | |
success -> Showing Results | |
error -> Displaying Error | |
noResults -> Showing No Results | |
Results& | |
Sort Selector | |
Sorting By Experience* | |
sortByProximity -> Sorting By Proximity | |
Sorting By Proximity | |
sortByExperience -> Sorting By Experience | |
Radius Filter | |
Filtering | |
Sidebar List | |
Showing No Results* | |
Showing Results | |
Showing Doctors* | |
switch -> Showing Locations | |
selectDoctor -> Expanding Doctor | |
Not Expanding Doctor | |
Expanding Doctor | |
viewDetails -> Doctor Detail Overlay | |
collapse -> Not Expanding Doctor | |
# getDirections -> opens externally | |
# Entry guard based on if there are multiple | |
# locations in the search radius | |
Multiple Locations Message | |
Hidden* | |
Showing | |
Showing Locations | |
switch -> Showing Doctors | |
selectLocation -> Location Detail Overlay | |
History | |
wasDoctors -> Expanding Doctor | |
wasLocations -> Showing Locations | |
# This is shimmed, refer to the Detail Overlay sketch for full spec | |
Overlays | |
close -> History | |
Doctor Detail Overlay | |
Location Detail Overlay | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment