Skip to content

Q&A Hearts rework

Tymoteusz Mucha requested to merge tmch74/tc-frontend:hearts_rework into master

Since Hearts are by design unable to manipulate the model of the widget they are embedded in (the "likable"), in some cases (most strikingly in the Q&A-module) wrong values are displayed. New data has to be fetched from the backend in order to display correct information. This rework will:

  • implement the Likeable interface
  • remove the HeartBloc and move its functionality to the Bloc of the module that uses Hearts
  • move the current implementation of Hearts into a legacy directory in order to not break existing modules
  • Make Answers and Questions implement Likeable Interface
  • Add ToggleEvents to both Q & A BLoCs
  • (?)Implement new Hearts in Timeline(?)
Edited by Mateusz Czajkowski

Merge request reports