Add application workflow and lead analytics
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user