You are reading content from Scuttlebutt
@mix %6KU/GrKx86nHQ4eb6MXaPuf5UFvRAbdxysIVjTlvOho=.sha256
Re: %m3ofYirri

love that name.

considerations for #rollway :

  • offer different ways to sort by
    • unread
    • most recently updated (with a post, not a like)
    • time of original post
  • make ways of filtering:
    • unread
    • just see threads my friends (or a set of named people)
  • how are updates handled?
    • when does it happen
    • what triggers it
    • do you have duplicates of posts in the feed
  • which direction is "new"

here's what the flow of data looks like for mutant-scroll

Selection_479.jpg

e.g.

  1. the topStream is triggered when scrolling up (in my case this is the 'live' stream of recent data)
  2. this hands new data to the topReduce, which mutates the record of the state
    • here it checks inf there's an existing entry for the card, and if there is, moves that entry to the top of the state array.
    • if there's not, then it just prepends the new card
  3. the state is being perpetually mapped into the view (by mutant)

You can see this code in : https://github.com/ssbc/patchbay/blob/mutant-scroll/app/page/feed.js

If the code looks messy - it is, this is a total MVP hack to see how it feels to use.

oh I called them updateTop not topReduce because it didn't follow a classic reducer signature because mutant...

Join Scuttlebutt now