Publish, edit, renew and delete listings from the web UI
- Form at #/mine/new and #/mine/<id>/edit: coordinates pasted and encoded to a precision-6 geohash in the browser (about 1 km, OSM link to check, no map tiles), euro price parsing, optional exact address saved on the node only - Region guard: refuses places the node does not follow; region fixed on edit - Owner view: days left with a warning under 5 days, manual Renew (30 days), Edit, Delete with confirmation - Tests (jsdom and pure logic), docs, rebuilt web/dist Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -323,3 +323,18 @@ label.check { flex-direction: row; align-items: center; gap: 8px; }
|
||||
.backdrop { align-items: center; }
|
||||
.sheet { border-radius: var(--radius); }
|
||||
}
|
||||
|
||||
/* Publish form */
|
||||
.form { display: grid; gap: 14px; max-width: 44rem; }
|
||||
.form .field label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; }
|
||||
.form .field p { margin: 0; }
|
||||
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea { width: 100%; font-weight: 400; }
|
||||
.form input[aria-invalid="true"], .form select[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--bad); }
|
||||
fieldset.field { border: 0; padding: 0; margin: 0; }
|
||||
fieldset.field legend { padding: 0; font-size: 0.9rem; font-weight: 600; }
|
||||
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
|
||||
.radios label.check { flex-direction: row; font-weight: 400; }
|
||||
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
@media (min-width: 40rem) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
||||
.listing-bar { margin-bottom: 10px; }
|
||||
.listing-bar .actions { align-items: center; flex-wrap: wrap; }
|
||||
|
||||
Reference in New Issue
Block a user