Add rescoring and a posting-date order to the leads inbox
Test and deploy / test (push) Successful in 1m56s
Test and deploy / deploy (push) Successful in 1m8s

rescoreJobLeads (RescoreAll, "Rescore all" on /cv/leads) scores every
matched inbox lead again, for after the profile or the model has
changed. Scores are not wiped first: a lead keeps its old score until
the new one is saved, and the new scored_at column marks which leads the
job has reached, so a job that dies partway leaves no gaps. Leads that
had used up their attempts get them back.

The inbox can also be ordered by when a posting went up, falling back to
when it was found where the source gave no date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-12 15:52:33 +01:00
co-authored by Claude Opus 5.5
parent 3764ea9c0b
commit 8b902350ad
9 changed files with 261 additions and 32 deletions
+3 -2
View File
@@ -239,8 +239,9 @@ until **Track** is pressed on a lead, which adds it to `/cv/jobs` as Saved.
Same conventions as the tracker: the children emit `fail` / `ok` for the
parent's banner, and a lead's `description` is fetched per row. Two things
differ. "Check now" (poll the sources, score up to forty) and "Score
unscored" (poll nothing, score the whole backlog) do not wait for the job —
differ. "Check now" (poll the sources, score up to forty), "Score unscored"
(poll nothing, score the whole backlog) and "Rescore all" (score every inbox
lead again) do not wait for the job —
the mutation returns at once and the page polls `jobLeadSyncStatus` every
three seconds, reloading the leads as it goes and the sources at the end. And the box styles the children share (`.jl-box`,
`.jl-hint`, `.jl-warn`) are in an unscoped `<style>` block in `JobLeads.vue`,