endlessm / kolibri-explore-plugin

The kolibri plugin to add the custom channel representation
MIT License
2 stars 4 forks source link

Library: separate content that is downloaded or still in the cloud #597

Open erikos opened 1 year ago

erikos commented 1 year ago

This is for the Library landing page. (not the search results). There should be two sections. One with items downloaded on your device already. And one with the content you get.

243808752-e65880b7-e6a4-40ed-a05d-bd27cb4c1cb7

erikos commented 1 year ago

(DISCLAIMER: one thing I am not sure yet is how that would work with the alphabetical view we currently use in the online instance).

erikos commented 1 year ago

The design team had an interesting offer to solve this programmatically.

The two sections above are separating content that is on the device and content you can download. In the case of the online instance all of the content is on the device (if we have all the content being displayed here). That means - the logic could be that we do not show the Endless Key Content Collection section when no cards are there. That would work for the online instance. Visually the change to what it is now would be that we would see the Your Library header and still display the cards in alphabetical order.

In the app, we would then have both sections.

The other option is to special case the Library view when on the online instance like we do for the tabs that we show. But I think the above logic would work. Feedback more than welcome. @jofilizola

manuq commented 1 year ago

+1 to not special case. This should be easy to implement by quering the database twice with channel resource available true/false.