Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Like Block #8

Open
7 of 11 tasks
widoz opened this issue Apr 27, 2024 · 1 comment
Open
7 of 11 tasks

Implement Like Block #8

widoz opened this issue Apr 27, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@widoz
Copy link
Owner

widoz commented Apr 27, 2024

Block

  • 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...)
  • Make possible to change the icon color within the editor via attributes
  • Add a small animation on hover and on click
  • Add a counter to the post using block binding api

Configuration

  • 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
  • Implement a good solution to serve the configuration assets + enqueuing the wp-api-fetch script when necessary.

Icons

  • 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
@widoz widoz added the enhancement New feature or request label Apr 27, 2024
@widoz widoz added this to the First MVP milestone Apr 27, 2024
@widoz
Copy link
Owner Author

widoz commented Jul 28, 2024

Writing unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant