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]>
This commit is contained in:
2026-10-14 22:48:07 +01:00
co-authored by Claude Opus 5.5
parent 6b14a96261
commit b7021ca117
32 changed files with 199 additions and 2284 deletions
+3 -4
View File
@@ -17,8 +17,8 @@ import (
// CreateJobApplication is the resolver for the createJobApplication field.
func (r *mutationResolver) CreateJobApplication(ctx context.Context, input model.CreateJobApplicationInput) (*models.JobApplication, error) {
// String! is non-null but not non-empty, and the columns are only
// `not null`, so "" stores happily and then never matches the email
// pipeline's LOWER(company) lookup — an orphan row no sync can advance.
// `not null`, so "" stores happily and then never matches the capture
// upsert's LOWER(company) lookup — an orphan row no capture can find.
jobTitle := strings.TrimSpace(input.JobTitle)
company := strings.TrimSpace(input.Company)
if jobTitle == "" || company == "" {
@@ -98,8 +98,7 @@ func (r *mutationResolver) DeleteJobApplication(ctx context.Context, id int) (bo
// the tracker a row was gone when it had never existed. The return type
// stays Boolean! for the front end's sake, so the only value is true.
//
// Soft delete: the row is kept, which is what lets the email pipeline see
// that an application was deleted and not re-create it.
// Soft delete: the row is kept with deleted_at set, not purged.
var app models.JobApplication
if err := r.Store.DB.First(&app, id).Error; err != nil {
return false, err