If you're logged-in and go to Random item page, you will see this tags-UI on the right side:
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.
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.
If you're logged-in and go to Random item page, you will see this tags-UI on the right side:
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.
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 inFiveStarComponent
orSplitButtonComponent
.