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
+88 -1
View File
@@ -214,7 +214,7 @@ pre {
}
/* Messages */
.nav { margin-left: auto; }
.nav { margin-left: auto; display: flex; gap: 16px; }
textarea {
width: 100%;
box-sizing: border-box;
@@ -236,3 +236,90 @@ textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px;
.msg .who { color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.grant { border: 2px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 4px 0; }
input[readonly] { width: 100%; box-sizing: border-box; }
/* Owner inbox */
body.wide .top, body.wide main, body.wide .foot { max-width: 80rem; }
.error:empty { display: none; }
.stack { display: grid; gap: 10px; }
.stack label, .sheet label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.9rem; }
.stack input, .sheet input:not([type="checkbox"]), .sheet select, .sheet textarea { width: 100%; }
input[type="checkbox"] { min-height: auto; width: auto; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.note { margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; }
.note.warn { color: var(--warn); background: var(--warn-bg); }
.owner { display: grid; gap: 16px; grid-template-columns: 17rem minmax(0, 1fr) minmax(0, 24rem); align-items: start; }
.pane-title { margin: 0 0 8px; font-size: 1.1rem; overflow-wrap: anywhere; }
.pick { padding: 16px; }
.olist { display: grid; gap: 8px; margin-bottom: 12px; }
.ocard {
display: grid;
gap: 4px;
min-height: 2.75rem;
padding: 12px 14px;
color: var(--text);
text-decoration: none;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.ocard.selected { border: 2px solid var(--accent); padding: 11px 13px; }
.ocard .clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.muted { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
min-height: 2.25rem;
padding: 4px 12px;
font: inherit;
font-size: 0.9rem;
color: var(--text);
background: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
cursor: pointer;
}
.chip.on { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.addr { margin-bottom: 10px; }
.narrow-only { display: none; }
.owner .thread { margin-bottom: 12px; }
.owner .msg { max-width: 92%; }
.owner .msg.in { justify-self: start; }
.backdrop {
position: fixed;
inset: 0;
z-index: 10;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(20, 24, 26, 0.55);
}
.sheet {
width: 100%;
max-width: 32rem;
max-height: 92vh;
overflow-y: auto;
padding: 16px 16px 20px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 16px 16px 0 0;
}
.sheet h2 { margin: 0; font-size: 1.1rem; }
.btn.close { min-width: 2.75rem; padding: 4px 10px; }
/* One pane at a time on a phone: the deepest one. */
@media (max-width: 60rem) {
.owner { grid-template-columns: minmax(0, 1fr); }
.owner > .pane { display: none; }
.owner.depth-1 > .pane-listings,
.owner.depth-2 > .pane-requests,
.owner.depth-3 > .pane-thread { display: block; }
.narrow-only { display: inline-block; }
}
@media (min-width: 40rem) {
.backdrop { align-items: center; }
.sheet { border-radius: var(--radius); }
}