learn-awesome / learn

A social network of lifelong learners built around humanity's universal learning map.
https://learnawesome.org/
Other
343 stars 40 forks source link

Add ReviewTags component #223

Open nileshtrivedi opened 3 years ago

nileshtrivedi commented 3 years ago

If you're logged-in and go to Random item page, you will see this tags-UI on the right side: image

This needs to be re-implemented as an inline UI component with Tailwind CSS + AJAX. I don't think it will need any Javascript as such. Tailwind UI has a Basic ButtonGroup component which can be taken as the starting point.

image

The major enhancement needed here is that full page-refresh should not be necessary. Remote form should invoke XHR that gets update.js.erb which would replace this entire component with the updated state. (See, how we update the state in FiveStarComponent or SplitButtonComponent.