Deploy with Docker Compose / deploy (push) Successful in 1m31s
A Violentmonkey userscript, served by the site and installed from /cv/jobs, adds the posting open in the browser (LinkedIn, an ATS, any company page) to the tracker. Claude reads the title, company and location off the page text. - Three token-guarded REST routes under /api/jobs/capture (status, extract, upsert). They take a bearer token, JOB_CAPTURE_TOKEN, because the auth cookies are SameSite=Lax and never sent from another origin. An unset token switches the routes off. - The upsert matches on a canonical posting URL, then (company, job title), so a capture and the email pipeline do not make two rows for one job. - The Claude call is a new internal Python route, /internal/jobs/extract, alongside the rowing reader; the client and fence stripping they share move to python/app/claude.py. - New "saved" status ranked below "applied", and a description column holding the posting text, shown per row on the tracker. Co-Authored-By: Claude Opus 5.5 <[email protected]>
60 lines
1.6 KiB
GraphQL
60 lines
1.6 KiB
GraphQL
# Job application tracker. Rows come from these mutations, automatically from
|
|
# the email sync pipeline (backend/services/email_sync.go), or from the browser
|
|
# capture userscript (backend/handlers/handle_job_capture.go). These are
|
|
# private data, so the queries here are admin-only as well as the mutations.
|
|
#
|
|
# status is a free-form String, but only the values ranked in
|
|
# services.statusOrder can be advanced automatically by the email pipeline:
|
|
# saved, applied, screening, assessment, interviewing, offer, rejected,
|
|
# withdrawn.
|
|
#
|
|
# description is the captured posting text. It can run to tens of kilobytes,
|
|
# so the tracker's list query leaves it out and asks for it per row.
|
|
|
|
type JobApplication {
|
|
id: ID!
|
|
createdAt: Time!
|
|
updatedAt: Time!
|
|
jobTitle: String!
|
|
company: String!
|
|
location: String
|
|
url: String
|
|
status: String!
|
|
notes: String
|
|
appliedAt: Time
|
|
description: String
|
|
}
|
|
|
|
input CreateJobApplicationInput {
|
|
jobTitle: String!
|
|
company: String!
|
|
location: String
|
|
url: String
|
|
status: String!
|
|
notes: String
|
|
appliedAt: Time
|
|
description: String
|
|
}
|
|
|
|
input UpdateJobApplicationInput {
|
|
jobTitle: String
|
|
company: String
|
|
location: String
|
|
url: String
|
|
status: String
|
|
notes: String
|
|
appliedAt: Time
|
|
description: String
|
|
}
|
|
|
|
extend type Query {
|
|
jobApplications: [JobApplication!]!
|
|
jobApplication(id: ID!): JobApplication
|
|
}
|
|
|
|
extend type Mutation {
|
|
createJobApplication(input: CreateJobApplicationInput!): JobApplication!
|
|
updateJobApplication(id: ID!, input: UpdateJobApplicationInput!): JobApplication!
|
|
deleteJobApplication(id: ID!): Boolean!
|
|
}
|