* Try a ReactionCategory abstract 'model' * Use ReactionCategory * Lookup category, pre-reaction * Lookup category > constant * Category can sometimes be nil? * Try something friendlier for code reloading * Refactor: extract point calculation out of Reaction * Reaction Category can have color * Rename reaction points service to follow convention * method signature changed as well, calculate -> call * Fix typo, leading comment, and rename data structures for clarity
23 lines
300 B
YAML
23 lines
300 B
YAML
---
|
|
like:
|
|
position: 1
|
|
icon: later
|
|
readinglist:
|
|
position: 2
|
|
icon: later
|
|
unicorn:
|
|
position: 3
|
|
icon: later
|
|
thumbsup:
|
|
privileged: true
|
|
score: 5.0
|
|
thumbsdown:
|
|
privileged: true
|
|
score: -10.0
|
|
vomit:
|
|
privileged: true
|
|
score: -50.0
|
|
thinking:
|
|
published: false
|
|
hands:
|
|
published: false
|