scuttle-post
I've been collecting ideas for scuttle-post
(... which maybe should be scuttle-thread
if likes are included). It's a family member which collects all the commonly wanted actions around post
messages.
Things I want all in one place
- a function
publishThread({ text, channel }, cb)
- a function
publishReply({ text, root }, cb)
which takes care of the detail ofbranch
etc - a function
publishNestedReply({ text, nestRoot }, cb)
likewise takes care of thefork
,branch
root
details a function
publishFork({ text, forkRoot }, cb)
.... this creates a hard fork which doesn't share the same root as this original thread, but points back to the place that was forked froma function
getThread(root, cb)
which builds a thread document which sorts, and files nested replies, and loads in any drafts of replies that were underway
I think the composer could be part of this module - a fairly dense piece of logic (managing attachments, mentions, context of who has spoken in thread, preview, recipients for private msgs), that is currently repeated in multiple places . And drafts functionality should also be attached to the composer, and drink up the context that a draft is being composed in (the thread, and where this compose is in the thread).
Is this similar to what you might be doing with ssb-threads
@andrestaltz ?
Another feature (for observeable threads) I really want: when a person starts composing, lock the thread observeable so that it doesn't update while the person is writing - this is a distraction and means the context within which you're writing might need to change. Also behind the scenese reflect this by locking the branch to the context within which you're writing. Optionally you could have a clam (or calm!) notification telling you if new context has rolled in.