You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
One of the most important piece of Tournesol is its video recommendation page. Tournesol's API returns lists of video sorted by the multiple rating criterias.
The page would have principally two components: 1. The list of video using Tournesol's VideoCard component; 2. The collapsible configuration panel allowing to configure the search preference.
Notes:
The video recommendation API endpoint is still a work in progress (tournesol-backend PR 36). Most of the work on this ticket should be first done without it, probably with a a mock like:
constgetRecommendationsFromAPI=(searchOptions)=>{// TODO use API endpoint insteadreturn[{ ...video_1_metadata},{ ...video_2_metadata},{ ...video_3_metadata},]}
we will only afterwards replace the mock function with the proper API call once it is available
Visual guide for these components can be found on Figma. ⚠️ The search configurations on the Figma mockup are not exactly what we want. For this first iteration, I would recommend only using date and language.
The same Slider components can be used as the one from my current work-in-progress branch: reboot-patch-comparisons
Screenshots:
Configuration collapsed:
Configuration extended:
Details:
A new component for the recommendation configuration. It can be collapsed (best using Material-UI Collapse).
A new component for a list of video cards receiving the list of video metadata as props
A new page at the url /recommendations/ that displays the configuration and the recommendation list and also handles the API connection logic (see notes above)
The /recommendations/ url can also be used with GET parameters to configure the API call (for example: /recommendations/?search=Vaccines&date=...&reliability=100)
Using the search bar in the top bar brings to the page /recommendations/?search={USER_INPUT}
The text was updated successfully, but these errors were encountered:
Context:
One of the most important piece of Tournesol is its video recommendation page. Tournesol's API returns lists of video sorted by the multiple rating criterias.
The page would have principally two components: 1. The list of video using Tournesol's VideoCard component; 2. The collapsible configuration panel allowing to configure the search preference.
Notes:
we will only afterwards replace the mock function with the proper API call once it is available
Visual guide for these components can be found on Figma.⚠️ The search configurations on the Figma mockup are not exactly what we want. For this first iteration, I would recommend only using date and language.
The same Slider components can be used as the one from my current work-in-progress branch: reboot-patch-comparisons
Screenshots:
Configuration collapsed:
![Screenshot 2021-08-29 at 16 35 39](https://user-images.githubusercontent.com/8818081/131254416-21c6ec1c-2e04-4885-a53a-458143e8a52b.png)
Configuration extended:
![Screenshot 2021-08-29 at 16 35 30](https://user-images.githubusercontent.com/8818081/131254420-a6864186-4432-46e1-85c7-0f4273e3e1ea.png)
Details:
/recommendations/
that displays the configuration and the recommendation list and also handles the API connection logic (see notes above)/recommendations/
url can also be used with GET parameters to configure the API call (for example:/recommendations/?search=Vaccines&date=...&reliability=100)
/recommendations/?search={USER_INPUT}
The text was updated successfully, but these errors were encountered: