diff --git a/app/static/agents.js b/app/static/agents.js
index 33adf40..e139604 100644
--- a/app/static/agents.js
+++ b/app/static/agents.js
@@ -3,17 +3,19 @@
*
* Every agent from `/api/agents` is a card, newest first: its name, its
* switch, its prompts, its gates in words, its weights, and a link to the
- * Roles tab in its order. The prompts are the body, since fit is measured
- * against the one a role fits best; the weights only share out the terms.
- * The form edits the prompts as rows, and the fetch gate in three parts: the
- * region (the scope select), the place (a short list of lines a role passes by
- * matching any one of: countries, towns, remote) and the role (the fetch terms
- * and the titles to leave out), over a row per remaining rule under Advanced;
- * a gate the three parts cannot say lands in a row, so a load and a save lose
- * nothing. A gate is a field, values and a mode (must, one of, not), with no
- * weight. After it come the feed order (the four weights of the final score and
- * the CV match weights), the cut (the best N by fit and the best M by CV
- * closeness, each with a minimum level) and the size of summarise. Edit turns a card
+ * Roles tab in its order. The prompts are the body, since prompt closeness is
+ * measured against the one a role is closest to; the weights only share out the terms.
+ * The form edits the prompts as rows, and the fetch gate in four parts, in the
+ * ADR's order: the world (the scope select), the location (a short list of
+ * lines a role passes by matching any one of: countries, towns, remote), the
+ * role exclusion (the titles to leave out) and the role fetch (the fetch
+ * terms), over a row per remaining rule under Advanced; a gate the four parts
+ * cannot say lands in a row, so a load and a save lose nothing. A gate is a
+ * field, values and a mode (must, one of, not), with no weight. After it come
+ * the analytics filter (the best N by prompt closeness and the best M by CV
+ * closeness, each with a minimum level), the want feed score weights (prompt
+ * closeness, newness, company like, job like), the CV match weights and the
+ * size of summarise. Edit turns a card
* into the form from the page's ``, in place, and New agent puts a
* blank card on top in the same state. One card edits at a time, so the
* form's ids stay unique. Votes, liked companies and scores are the agent's,
@@ -47,13 +49,14 @@
const DEFAULT_WEIGHTS = { fit: 0.6, recency: 0.2, affinity: 0.2, taste: 0.2,
cv_skills: 30, cv_experience: 25, cv_career: 30 };
// What the models read after a pull, per agent (`app.models.Limits`): the
- // cut is the best `cut_fit_top` roles by fit at `cut_fit_min` or more, then
- // the best `cut_cv_top` by CV closeness at `cut_cv_min` or more that the
- // first list leaves out, and every role liked or saved. Fetch text, extract
- // and judge read the cut; summarise reads the top `summarise_top` of the
- // feed and the roles liked or saved.
+ // analytics filter is the best `cut_fit_top` roles by prompt closeness at
+ // `cut_fit_min` or more, then the best `cut_cv_top` by CV closeness at
+ // `cut_cv_min` or more that the first list leaves out, and every role liked
+ // or saved: the cut. Fetch text, extract and judge read the cut; summarise
+ // reads the top `summarise_top` of each feed order, want and match, and the
+ // roles liked or saved.
const DEFAULT_LIMITS = { cut_fit_top: 500, cut_fit_min: 0.6, cut_cv_top: 150, cut_cv_min: 0.6,
- summarise_top: 50 };
+ summarise_top: 30 };
// The levels of a language, the order of the server's ladder, and how big a
// CV file the browser reads into the box.
const LEVELS = ["basic", "conversational", "professional", "fluent", "native"];
@@ -233,7 +236,7 @@
function weightsLine(row) {
const w = Object.assign({}, DEFAULT_WEIGHTS, row.weights);
- return `fit ${w.fit} · newness ${w.recency} · companies ${w.affinity} · liked ${w.taste}`
+ return `prompt closeness ${w.fit} · newness ${w.recency} · company like ${w.affinity} · job like ${w.taste}`
+ ` · CV match: skills ${w.cv_skills}, experience ${w.cv_experience}, career ${w.cv_career}`;
}
@@ -299,18 +302,18 @@
return sentences.join(" ");
}
- // What the models read after a pull: the cut, then the stages that read
- // it, then summarise's own size. A stage that is off says so, with a link to
+ // What the models read after a pull: the analytics filter's cut, then the
+ // stages that read it, then summarise's own size. A stage that is off says so, with a link to
// its switch under Runs: the numbers are only what it would read once it is
// on. The stage names are those of `/api/stages`.
function limitsLine(row) {
const l = Object.assign({}, DEFAULT_LIMITS, row.limits);
const p = el("p", "agent-limits");
const lists = [];
- if (l.cut_fit_top) lists.push(`the best ${l.cut_fit_top} by fit at ${l.cut_fit_min} or more`);
- if (l.cut_cv_top) lists.push(`the best ${l.cut_cv_top} by closeness to the CV at ${l.cut_cv_min} or more`);
+ if (l.cut_fit_top) lists.push(`the best ${l.cut_fit_top} by prompt closeness at ${l.cut_fit_min} or more`);
+ if (l.cut_cv_top) lists.push(`the best ${l.cut_cv_top} by CV closeness at ${l.cut_cv_min} or more`);
const cut = lists.length ? `${lists.join(", then ")}, and liked and saved roles` : "liked and saved roles only";
- p.append(`The cut: ${cut}.`);
+ p.append(`Analytics filter: ${cut}.`);
const off = (name, would) => {
const a = link("/settings/sources#stages", `${name} is off`);
a.title = "Switch it on under Runs.";
@@ -323,7 +326,7 @@
p.append(` ${said[0].toUpperCase()}${said.slice(1)} ${on.length > 1 ? "read" : "reads"} it`);
}
for (const [key, name] of reads) if (stageOn[key] === false) off(name, "reads the cut");
- const summarised = `the top ${l.summarise_top} of the feed and liked and saved roles`;
+ const summarised = `the top ${l.summarise_top} of each feed order and liked and saved roles`;
if (stageOn.summarise === false) off("summarise", `summarises ${summarised}`);
else p.append(` · summarises ${summarised}`);
return p;
@@ -345,7 +348,7 @@
const prompts = promptsOf(row).filter((p) => p.text.trim());
if (!prompts.length) {
- div.appendChild(el("p", "agent-intent empty", "Nothing described yet, so fit has nothing to measure against. Edit says what this agent looks for."));
+ div.appendChild(el("p", "agent-intent empty", "Nothing described yet, so prompt closeness has nothing to measure against. Edit says what this agent looks for."));
}
for (const prompt of prompts) {
// A lone prompt named after its agent, as a migrated intent is, says its name once.
diff --git a/app/static/app.css b/app/static/app.css
index f5176a3..53d1b0f 100644
--- a/app/static/app.css
+++ b/app/static/app.css
@@ -579,10 +579,12 @@ kbd {
font-size: .8rem; padding: .18rem .3rem;
border: 1px solid var(--line);
}
-/* The three order labels share one line: Agent match is the longest and
- would otherwise wrap in a 240px rail. Cells grow to the width, each by its
- own text. */
-#sort button { white-space: nowrap; }
+/* The three order labels share one row. What I'm looking for is longer than
+ a 240px rail has room for on one line, so a cell may wrap its words; the
+ cells split the width by their text, the short ones keeping theirs. */
+#sort button { min-width: 0; line-height: 1.2; }
+#sort button:nth-child(2), #sort button:nth-child(3) { flex-grow: 0; white-space: nowrap; }
+#sort button:first-child { flex-basis: 0; flex-grow: 1; }
/* Square everything first; only the ends are ends. Every cell but the first
eats its neighbour's border, so the joins are one rule wide rather than two. */
.seg > * { border-radius: 0; }
diff --git a/app/static/app.js b/app/static/app.js
index d91b468..b23bde7 100644
--- a/app/static/app.js
+++ b/app/static/app.js
@@ -16,7 +16,7 @@
* Beside `api` on `window`, the few helpers more than one page script uses:
* `count`, `cell`, `debounce`, `safeUrl`, and the company list with its
* affinity control (`loadCompanies`, `companies`, `affinityControl`,
- * `setAffinity`) and the two fetch overrides beside it, All countries and
+ * `setAffinity`) and the two fetch overrides beside it, All locations and
* All roles (`overridesControl`). One
* copy each, since two copies of a helper is one of them
* being fixed.
@@ -189,26 +189,26 @@
/* The two fetch overrides, one more pair of toggles in the affinity
buttons' fragment beside them, in a group of their own since they are
global rather than an agent's stance (app/jobs/reach.py). The fetch gate
- has three parts, region, place and role, and a company follows every
- agent's on all three unless it is set to:
- - All countries: the place part is skipped. The company's roles are
- fetched and kept from the whole region (Europe), not only the agents'
- places, for every agent. The region itself still holds.
- - All roles: the role part is skipped: no fetch terms and no titles to
- leave out.
+ has four parts, world, location, role exclusion and role fetch, and a
+ company follows every agent's unless it is set to:
+ - All locations: the location gate is skipped. The company's roles are
+ fetched and kept from the whole world gate (Europe, say), not only the
+ agents' locations, for every agent. The world gate itself still holds.
+ - All roles: role exclusion and role fetch are skipped: no titles to
+ leave out and no fetch terms.
Turning either on or off queues a rescore on the server, as the other
switches that change what passes do, and a pull reads the board anew.
`company` is the shared list's row; `onChange` runs after the server
accepted a switch, with the company it answered. */
const OVERRIDES = [
- { value: "countries", field: "all_countries", path: "all-countries", text: "All countries",
- on: "All countries is on: this company's roles are fetched and kept from the whole "
- + "region (Europe), not only the agents' places, for every agent. The region still "
- + "holds. Turning it off puts the agents' places back and rescores.",
- off: "All countries: fetch and keep this company's roles from the whole region "
- + "(Europe) instead of only the agents' places, for every agent. Turning it on "
- + "rescores.",
- said: (on) => (on ? "all countries in the region" : "the agents' places") },
+ { value: "countries", field: "all_countries", path: "all-countries", text: "All locations",
+ on: "All locations is on: this company's roles are fetched and kept from the whole "
+ + "world gate (Europe, say), not only the agents' locations, for every agent. The "
+ + "world gate still holds. Turning it off puts the agents' locations back and rescores.",
+ off: "All locations: fetch and keep this company's roles from the whole world gate "
+ + "(Europe, say) instead of only the agents' locations, for every agent. Turning it "
+ + "on rescores.",
+ said: (on) => (on ? "all locations in the world gate" : "the agents' locations") },
{ value: "roles", field: "all_roles", path: "all-roles", text: "All roles",
on: "All roles is on: this company's roles are fetched with no fetch terms and kept "
+ "whatever their title, for every agent. Turning it off puts the agents' fetch "
diff --git a/app/static/companies.js b/app/static/companies.js
index 041cd9d..4e85538 100644
--- a/app/static/companies.js
+++ b/app/static/companies.js
@@ -5,7 +5,7 @@
* joined with each company's board subscription — its id and whether it is
* on — so nothing here fetches `/api/sources` as well. The affinity buttons
* are `affinityControl`, the same ones the Roles tab and the read page draw,
- * and beside them `overridesControl`, the two fetch overrides All countries
+ * and beside them `overridesControl`, the two fetch overrides All locations
* and All roles, which are global and drawn with or without an agent.
*
* Liked and hidden are per search agent, so the `#c-agent` select above the
@@ -25,10 +25,10 @@
* from app/jobs/reach.py), so the row shows whether the company follows the
* agents' filters or overrides them. Its editor has a second line that sets
* the board's own reach: the agents', or its own countries and remote,
- * posted to `/api/sources/{id}/reach`. Fetching from the whole region (All
- * countries) and no fetch terms or titles to leave out (All roles) are the
+ * posted to `/api/sources/{id}/reach`. Fetching from the whole world gate (All
+ * locations) and no fetch terms or titles to leave out (All roles) are the
* company's two overrides instead, and the board's own countries win over
- * All countries.
+ * All locations.
*
* Beside that line stands the board's size, set when it was added and
* changed only by a Recheck ("999 roles · checked 30 Sep"). Recheck, beside
@@ -326,8 +326,8 @@
note.className = "muted small";
note.textContent = [
company.all_countries
- ? "All countries is on: roles are fetched and kept from the whole region, and countries set here win over it."
- : "All countries, beside the stars, fetches and keeps this company's roles from the whole region (Europe), not only the agents' places.",
+ ? "All locations is on: roles are fetched and kept from the whole world gate, and countries set here win over it."
+ : "All locations, beside the stars, fetches and keeps this company's roles from the whole world gate (Europe, say), not only the agents' locations.",
company.all_roles
? "All roles is on: no fetch terms and no titles to leave out."
: "All roles drops the fetch terms and the titles to leave out.",
diff --git a/app/static/roles.js b/app/static/roles.js
index 3048254..7b3b086 100644
--- a/app/static/roles.js
+++ b/app/static/roles.js
@@ -10,10 +10,11 @@
*
* A row is newsdesk's `.row`: the score gutter and number (hidden under
* Newest, since the score is not what put the row there, and the CV
- * match under CV match, a dash for a role not judged yet), the title,
+ * match under What fits me, a dash for a role not judged yet), the title,
* company · place · badges · age · tags, the summary or the description's
- * opening, and ▼ ● ▲ ★ from judge.js. A passed role and a hidden company's
- * are dimmed, never dropped, so a stray tap stays visible to be undone.
+ * opening, and ▼ ● ▲ ★ from judge.js. A passed role is dimmed, never
+ * dropped, so a stray tap stays visible to be undone. A hidden company's roles
+ * are never in the feed.
*
* Opening a role pushes `/roles/{uid}`; closing goes back. Stepping with j/k
* while it is open replaces that entry rather than stacking one per role, so
@@ -32,12 +33,12 @@
* Picking another reloads the feed and the counts under the reader, which
* stays open and is fetched again for that agent's vote.
*
- * Order is Agent match (`order=score`, the agent's final score moved by its
- * votes), Newest (`order=newest`) or CV match (`order=cv`, the roles the
- * agent's `judge` read against its CV first, by that total), the same three
- * whichever agent is viewed, and all carry the agent's votes and hidden
- * companies. CV match needs a CV: an agent without one is shown Agent
- * match, as an agentless page is shown Newest. Every order keeps to the
+ * Order is What I'm looking for (`order=score`, the agent's want feed score
+ * moved by its votes), Newest (`order=newest`) or What fits me (`order=cv`,
+ * the roles the agent's `judge` read against its CV first, by that total),
+ * the same three whichever agent is viewed, and all carry the agent's votes.
+ * What fits me needs a CV: an agent without one is shown What I'm looking
+ * for, as an agentless page is shown Newest. Every order keeps to the
* roles the agent's fetch gate passes, which a note under Viewing as says;
* Show gated (`gated=true`) adds the ones it rejects, with the reason.
*
@@ -128,10 +129,11 @@
};
const TRACKS = { "": "Both", ic: "Individual", people: "People" };
- // What the list is in the order of. Agent match is the viewing agent's
- // score, moved by its votes; Newest is first seen; CV match is
- // the agent's `judge` total, the roles not judged after by score.
- const SORTS = { score: "Agent match", cv: "CV match", time: "Newest" };
+ // What the list is in the order of. What I'm looking for is the viewing
+ // agent's want feed score, moved by its votes; Newest is first seen; What
+ // fits me is the agent's `judge` total, the roles not judged after by CV
+ // closeness.
+ const SORTS = { score: "What I\u2019m looking for", cv: "What fits me", time: "Newest" };
// The route's `order` for each.
const ORDERS = { score: "score", time: "newest", cv: "cv" };
// How many days ahead a deadline earns a badge: today to today + 4, the
@@ -162,7 +164,7 @@
return {
sort: "score", agent: null, period: "all", tags: new Set(), showRead: true,
company: "", place: "", function: "", remote: "", judged: "", pay: "",
- showMuted: false, gated: false, companyKeys: [], places: [],
+ gated: false, companyKeys: [], places: [],
levelFrom: "", levelTo: "", track: "", seniorityUnknown: true, payUnknown: false,
closing: false,
};
@@ -174,7 +176,7 @@
counted. */
function filtersOn(f = state.filter, { more = false } = {}) {
const folded = [f.company.trim(), f.place.trim(), f.function, f.remote, f.pay, f.judged,
- f.showMuted, f.closing, f.agent !== null && f.gated].filter(Boolean).length
+ f.closing, f.agent !== null && f.gated].filter(Boolean).length
+ f.companyKeys.length + f.places.length
+ [f.levelFrom, f.levelTo, f.track].filter(Boolean).length;
if (more) return folded;
@@ -225,13 +227,14 @@
/** The viewing agent, once the agents are in. */
const viewed = () => state.agents.find((a) => a.id === state.filter.agent) || null;
- /** Whether CV match has a CV to go by: the viewed agent has one, or
+ /** Whether What fits me has a CV to go by: the viewed agent has one, or
the agents are not in yet, when the address is taken at its word. */
const hasCv = () => !state.agentsLoaded || Boolean(viewed()?.cv_text?.trim());
- /** The order the list is in. Agent match needs an agent to score by: with
- none enabled the server answers newest first, and so does this. Best
- CV match needs that agent's CV too, and without one is Agent match. */
+ /** The order the list is in. What I'm looking for needs an agent to score
+ by: with none enabled the server answers newest first, and so does this.
+ What fits me needs that agent's CV too, and without one is What I'm
+ looking for. */
function sortShown() {
const { sort, agent } = state.filter;
if (sort === "time" || agent === null) return "time";
@@ -249,7 +252,6 @@
for (const key of ["function", "remote", "judged", "pay"]) if (f[key]) p.set(key, f[key]);
const days = PERIODS[f.period].days;
if (days) p.set("days", String(days));
- if (f.showMuted) p.set("show_muted", "true");
if (!f.showRead) p.set("include_read", "false");
f.tags.forEach((t) => p.append("tags", t));
f.companyKeys.forEach((key) => p.append("company_keys", key));
@@ -286,7 +288,6 @@
f[key] = q.get(key) || "";
}
f.period = PERIOD_OF_DAYS[q.get("days")] || "all";
- f.showMuted = q.get("show_muted") === "true";
f.showRead = q.get("include_read") !== "false";
f.gated = q.get("gated") === "true" || q.get("gated") === "1";
f.tags = new Set(q.getAll("tags"));
@@ -387,7 +388,6 @@
written into the entry landed on, so the entry says what is shown. */
function restore() {
const before = addressFor(pathFor(null));
- const muted = state.filter.showMuted;
readUrl(location.search, { view: false });
$("#search").value = state.q;
writeUrl();
@@ -397,7 +397,6 @@
labelPlaces();
if (addressFor(pathFor(null)) === before) return;
reload();
- if (state.filter.showMuted !== muted) loadFilters().catch(() => {});
renderRail();
renderActive();
}
@@ -514,12 +513,11 @@
if (state.readingUid) refreshReader(state.readingUid);
}
- // The tag counts. Asked with `show_muted` and the agent only, the filters
- // the route takes, so picking a tag does not renumber the others.
+ // The tag counts. Asked with the agent only, the filter the route takes, so
+ // picking a tag does not renumber the others.
let filtersRequest = 0;
async function loadFilters() {
const params = new URLSearchParams();
- if (state.filter.showMuted) params.set("show_muted", "true");
if (state.filter.agent !== null) params.set("agent", String(state.filter.agent));
const request = ++filtersRequest;
const data = await api(`/api/filters?${params}`);
@@ -547,7 +545,7 @@
it: pushed, so back takes the filter off and brings the role back, or
replacing the entry for text being typed (`replace`). A filter that
changes nothing only closes the reader. */
- function setFilter(patch = {}, { counts = false, replace = false } = {}) {
+ function setFilter(patch = {}, { replace = false } = {}) {
Object.assign(state.filter, patch);
if (state.readingUid && addressFor(pathFor(null)) === pathFor(null) + location.search) {
closeReader();
@@ -556,7 +554,6 @@
route();
}
reload();
- if (counts) loadFilters().catch(() => {});
renderRail();
renderActive();
}
@@ -568,7 +565,7 @@
// Text half typed into a chip field goes too, and with it its list.
companyChips?.clear();
placeChips?.clear();
- setFilter({}, { counts: true });
+ setFilter();
}
/* The other order over the same filter: the entry is replaced, since an
@@ -593,11 +590,9 @@
/** Where a company's name links: the list on screen, every filter and the
search kept, with this company as its one company filter, in place of
- any company chips and of `?company=`. A company this agent hid turns
- on Show hidden companies, or its own name would lead to an empty list. */
+ any company chips and of `?company=`. */
function companyHref(key) {
const f = Object.assign({}, state.filter, { companyKeys: [key], company: "" });
- if (companies.get(key)?.affinity === -1) f.showMuted = true;
return addressFor(pathFor(null), f);
}
@@ -627,10 +622,9 @@
const link = e.currentTarget;
link.href = companyHref(link.dataset.company);
companyNames.set(link.dataset.company, link.textContent.trim());
- const counts = state.filter.showMuted;
readUrl(new URL(link.href).search, { view: false });
$("#search").value = state.q;
- setFilter({}, { counts: counts !== state.filter.showMuted });
+ setFilter();
}
/* The strip's way back to every company: back, when the entry under this
@@ -669,8 +663,8 @@
renderAgent();
- // The order, the same three whatever is viewed. Agent match needs an
- // agent to score by, and CV match that agent's CV, so without one
+ // The order, the same three whatever is viewed. What I'm looking for needs
+ // an agent to score by, and What fits me that agent's CV, so without one
// each is greyed and says why.
const none = state.agentsLoaded && !state.agents.length;
const why = {
@@ -714,7 +708,6 @@
setValue("f-remote", f.remote);
setValue("f-pay", f.pay);
setValue("f-judged", f.judged);
- setValue("f-show-muted", f.showMuted);
setValue("f-closing", f.closing);
setValue("f-gated", f.gated);
renderFacets();
@@ -852,7 +845,7 @@
gate.hidden = state.filter.agent === null;
gate.textContent = state.filter.gated
? "Filtered by this agent's fetch gate, and Show gated adds the roles it rejects."
- : "Already filtered by this agent's fetch gate: region, places and role.";
+ : "Already filtered by this agent's fetch gate: world, location and role exclusion. Hidden companies are never shown.";
if (agents.length) {
// Rebuilt only when the agents changed, since the rail is drawn again on
// every filter and a rebuild shuts a select that is open.
@@ -950,7 +943,6 @@
async function applySaved(id) {
const saved = state.saved.find((x) => x.id === id);
if (!saved) return;
- const muted = state.filter.showMuted;
const query = new URLSearchParams(saved.query);
readUrl(`?${saved.query}`, { view: false });
const sort = query.get("sort");
@@ -961,7 +953,7 @@
await labelPlaces({ write: false });
if (filtersOn(state.filter, { more: true })) $("#f-more").open = true;
if (overlayRail() && state.railOpen) toggleRail();
- setFilter({}, { counts: muted !== state.filter.showMuted });
+ setFilter();
}
async function deleteSaved(id) {
@@ -1236,7 +1228,7 @@
}
/* The gutter's number, of 100, and what it says: the agent's score, or
- under CV match the CV match. A role `judge` has not read yet has an
+ under What fits me the CV match. A role `judge` has not read yet has an
empty bar and, faint, how close it is to the CV (`cv_fit`), which is
what orders it there, else a dash. */
function gutterOf(role) {
@@ -1300,12 +1292,10 @@
el.querySelector(".company")?.addEventListener("click", companyClick);
}
- /* A passed role and a hidden company's are dimmed, never dropped: the pass
- has to stay visible to be undone. */
+ /* A passed role is dimmed, never dropped: the pass has to stay visible to be
+ undone. */
function paintRow(el, role) {
- const company = companies.get(role.company_key);
el.dataset.read = String(Boolean(role.read_at));
- el.classList.toggle("muted", Boolean(company && company.affinity === -1));
el.classList.toggle("passed", role.vote === -1);
el.classList.toggle("gated", Boolean(role.gated_reason));
}
@@ -1432,38 +1422,41 @@
}
/* Which parts of the viewing agent's fetch gate apply to a company's
- roles: All countries lifts the place part (the Where lines), All roles
- the role part (fetch terms, titles to leave out); the region always
- holds. A favourite only ranks higher, so it is not named here. Nothing
- with no agent, when no fetch gate applies. */
+ roles: All locations lifts the location gate, All roles the role
+ exclusion and the fetch terms; the world gate always holds. A favourite
+ only ranks higher, so it is not named here. A hidden company has no
+ roles in the feed at all. Nothing with no agent, when no fetch gate
+ applies. */
function gateNote(company) {
if (state.filter.agent === null) return "";
- const countries = Boolean(company?.all_countries);
+ if (company?.affinity === -1) return "Hidden for this agent: its roles are never shown.";
+ const locations = Boolean(company?.all_countries);
const roles = Boolean(company?.all_roles);
- if (countries && roles) {
- return "All countries and All roles: every role in the agent's region, "
- + "not filtered by place or by role.";
+ if (locations && roles) {
+ return "All locations and All roles: every role in the agent's world, "
+ + "not filtered by location, role exclusion or fetch terms.";
}
- if (countries) {
- return "All countries: every role in the agent's region, not filtered by place. "
- + "The agent's fetch terms and titles to leave out still apply.";
+ if (locations) {
+ return "All locations: every role in the agent's world, not filtered by location. "
+ + "The agent's role exclusion still applies.";
}
if (roles) {
- return "All roles: not filtered by role, no fetch terms and no titles left out. "
- + "The agent's places still apply.";
+ return "All roles: no titles left out and no fetch terms. "
+ + "The agent's locations still apply.";
}
- return "The roles this agent's fetch gate passes: its region, places and role. "
- + "All countries lifts the places for this company, All roles the role.";
+ return "The roles this agent's fetch gate passes: its world, locations and role exclusion. "
+ + "All locations lifts the locations for this company, All roles the role exclusion.";
}
/* A company seen only through a search has no row until its first change
- creates one, so the list is reloaded then. A change dims or undims its
- rows at once; where they rank waits on the `score` it queued, whose id
- the affinity route answers with (`updated.score_job`), and the feed
- reloads when that has finished. */
+ creates one, so the list is reloaded then. Hiding takes the company's
+ rows out at once, since a hidden company is never in the feed; where the
+ others rank waits on the `score` it queued, whose id the affinity route
+ answers with (`updated.score_job`), and the feed reloads when that has
+ finished. */
async function affinityChanged(key, company, updated) {
if (!company) await loadCompanies(state.filter.agent).catch(() => {});
- renderFeed();
+ if (updated?.affinity === -1) reload(); else renderFeed();
const status = () => $("#company-strip .strip-status");
if (status()) status().textContent = "Scoring again; the list reloads when that is done.";
await scored(updated?.score_job);
@@ -1644,7 +1637,7 @@
const MUST_MARKS = { met: ["✓", "met"], broken: ["✗", "broken"], unclear: ["?", "unclear"] };
/* The agent's `judge` reading against its CV: the total and its three
- numbers, career as the server counted it (capped at 39 when a must-have
+ numbers, each of 10, career as the server counted it (capped at 4 when a must-have
is broken, with what the model said), the must-haves with a verdict
each, then the strengths and gaps it named. A box as the summary is,
since it is the same kind of thing: a model's reading, not the posting. */
@@ -1656,7 +1649,8 @@
: ` ${none} ${Math.round(j.cv_score)} of 100
- skills ${j.skills} · experience ${j.experience} · ${career}${j.musts.map((m) => {
const [mark, word] = MUST_MARKS[m.verdict] || MUST_MARKS.unclear;
@@ -1666,7 +1660,7 @@
return `
CV match