Market import: fill entries in from their websites

A list of just websites and relationships (url:, website:, or a bare
address) can be imported with "Fill in the empty boxes from each
website": each entry is filled in as on New entry, in the background a
few at a time, and saved straight into the Market. Entries already there,
by name or website, are skipped before their site is read; the plan's
limit is kept. The import page shows the progress and each entry's result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 06:41:54 -07:00
co-authored by Claude Opus 5.5
parent 185522c0c3
commit 4692d72d58
10 changed files with 659 additions and 9 deletions
+2
View File
@@ -397,6 +397,7 @@ func (s *Server) Handler() (http.Handler, error) {
mux.HandleFunc("POST /market/{id}/delete", (*Server).inventoryDelete)
mux.HandleFunc("GET /market/import", (*Server).inventoryImportPage)
mux.HandleFunc("POST /market/import", (*Server).inventoryImport)
mux.HandleFunc("GET /market/import/status", (*Server).inventoryFillStatus)
mux.HandleFunc("GET /market/export", (*Server).inventoryExport)
// The Market was the Inventory: its old addresses lead to the new ones
// (308 keeps a form's POST a POST).
@@ -1017,6 +1018,7 @@ var flashes = map[string]string{
"listed": "Added to the mailing list.",
"bing-read": "Read the links from Bing.",
"audited": "The audit is done.",
"filling": "Filling them in from their websites, a few at a time: each takes a minute or two. This page updates as they're done.",
"auditing": "Auditing. It reads up to 300 pages politely, so it takes a few minutes; this page updates when it's done.",
"no-data": "There isn't two weeks of Search Console data yet.",
"crm-test": "Test Lead queued. Hermes creates it on its next run; or run it now (below).",