Inbox sidebar: contacts list (read-only) #7
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
posta/chat#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#2
What to build
Authenticated users land on
/, which renders a persistent sidebar listing their posta-server contacts (read-only) and a main pane with an empty-state hint. Sidebar shows each contact's avatar (initials fallback with deterministic color from the lifted palette accents), display name (fallback to peer host), and unread count badge derived fromlastReadRowIdversus inbox state. Contacts ordered bylastMessageAtdescending. Uses theinternal/postatyped client to callGET /api/v1/contacts.Acceptance criteria
/(authenticated) renders the page with the sidebar populated fromGET <user-server>/api/v1/contacts/redirects to/login<img>; otherwise 2-letter initials in a circle, color deterministically picked from--forest|--sky|--terracotta|--gold|--mossby hash of peer URLnameinternal/postaclient implementsGetContacts(ctx, token, serverURL)with bearer authBlocked by