-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodos.txt
36 lines (30 loc) · 942 Bytes
/
todos.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
todo:
- check: messages, types, error handling
- [mobile] fix scroll cutoff + behavior
- use sentiment connotation (+/-/0) to trigger brief raining (🙂/☹️/😐) emoji effect?
states:
1. waiting for reddit input: "What topic shall we search?"
at submit => {
do reddit api call
if post is valid {
display post.image and go to state 2
} else {
ask for reddit input: "sorry, there was no post matching that topic"
}
}
2. waiting for story input
at submit => {
do google api calls with story and comments from post
if error {
sorry, something went wrong
} else {
display/render sentiment
change to state 1
}
}
Possible Errors:
- error at reddit API call - OK
- no query result
- no query result with image
- error at google API call
- invalid input, like a submit on an empty input?