Show and filter the limits on the Companies list, list the traits on Sources

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-30 16:00:45 +02:00
1 parent 439fc94e78
commit 6451f503f2
3 files changed
+72 -4

No files matched your search

+19 -3
View File
@@ -18,8 +18,9 @@
*
* Under the Follow form of Company boards, a fold lists what each reader
* declares (`/api/readers`): how its list arrives, where the text is, what
* it filters at the source, how it states places, and the robots.txt
* decision taken when it was built.
* it filters at the source, how it states places, how it knows a read is
* complete, its page size and ceiling, which fields its rows state, and the
* robots.txt decision taken when it was built.
*
* The Unmapped section lists what prep could not place, most roles first:
* the place texts no place resolves (`/api/prep/unlinked`), with the
@@ -297,6 +298,20 @@
return shown.length ? shown.join(", ") : "none";
}
/** What the reader declares of its limits, short: how completeness is known,
the page size and ceiling, a teaser beside the detail text, an empty list
that may be an unknown slug, and what its rows state. */
function limits(reader) {
const out = [`complete ${reader.complete}`];
if (reader.page_size) out.push(`${reader.page_size} a page`);
if (reader.ceiling) out.push(`ceiling ${reader.ceiling}`);
if (reader.teaser) out.push("teaser in the list");
if (reader.empty === "suspect") out.push("empty may be an unknown slug");
const fields = Object.entries(reader.fields || {}).map(([name, how]) => `${name} ${how}`);
if (fields.length) out.push(`states ${fields.join(", ")}`);
return out;
}
function renderReaders(readers) {
const fold = document.createElement("details");
fold.className = "prune";
@@ -319,7 +334,8 @@
const sub = document.createElement("span");
sub.className = "sub";
sub.textContent = [`list ${reader.listing}`, `text ${reader.text}`,
`filters ${filters(reader)}`, `places ${reader.places}`, reader.robots].join(" · ");
`filters ${filters(reader)}`, `places ${reader.places}`, ...limits(reader),
reader.robots].join(" · ");
row.append(name, sub);
list.appendChild(row);
}