Summarise every saved or liked role whatever its rank, queue it at once on save or like, and shorten the order labels to Agent match, CV match and Newest so they fit one line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d0a4c37f2
commit
ee8e450640
20 files changed
+208
-60
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/* The Search agents page: what Best match on the Roles tab is measured
|
||||
/* The Search agents page: what Agent match on the Roles tab is measured
|
||||
* against, one agent at a time.
|
||||
*
|
||||
* Every agent from `/api/agents` is a card, newest first: its name, its
|
||||
@@ -42,7 +42,8 @@
|
||||
cv_skills: 30, cv_experience: 25, cv_career: 30 };
|
||||
// What the model reads after a pull, per agent: the best `extract_top`
|
||||
// roles scoring at least `extract_min` get their gate columns filled, the
|
||||
// best `summarise_top` at `summarise_min` or more a summary.
|
||||
// best `summarise_top` at `summarise_min` or more a summary, and so does any
|
||||
// role that is saved or liked, whatever its score.
|
||||
const DEFAULT_LIMITS = { extract_top: 500, extract_min: 0.55, summarise_top: 30, summarise_min: 0.65,
|
||||
judge_top: 150, judge_min: 0.55 };
|
||||
// The levels of a language, the order of the server's ladder, and how big a
|
||||
|
||||
+7
-3
@@ -575,10 +575,14 @@ kbd {
|
||||
.seg { display: flex; }
|
||||
#sort, #f-track { padding: 0 .3rem; }
|
||||
#rail .seg button {
|
||||
flex: 1; text-align: center;
|
||||
font-size: .8rem; padding: .18rem .55rem;
|
||||
flex: 1 1 auto; text-align: center;
|
||||
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; }
|
||||
/* 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; }
|
||||
@@ -714,7 +718,7 @@ body[data-reader="open"] .row[data-open="true"] {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* Newest first hides the score, because in that order it is not what put the
|
||||
/* Newest hides the score, because in that order it is not what put the
|
||||
row where it is. Done here rather than in the row template so the markup is
|
||||
the same either way and only the stylesheet knows about the order -- the
|
||||
gutter goes with it, since a bar with no number beside it is a measurement
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@
|
||||
const DOES = {
|
||||
extract: "fills in country, seniority, salary and the like from what the posting says",
|
||||
summarise: "writes a short summary and tags for the best roles",
|
||||
judge: "scores the best roles against a search agent's CV, for Best CV match",
|
||||
judge: "scores the best roles against a search agent's CV, for CV match",
|
||||
enrich: "reads the own page of the best roles whose list gave no text",
|
||||
};
|
||||
|
||||
|
||||
+17
-17
@@ -9,8 +9,8 @@
|
||||
* from app.js, so a failure is one toast carrying the server's own sentence.
|
||||
*
|
||||
* A row is newsdesk's `.row`: the score gutter and number (hidden under
|
||||
* Newest first, since the score is not what put the row there, and the CV
|
||||
* match under Best CV match, a dash for a role not judged yet), the title,
|
||||
* 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,
|
||||
* 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.
|
||||
@@ -32,12 +32,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 Best first (`order=score`, the agent's score moved by its votes),
|
||||
* Newest first (`order=newest`) or Best CV match (`order=cv`, the roles the
|
||||
* Order is Agent match (`order=score`, the agent's 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. Best CV match needs a CV: an agent without one is shown Best
|
||||
* first, as an agentless page is shown Newest first.
|
||||
* companies. CV match needs a CV: an agent without one is shown Agent
|
||||
* match, as an agentless page is shown Newest.
|
||||
*
|
||||
* The filters are in the query string, so a reload or a link keeps them, and
|
||||
* each one set is a history entry, so back takes it off again: a tag, the
|
||||
@@ -119,10 +119,10 @@
|
||||
};
|
||||
const TRACKS = { "": "Both", ic: "Individual", people: "People" };
|
||||
|
||||
// What the list is in the order of. Best first is the viewing agent's
|
||||
// score, moved by its votes; Newest first is first seen; Best CV match is
|
||||
// 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: "Best first", time: "Newest first", cv: "Best CV match" };
|
||||
const SORTS = { score: "Agent match", cv: "CV match", 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
|
||||
@@ -215,13 +215,13 @@
|
||||
/** The viewing agent, once the agents are in. */
|
||||
const viewed = () => state.agents.find((a) => a.id === state.filter.agent) || null;
|
||||
|
||||
/** Whether Best CV match has a CV to go by: the viewed agent has one, or
|
||||
/** Whether CV match 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. Best first needs an agent to score by: with
|
||||
/** 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 Best first. */
|
||||
CV match needs that agent's CV too, and without one is Agent match. */
|
||||
function sortShown() {
|
||||
const { sort, agent } = state.filter;
|
||||
if (sort === "time" || agent === null) return "time";
|
||||
@@ -652,8 +652,8 @@
|
||||
|
||||
renderAgent();
|
||||
|
||||
// The order, the same three whatever is viewed. Best first needs an
|
||||
// agent to score by, and Best CV match that agent's CV, so without one
|
||||
// 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
|
||||
// each is greyed and says why.
|
||||
const none = state.agentsLoaded && !state.agents.length;
|
||||
const why = {
|
||||
@@ -1041,7 +1041,7 @@
|
||||
}
|
||||
|
||||
/* The gutter's number, of 100, and what it says: the agent's score, or
|
||||
under Best CV match the CV match, where a role `judge` has not read yet
|
||||
under CV match the CV match, where a role `judge` has not read yet
|
||||
shows a dash and an empty bar. */
|
||||
function gutterOf(role) {
|
||||
if (sortShown() === "cv") {
|
||||
@@ -1130,7 +1130,7 @@
|
||||
const rowAt = (i) => $(`#roles-list .row[data-idx="${i}"]`);
|
||||
|
||||
function renderFeed() {
|
||||
// Which order the list is in, for the stylesheet: under Newest first the
|
||||
// Which order the list is in, for the stylesheet: under Newest the
|
||||
// score gutter goes, since the score is not what put the row where it is.
|
||||
$("#list").dataset.sort = sortShown();
|
||||
sync($("#roles-list"), state.items.map((role, i) => [role.uid, { role, i }]), makeRow, fillRow);
|
||||
@@ -1949,7 +1949,7 @@
|
||||
// known, and either way bring the reader's affinity control and judge
|
||||
// buttons up to date, since `companies` was still empty when it first
|
||||
// painted.
|
||||
// Best CV match asked of an agent with no CV is Best first.
|
||||
// CV match asked of an agent with no CV is Agent match.
|
||||
if (state.filter.agent !== before || sortShown() !== sortBefore) reload();
|
||||
else renderFeed();
|
||||
if (state.readingUid) {
|
||||
|
||||
Reference in new issue
Block a user