learn-awesome / learn

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

Fix ItemPanelComponent #219

Open nileshtrivedi opened 3 years ago

nileshtrivedi commented 3 years ago

See app/components/item_panel_component.html.erb (demo is available on /components)

This implements the basic view of an item as it might appear on the topic page, item page, formats page, activity feed, search results, user/expert profile pages and more.

The idea then is to use these components in various views like app/components/items_grid_component.rb

This needs to take in account various situations. For eg, if this is being shown on the formats page, them item_type doesn't need to be displayed. The recommendations may need to be from current_user's friends.

This component will reuse SplitButtonComponent and FiveStarComponent, both of which use AJAX to perform review updates.

nileshtrivedi commented 3 years ago

What Mohit has been working on:

image