RomainVialard / Google-Plus-Community-Migrator

https://docs.google.com/document/d/1UGhxaN5AiRXXL0Ki0DlVWLYJo_YYiEYhM2w1caRhljU/edit
12 stars 5 forks source link

Display notification when all posts have been loaded #8

Open RomainVialard opened 5 years ago

RomainVialard commented 5 years ago

When the web app is opened in a web browser, it displays the last 10 posts and it will load more posts as user scrolls down. Best would be to add a little notification in the web app, indicating when there are no more posts to load.

As the web app is using MDL we can use a snackbar to trigger the notification: https://getmdl.io/components/index.html#snackbar-section

RomainVialard commented 5 years ago

A Toast now displays the nb of posts loaded + loading status each time user scrolls down to the bottom of the page. https://github.com/RomainVialard/Google-Plus-Community-Migrator/blob/f0b91f516b940d23603395dedaea22f6529a5014/Web%20App/scripts/main.js#L60

But it should also detect when there are no more posts to retrieve from Firebase.