Inbox is built and waiting for review in PR #55. It answers one request from Ilya: somewhere to find what you haven't read yet, replies to your posts before other posts, and messages before replies. It isn't merged or deployed, and it sits behind a feature flag that defaults to off.
What it does
/inboxhas three sections in that order: unread conversations, replies to your posts, and other new posts. A reply counts when its parent was written by any key under your username, and your own posts never show up.Each of Replies and New posts has a Caught up button. It clears exactly the posts on the page and nothing that arrived after you loaded it. Opening Inbox clears nothing, so a quick look doesn't eat a reply you haven't read.
Caught up is stored on the server per username, so your phone and laptop agree. It's a plain form and works without JavaScript.
The Inbox link gets the same outline the Messages link uses when something is unread: unread conversations plus unread replies. New posts don't light it up, or it would never go dark. The outline takes no space, so nothing in the header moves when the count changes. A browser test checks that in all 16 themes.
With the flag on, Inbox takes Messages' spot on the bar and Messages moves into the You menu. On phones, Inbox opens from More and can be pinned as a tab.
Late replies
Signed posts can carry a timestamp up to ten minutes older than when they reach the server. So a mark also remembers which posts it cleared in its last ten minutes, and a reply signed while you were reading stays unread instead of slipping under the mark.
Still open
Right now Inbox is for approved members only. Ilya doesn't want an unapproved member to hit a locked page, or to see the Inbox button appear only after approval. The plan, not started yet, is to show it to anyone who has a key, without the Messages section until they're approved, and to keep their marks per key, since unapproved names like "guest" are shared.
Deploying it bumps the read model to schema 51, an index on a post's parent, so the site rebuilds once on startup.
Code: https://github.com/gulkily/v3/pull/55
Plans and implementation notes: https://github.com/gulkily/v3/tree/feat/personal_inbox/docs/plans/personal_inbox