Last active
March 5, 2019 00:59
-
-
Save mrlarner/e1a3041ed5985a6b0b5c836bf3d098eb to your computer and use it in GitHub Desktop.
Search
This file contains 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 | |
# When the App loads, it should check if a query is provided. | |
# If query is provided, automatically issue the search | |
autosearch -> Search Provided? | |
Search Provided? | |
have query in input field -> Searching | |
no query in input field -> Inactive | |
Input* | |
Inactive* | |
focused -> New Search | |
New Search | |
canceled -> Inactive | |
changed -> Try Search? | |
# Validation optional | |
Try Search? | |
valid input -> Searching | |
invalid input -> Problem | |
Searching | |
# This state should communicate work is being done | |
Waiting* | |
done waiting -> Results? | |
# If one result is returned, automatically show details | |
Results? | |
still waiting -> Waiting | |
oops -> Problem | |
some -> Results | |
none -> No Results | |
one -> Result Details | |
Results | |
show result -> Result Details | |
search again -> New Search | |
go to page -> More Results? | |
Only Page | |
Page* | |
Last Page | |
More Results?* | |
some -> Page | |
none -> Last Page | |
Result Details | |
view results -> Results | |
search again -> New Search | |
No Results | |
try again -> New Search | |
Problem | |
try again -> New Search |
This file contains 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
const render = () => {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment