Add owner inbox UI with address release

Web: "My listings" (listings, requests of a listing, conversation) in
three panes on wide screens and one at a time on phones, and a sheet or
dialog to release the exact address. Sign-in uses a link printed by
`node run` (token in the URL fragment, kept in sessionStorage only).

API: GET /api/v1/mine (own listings with request counts and whether an
address is saved); inbox rows gain last_dir, needs_reply, preview,
effort and grant_until, and can be filtered by listing.

Docs: PROTOCOL.md and README describe the owner UI and login.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 20:02:51 +01:00
co-authored by Claude Sonnet 5.5
parent 3b0351c774
commit 8edae3ae56
17 changed files with 2400 additions and 49 deletions
+1
View File
@@ -78,6 +78,7 @@ func New(cfg Config) http.Handler {
mux.HandleFunc("GET /api/v1/messages", s.getMailbox)
// ...and the owner's inbox and private address, behind the admin token.
if cfg.Inbox != nil {
mux.HandleFunc("GET /api/v1/mine", s.admin(s.mine))
mux.HandleFunc("GET /api/v1/inbox", s.admin(s.listThreads))
mux.HandleFunc("GET /api/v1/inbox/{id}/{thread}", s.admin(s.getThread))
mux.HandleFunc("POST /api/v1/inbox/{id}/{thread}", s.admin(s.reply))