ignatenkobrain / gnome-news

GNU General Public License v3.0
19 stars 7 forks source link

Load more posts by default #58

Open allanday opened 9 years ago

allanday commented 9 years ago

When I add a feed, 10 posts are loaded. This isn't very much.

vrutkovs commented 9 years ago

How about 20? Seems enough after #59 is fixed?

felipeborges commented 9 years ago

what about having a lazy-loading approach. We initially load say 10 items and when the scrollbar is near the bottom, we trigger the loading of 10 more items, and so on...

ps.: this seems a duplicate of #59.

allanday commented 9 years ago

How about 20? Seems enough after #59 is fixed?

That might be OK for the feeds view. However, the "New" view is a bit more complicated...

The "New" view should be sorted by date and time posted, and it should always show a complete history for all feeds within the time span that is being displayed.

There are two options for adding feeds when you are in the new view, therefore:

  1. Posts are always loaded for the time period that is being displayed. For example: if you can see 7 days of posts, 7 days of posts should be loaded.
  2. The view should scroll to the top, time period should be reset to the default (say, 3 days), and posts for that period should be loaded.