Commit Graph
15 Commits
Author SHA1 Message Date
adamfandClaude Opus 5.5 12f253a300 Move to stppriv: userscript at priv.<site>, CI stops deploying
Test and publish / test (push) Successful in 16s
Test and publish / publish (push) Successful in 16s
The tracker now runs on stppriv behind Cloudflare Access. The userscript
points at priv.adam-french.co.uk and migrates a saved www base, since www
only 301s now (which drops a POST). CI publishes the image but no longer
rolls stpvm's stack; stppriv is deployed by hand.

Merge only at cutover, once priv.adam-french.co.uk/jobs/ is live.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 13:34:20 +00:00
adamfandClaude Opus 5.5 179463795b auth: add AUTH_MODE=access (Cloudflare Access JWT)
For running behind Cloudflare Access on stppriv, where the main site's
cookie is not sent. Verifies Cf-Access-Jwt-Assertion (or the
CF_Authorization cookie) as RS256 against the team's certs, with issuer
and audience checks. Default mode is still forward.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 13:34:03 +00:00
adamfandClaude Opus 5.5 acc6876e33 CI: fetch from git.adam-french.co.uk instead of localhost
Test and publish / test (push) Successful in 1m19s
Test and publish / publish (push) Successful in 57s
Gitea runs on its own LXC, and stpvm's localhost:2222 forwarder to it is
being removed. stpvm pins git.adam-french.co.uk to the LXC's LAN IP in
/etc/hosts, so the self-hosted job reaches it directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 17:26:36 +00:00
adamf 1147bc5697 Add application workflow and lead analytics
Test and publish / test (push) Successful in 2m33s
Test and publish / publish (push) Successful in 11m9s
2026-10-23 20:45:48 +01:00
adamfandClaude Opus 5.5 d0074aea46 Roll out under .compose.lock and drop the Docker API pin
Test and publish / publish (push) Successful in 4s
Test and publish / test (push) Successful in 12s
env-apply was removed from web_server, so its run/lock no longer exists
and the roll-out step failed with "cannot open lock file". Take
.compose.lock, which web_server's deploy and maintenance workflows hold.
The DOCKER_API_VERSION=1.41 pin was for the Pi's Docker 20.10; the host
now runs Docker 29.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 18:07:35 +01:00
adamfandClaude Opus 5.5 7c424ca3d7 Describe the CI host as stpvm, not the Pi
Test and publish / test (push) Successful in 2m59s
Test and publish / publish (push) Failing after 9s
The site and its runner moved from the arm64 Pi to stpvm (x86-64,
Docker 29), so the comments about the build host, its Docker version
and the image architecture were wrong.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 17:58:03 +01:00
adamfandClaude Opus 5.5 b7021ca117 Remove the email pipeline
Test and publish / test (push) Successful in 1m59s
Test and publish / publish (push) Successful in 1m41s
The mailbox sync (Microsoft Graph and IMAP), its Claude classifier, the
/email routes and the Settings page's email section are taken out while
the pipeline is unused. The last commit with it is tagged
email-pipeline-last; reverting this commit brings it back.

The status rules the capture path shares (statusOrder, StatusAdvances,
NormalizeStatus) move to job_status.go with their tests. ProcessedEmail
stays in the migration, marked dormant, so its history survives for a
restored pipeline. golang.org/x/oauth2 is no longer needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 22:48:07 +01:00
adamfandClaude Opus 5.5 6b14a96261 Track gqlgen as a Go tool so make generate runs
go run needed gqlgen's CLI dependencies in go.sum, and go mod tidy
drops them because nothing in the module imports them. A tool
directive records them, and go tool runs the pinned version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 22:47:27 +01:00
adamfandClaude Opus 5.5 c7b60578e1 Tidy stale comments and duplicated helpers
Test and publish / test (push) Successful in 1m6s
Test and publish / publish (push) Has been skipped
Comments carried over from web_server (CVLayout.vue, messageResolver,
the Spotify token code) and ones outdated by later changes (the email
window now anchors on ReceivedAt, failed emails are retried) are
corrected. truncateRunes had a copy in handlers and in services; there
is now one, services.TruncateRunes. cleanEmailBody's regexes are
compiled once, a status check that could never fire is gone, and
api.js loses its unused put/patch helpers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
email-pipeline-last
2026-10-14 22:47:27 +01:00
Adam FrenchandClaude Opus 5.5 f5b722d100 Redesign the tracker's UI
Test and publish / test (push) Successful in 51s
Test and publish / publish (push) Successful in 54s
An app shell with a sidebar (a top bar on phones) replaces the per-page
headers and back links. A token-based design system in styles.css, with a
dark set under prefers-color-scheme, replaces the paper palette and the
cv-btn/ja-input classes ported from the main site.

- Applications: header with counts and the follow-up total, the add form
  behind a "New application" button, coloured pipeline tiles, a
  "Needs follow-up" filter, sort indicators, icon row actions, compact
  phone cards. Quick reference sits beside the table on wide screens.
- Leads: profile and sources side by side, underline tabs, score rings,
  source health dots.
- Settings: status cards for capture and email.

No API or store changes. jobs-shared.css and the unused Creato font
are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CiMoE29eGkJtia4hCzSKzT
2026-10-14 19:31:17 +00:00
adamfandClaude Opus 5.5 ef38679a45 Roll the site onto each new image from CI
Test and publish / test (push) Successful in 46s
Test and publish / publish (push) Successful in 5s
After publishing, the publish job now pulls the image into the web_server
stack on the Pi and recreates only the jobs container, under the same
flock the site's own deploys and the .env applier take. It then waits for
the image's healthcheck and fails the run, with the container's last log
lines, if the tracker does not come up. Pinning JOBS_IMAGE_TAG in the
site's .env still holds a version, since compose pulls the pinned tag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 17:35:18 +01:00
adamfandClaude Opus 5.5 0d31332033 Keep the IMAP password out of error messages
Test and publish / test (push) Successful in 1m11s
Test and publish / publish (push) Successful in 48s
A refused IMAP command's error quoted the whole command, so a failed
LOGIN put the password into the log on every sync. The error now names
only the verb ("IMAP LOGIN failed: ..."). Carried over from web_server's
backend, which logged it the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 17:14:18 +01:00
adamfandClaude Opus 5.5 e6ed29d4a9 Build the image with BuildKit in CI
Test and publish / test (push) Successful in 32s
Test and publish / publish (push) Successful in 5m8s
The Pi runs Docker 20.10, whose plain docker build uses the legacy
builder and fails on the Dockerfile's RUN --mount cache lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 16:51:44 +01:00
adamfandClaude Opus 5.5 33ea8a9b99 Correct the registry setup notes: the token realm is on the apex
Test and publish / test (push) Successful in 40s
Test and publish / publish (push) Failing after 38s
Gitea advertises its token endpoint at https://<domain>/v2/token, not
under /gitea/, so the /v2/ route belongs in the apex server block (added in
web_server da2ab9f) rather than nginx_routes.conf.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 16:39:43 +01:00
adamfandClaude Opus 5.5 67cb8137f9 Split the job tracker out of web_server into its own app
Test and publish / test (push) Successful in 6m39s
Test and publish / publish (push) Failing after 0s
The applications tracker, leads inbox, email pipeline and capture userscript
move here from web_server's backend, Python service and Vue app, as one Go
binary that serves its own Vue SPA under /jobs/.

- The Go services, resolvers and tests move over almost unchanged.
- The three Claude calls are ported from Python to Go (internal/claude),
  with the same prompts, per-model request shaping and error messages.
- There is no login: internal/auth asks the site backend's
  /auth/validate-admin with the visitor's cookies, and relays refreshed
  cookies back.
- A Settings page replaces the admin-panel capture token card and adds the
  Microsoft sign-in link and a manual email sync.
- The userscript is 2.0.0, at /jobs/, and migrates a saved API base.
- Dockerfile, a standalone compose with Postgres, Makefile, and a Gitea CI
  workflow that tests and publishes the image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 16:24:16 +01:00