From 374f74b742293a953659d3b5699c6b519028330c Mon Sep 17 00:00:00 2001
From: Wolf
Date: Tue, 29 Sep 2026 23:05:07 +0200
Subject: [PATCH 1/2] =?UTF-8?q?Show=20a=20role's=20copies:=20=C3=97N=20bes?=
=?UTF-8?q?ide=20the=20company=20in=20the=20feed,=20Also=20posted=20and=20?=
=?UTF-8?q?A=20copy=20of=20in=20the=20reader?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-Authored-By: Claude Opus 5.5
---
app/static/app.css | 17 +++++++++++++++++
app/static/roles.js | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+)
diff --git a/app/static/app.css b/app/static/app.css
index 2fcad39..9376299 100644
--- a/app/static/app.css
+++ b/app/static/app.css
@@ -763,6 +763,9 @@ body[data-reader="open"] .row[data-open="true"] {
}
.meta .badge.closed, .reader-meta .badge.closed { color: var(--error); border-color: var(--error); }
.meta .gated { color: var(--error); }
+/* How many postings a row stands for (roles.js `dupes`), newsdesk's "+N more
+ outlets": beside the company and in the accent, not a badge. */
+.dupes { color: var(--accent); white-space: nowrap; }
.excerpt {
font-family: var(--read);
@@ -928,6 +931,20 @@ body[data-reader="open"] .company-strip { display: none; }
}
.prose p { margin: 0 0 1.05rem; }
.reader-out { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
+.reader-note a { color: var(--accent); }
+.reader-copy { margin-top: .8rem; }
+/* The other postings of the role (roles.js `alsoPosted`), newsdesk's "Also
+ covered by": the host over the place, one link each. */
+.also { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
+.also a {
+ display: block; margin-bottom: .55rem;
+ color: var(--dim); font-size: .92rem; text-decoration: none;
+ line-height: 1.4;
+}
+.also a b { display: block; color: var(--faint); font-size: .78rem; font-weight: 600; }
+@media (hover: hover) {
+ .also a:hover { color: var(--fg); }
+}
/* The step through the list, for the pointer that has no `j` and `k`. At the
foot of the pane because that is where a thumb already is. Shown only by
diff --git a/app/static/roles.js b/app/static/roles.js
index 3040f1f..18b9818 100644
--- a/app/static/roles.js
+++ b/app/static/roles.js
@@ -860,6 +860,31 @@
+ words.map((w) => `${esc(w)}`).join("");
}
+ /* How many postings the row stands for, when a board or another host
+ lists the same role more than once (`dupes`); the reader lists them. */
+ function dupes(role) {
+ const n = (role.copies || 0) + 1;
+ return n > 1 ? `×${n}` : "";
+ }
+
+ /* The other postings of this role, each a link to where it is posted,
+ labelled by host and place, as newsdesk's "Also covered by". */
+ function alsoPosted(r) {
+ const copies = (Array.isArray(r.copies) ? r.copies : [])
+ .filter((c) => safeUrl(c.original_url));
+ if (!copies.length) return "";
+ return ``;
+ }
+
function drawRow(el, role) {
const scored = role.score !== null && role.score !== undefined;
const pct = scored ? Math.round(Math.min(1, Math.max(0, role.score)) * 100) : 0;
@@ -871,6 +896,7 @@
${esc(role.title || "(untitled)")}
${role.company ? companyName(role) : ""}
+ ${dupes(role)}
${role.place ? `${esc(role.place)}` : ""}
${badges(role)}
${ago(role.posted_at)}
@@ -1244,6 +1270,8 @@
${tagChips(r.tags)}
${esc(r.title || "")}
+ ${loaded && r.dup_of ? `A copy of
+ the posting the list shows.
` : ""}
${pay ? `${esc(pay.range)}
${pay.detail ? `${esc(pay.detail)}
` : ""}
${pay.note ? `${esc(pay.note)}
` : ""}` : ""}
@@ -1259,6 +1287,7 @@
${body}
${out ? `Read it on ${esc(host(out) || "the board")} ↗
` : ""}
+ ${loaded ? alsoPosted(r) : ""}
${esc(r.title || "")}
${loaded && r.dup_of ? `A copy of
- the posting the list shows.
` : ""}
+ a posting the feed lists once.
` : ""}
${pay ? `${esc(pay.range)}
${pay.detail ? `${esc(pay.detail)}
` : ""}
${pay.note ? `${esc(pay.note)}
` : ""}` : ""}