nicholaschiang / hammock

Move your newsletters outside of your inbox. Focus on and learn from the content you love in a distraction-free reading space.
https://readhammock.com
GNU Affero General Public License v3.0
11 stars 1 forks source link

Archive newsletters that have already been read #5

Closed nicholaschiang closed 3 years ago

nicholaschiang commented 3 years ago

From @jurajpal (or @martinsrna, I'm not sure) on Notion:

Regarding the archive feature - thinking there could be 2 ways:

The Feed then only displays newsletters that are still unread in Gmail inbox and all the read ones and those marked as Archive are in Archive “feed” accessible from user profile menu.

martinsrna commented 3 years ago

Quick question: We need to track scroll position - how does this impact permissions / what we need to store on our end?

Also:

nicholaschiang commented 3 years ago

@martinsrna Tracking scroll position would be pretty easy and wouldn't require any additional permissions. Essentially, I'd just add a database record for each email (using the messageId provided by Gmail's API) and then save metadata about that email in its record (e.g. scroll position, who it's from, etc).

martinsrna commented 3 years ago

That's great news, let's do it this way for sure.