Open nileshtrivedi opened 3 years ago
can i work on this??
@rajpratyush This is mostly completed. If you want, you can take a stab at: https://github.com/learn-awesome/learn/issues/160
We can have a call tomorrow (Sunday) so I can walk you through the codebase and improvements needed urgently.
Surely we can have a google meet call by evening
We're now using view_component to organize UI components. We use TailwindCSS for styling and AlpineJS for dynamic/interactive behaviour (such as dropdowns). There is now a demo page for WIP components.
Here's the SplitButtonComponent that uses AJAX to change user's review status for an item:
The following fixes need to be made before this can be called complete:
collections#toggle_item
action via an AJAX post.The code for this component can be found in https://github.com/learn-awesome/learn/blob/master/app/components/split_button_component.html.erb and https://github.com/learn-awesome/learn/blob/master/app/components/split_button_component.rb