learn-awesome / learn

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

Fix SplitButtonComponent #217

Open nileshtrivedi opened 3 years ago

nileshtrivedi commented 3 years ago

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:

image

The following fixes need to be made before this can be called complete:

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

rajpratyush commented 3 years ago

can i work on this??

nileshtrivedi commented 3 years ago

@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.

rajpratyush commented 3 years ago

Surely we can have a google meet call by evening