c2corg / v6_ui

UI for c2c.org v6
GNU Affero General Public License v3.0
7 stars 12 forks source link

Homepage / feed #226

Closed asaunier closed 8 years ago

asaunier commented 8 years ago

This issue gives some details, suggestions and hypothesis concerning the homepage.

Goals of the homepage

A similar homepage is served for both types of users: a feed of activity, using a "cards" layout. The main differences are:

(for a first version?)

See also list pages for common approaches:

The homepage must be fast. Even though its content will greatly vary for authenticated users. Anonymous users will see the same feed at a given time (could we then use Varnish and cache the page).

If the feed is loading using an AJAX request (+ some others when scrolling down), the main HTML page generated by Pyramid/Mako will be the same for all => dogpile/varnish cached? It depends if search engine indexing from the homepage is important.

Data must come from a dedicated "feed" table, to avoid making complicated SQL queries with joins etc.. Its attributes could be :

Actions such as :

API:

UI:

asaunier commented 8 years ago

Could we inspire for instance from the Trello activity feed?

tsauerwein commented 8 years ago

I haven't started thinking about the implementation. But maybe it would make sense to use a framework to manage the activity feed, e.g. https://github.com/tschellenbach/Stream-Framework

asaunier commented 8 years ago

For infinite scrolling see https://github.com/c2corg/v6_ui/issues/21

tsauerwein commented 8 years ago

But maybe it would make sense to use a framework to manage the activity feed, e.g. https://github.com/tschellenbach/Stream-Framework

The Stream framework looks interesting: https://getstream.io/docs/#social-network Depending on what exactly we need, this might be a good option.

asaunier commented 8 years ago

Replaced by https://github.com/c2corg/v6_ui/issues/625