Add application workflow and lead analytics
Test and publish / test (push) Successful in 2m33s
Test and publish / publish (push) Successful in 11m9s

This commit is contained in:
2026-10-23 20:45:48 +01:00
parent d0074aea46
commit 1147bc5697
35 changed files with 4337 additions and 131 deletions
+22 -3
View File
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Job tracker capture
// @namespace https://www.adam-french.co.uk/
// @version 2.0.0
// @version 2.1.0
// @description Add the job posting you are looking at to the tracker at /jobs/.
// @match *://*/*
// @noframes
@@ -279,6 +279,12 @@
h("option", { value: "saved", textContent: "Saved for later" }),
),
notes: h("textarea", {}),
salaryRange: h("input", { type: "text" }),
workArrangement: h("input", { type: "text" }),
applicationSource: h("input", { type: "text" }),
requisitionId: h("input", { type: "text" }),
resumeVersion: h("input", { type: "text" }),
contactRole: h("input", { type: "text" }),
description: h("textarea", { class: "description" }),
};
const message = h("div", { class: "message" });
@@ -295,6 +301,12 @@
field("Company", f.company),
field("Location", f.location),
field("Status", f.status),
field("Salary / range", f.salaryRange),
field("Work arrangement", f.workArrangement),
field("Application source", f.applicationSource),
field("Requisition ID", f.requisitionId),
field("Resume version", f.resumeVersion),
field("Contact / referral role", f.contactRole),
field("Notes", f.notes),
field("URL", f.url),
h(
@@ -367,8 +379,9 @@
const seq = ++openSeq;
const { f, panel, save } = ui;
for (const key of ["jobTitle", "company", "location", "notes"])
for (const key of ["jobTitle", "company", "location", "notes", "salaryRange", "workArrangement", "applicationSource", "requisitionId"])
f[key].value = "";
for (const key of ["resumeVersion", "contactRole"]) f[key].value = "";
f.url.value = location.href;
f.description.value = pageText();
f.status.value = "applied";
@@ -386,7 +399,7 @@
if (seq !== openSeq) return;
// Only empty fields are filled: the popup is usable while Claude is
// thinking, and anything typed in the meantime wins.
for (const key of ["jobTitle", "company", "location", "notes"])
for (const key of ["jobTitle", "company", "location", "notes", "salaryRange", "workArrangement", "applicationSource", "requisitionId"])
if (!f[key].value.trim()) f[key].value = posting?.[key] ?? "";
say(
posting?.jobTitle && posting?.company
@@ -415,6 +428,12 @@
url: f.url.value,
status: f.status.value,
notes: f.notes.value,
salaryRange: f.salaryRange.value,
workArrangement: f.workArrangement.value,
applicationSource: f.applicationSource.value,
requisitionId: f.requisitionId.value,
resumeVersion: f.resumeVersion.value,
contactRole: f.contactRole.value,
description: f.description.value,
});
showTracked(result.application);