[x] Do not hide the like if the user is not logged in, ask to log in instead. See how to build the UI (modal, login form and so on...)
[x] Make possible to change the icon color within the editor via attributes
[x] Add a small animation on hover and on click
[x] Add a counter to the post using block binding api
Configuration
[x] Resolve the way the configuration is served to the FrontOffice, right now is dispatching an event but we have to make the configuration script a dependency of the @wordpress/interactivity module
[x] Implement a good solution to serve the configuration assets + enqueuing the wp-api-fetch script when necessary.
Icons
[x] Related to block, find a way to serve the SVG icon as a native react component
User
[ ] ~Generalize the findLike if possible to findItem->filter('like') or something similar. Highly depends on how we can generalize the implementation on top of it and how can we assume we're working with the right data format.~
Security
[ ] ~Need to protect the server from multiple fast clicks on the like button~
Rest
[ ] ~Add abort signal~
[ ] ~Ensure responses >= 400 are treated as errors and the popover render~
Block
Configuration
@wordpress/interactivity
modulewp-api-fetch
script when necessary.Icons
User
findLike
if possible tofindItem->filter('like')
or something similar. Highly depends on how we can generalize the implementation on top of it and how can we assume we're working with the right data format.~Security
Rest