Place names for --region, an expiry reminder, and e2e checks through the UI
--region takes a place name as well as a code ("Bonn", "Köln", "cologne",
"name:dub" to force a name that looks like a code). The node uses the same
GeoNames list as the browser (internal/places), follows the place's cell plus
any cell within 40 km, and prints what each name became.
The node reminds the owner on its terminal, once a day per listing, about
every listing with 5 days or less left (the UI marks the same range). The
sign-in token is never in the line.
scripts/e2e/ui.ts drives the real bundle in jsdom against real nodes: a buyer
writes from a listing page, the owner reads and answers in their own page and
the buyer's page shows the verified answer; a node with no region gets its
first one by place name in the browser and keeps it over a restart. e2e.sh
also checks --region by name and the reminder, and keeps its scratch files in
the checkout's .tmp.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -30,12 +30,15 @@ node says so on its terminal (listing, link to the conversation, never the text)
|
||||
|
||||
Owners publish from the same screen: "New listing" takes a title, price and
|
||||
pasted coordinates (only a ~1 km area is published, never the address), and
|
||||
listings can be edited, renewed (30 days, manually) or deleted there.
|
||||
listings can be edited, renewed (30 days, manually) or deleted there. Renewing is
|
||||
manual on purpose, so abandoned listings lapse; the node reminds you on its
|
||||
terminal, once a day, about every listing with 5 days or less left.
|
||||
|
||||
**Regions** are the areas a node keeps listings for (3-character geohash cells,
|
||||
about 100 to 150 km wide). A new node follows none: the owner chooses them in the
|
||||
browser, "My listings", then "Regions" (or `--region` sets them at the first start).
|
||||
Search a place
|
||||
browser, "My listings", then "Regions", or `--region` sets them at the first start:
|
||||
a region code (`--region u1j`) or a place name (`--region Bonn --region "Köln"`;
|
||||
the node says which cells a name became). Search a place
|
||||
by name (Bonn, Cologne, München, …); the page offers the place's own cell and any
|
||||
cell within about 40 km, and the change applies at once, without a restart. The
|
||||
choice is kept in `regions.json` in the data directory and wins over `--region`
|
||||
|
||||
Reference in New Issue
Block a user