Per-agent ranking: votes, affinity and a taste term; settings are three sub-tabs

Votes on roles and company affinity move to role_votes and agent_companies,
one row per search agent, so two agents rank the same roles differently. The
score gains taste, the cosine to mean(liked) - mean(passed) of the agent's
votes, as newsdesk ranks articles. The API takes agent on roles, votes and
companies and falls back to the default agent, the enabled one with the
lowest id.

Settings become Search agents (a list again, with New and Delete), Sources
(job boards, company boards and runs with the message log, one section per
plugin) and Account. Old paths answer 301 to their section.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-28 12:53:41 +02:00
1 parent 515d2250fc
commit a0772519b3
28 files changed
+1461 -668

No files matched your search

+21 -5
View File
@@ -124,6 +124,17 @@ a { color: var(--accent); }
}
.subtabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
/* The jump row under the sub-tabs on Sources: one link per section, since
the page is three sections long. Each section clears the sticky bar when
the anchor lands. */
.jump { display: flex; gap: .25rem .75rem; flex-wrap: wrap; margin: -6px 0 10px; font-size: .9rem; }
.jump a { color: var(--dim); text-decoration: none; }
@media (hover: hover) {
.jump a:hover { color: var(--fg); text-decoration: underline; }
}
section[id] { scroll-margin-top: calc(var(--header-h, 3.5rem) + .5rem); }
.card h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
main {
max-width: 62rem;
margin: 0 auto;
@@ -550,7 +561,7 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
padding: .75rem 1rem;
}
.agent-form h2 { font-size: 1rem; margin: 0; }
.agent-form h2, .agent-form h3 { font-size: 1rem; margin: 0; }
.agent-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.agent-form label.inline { flex-direction: row; align-items: center; gap: .4rem; }
.agent-form input[type="text"], .agent-form textarea, .agent-form input[type="number"] {
@@ -568,7 +579,7 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
.agent-form details[open] summary { margin-bottom: .5rem; }
/* ================================================================ */
/* companies and sources — Settings' Companies and Searches pages, */
/* companies and sources — the Sources page's sections, */
/* static/companies.js and static/sources.js. Package B2's own */
/* section; the rest of the file is not reflowed for it. */
/* ================================================================ */
@@ -576,6 +587,9 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
.section { margin: 1.5rem 0 2rem; }
.section > h2 { margin-bottom: .25rem; }
.source-form { margin-top: 1rem; max-width: none; }
/* The agent select on the filter row: a label beside its box, not above. */
.filters label.inline { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--dim); }
.filters label.inline select { color: var(--fg); }
/* `auto-fit` rather than a fixed count of columns: a row with fewer fields
(Jobindex's Area, say, where Adzuna also needs Country and Place) simply
leaves the boxes it does have at the same width instead of stretching one
@@ -617,6 +631,8 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
gap: .4rem; font-size: .8rem; color: var(--dim);
}
.srow[data-muted="true"], .crow[data-hidden="true"] { opacity: .6; }
/* The agent the form is editing, on the Search agents list. */
.crow[data-current="true"] .name { color: var(--accent); }
.linky {
padding: 0; border: 0; background: none; font-size: .8rem;
@@ -672,9 +688,9 @@ table.list select { padding: .25rem .4rem; }
.top nav a { flex: 1 1 auto; text-align: center; padding: .6rem .4rem; white-space: nowrap; }
.top nav a.icon { flex: 0 0 auto; justify-content: center; padding-inline: .7rem; }
/* Six sub-tabs are too many for one row, and a scrolling strip does not
show that more are off the edge. They wrap, three to a row, as pills
rather than the desktop's underlined row. */
/* Three sub-tabs, one row of pills rather than the desktop's underlined
row; they wrap if a label needs it, since a scrolling strip does not
show that more are off the edge. */
.subtabs { flex-wrap: wrap; border-bottom: none; gap: 6px; }
.subtabs a {
flex: 1 1 30%;