diff --git a/.claude/skills/new-content/SKILL.md b/.claude/skills/new-content/SKILL.md index c465ce7..d9cba93 100644 --- a/.claude/skills/new-content/SKILL.md +++ b/.claude/skills/new-content/SKILL.md @@ -226,7 +226,7 @@ No body for team members. 9. **hiringContact** — show active team slugs, ask to pick. 10. **applyEmail (optional)** — email address for applications. 11. **tallyFormId** — Tally form ID string (e.g. `mK0Q4g`). -12. **status** — `published | draft | closed` (default `published`). +12. **status** — `published | unlisted | draft | closed` (default `published`). `unlisted` = hidden from the jobs list, page still reachable by direct link. 13. **publishedAt** — `YYYY-MM-DD` (default today). 14. **intro (optional)** — introductory paragraph (multi-line OK). 15. **body** — ask for each of the three required sections separately, then assemble: diff --git a/CONTEXT.md b/CONTEXT.md index cb18b6f..23d4ea8 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -25,7 +25,7 @@ A third-party software product Ocobo deploys or recommends to clients (e.g. HubS _Avoid_: software, vendor, product. **Job**: -An open position in `jobs//`. References a `hiringContact` (team member slug). +An open position in `jobs//`. References a `hiringContact` (team member slug). Its `status` sets visibility: `published` (listed), `unlisted` (off the list, page reachable by direct link, not indexed), `draft` and `closed` (page redirects to the jobs list). _Avoid_: role (overloaded, see "Flagged ambiguities"), offer, posting. **Challenge**: diff --git a/docs/notion-templates/job.md b/docs/notion-templates/job.md index 484a373..2f6512f 100644 --- a/docs/notion-templates/job.md +++ b/docs/notion-templates/job.md @@ -32,7 +32,7 @@ - Lang → `Language`, `Langue` - Icon → `Icône` -**Status** — one of `published`, `draft`, `closed`. +**Status** — one of `published`, `unlisted`, `draft`, `closed`. `published` is listed on the jobs page; `unlisted` is hidden from the list but its page stays reachable by direct link (not indexed by search engines); `draft` and `closed` redirect to the jobs page. **Hiring contact** — must match an active team member slug. @@ -56,7 +56,7 @@ > - Start date (date) > - Hiring contact (select) — add team member slugs as options > - Tally form ID (text) -> - Status (select) — options: published, draft, closed +> - Status (select) — options: published, unlisted, draft, closed > - Published at (date) > - Lang (select) — options: fr, en > - Icon (text) — a single emoji diff --git a/jobs/fr/founding-sales-business-development-manager.md b/jobs/fr/founding-sales-business-development-manager.md index 78e5b44..05be66b 100644 --- a/jobs/fr/founding-sales-business-development-manager.md +++ b/jobs/fr/founding-sales-business-development-manager.md @@ -8,7 +8,7 @@ startDate: 2026-09-01 hiringContact: benjamin-boileux applyEmail: recrutement@ocobo.co tallyFormId: 2EVoOb -status: published +status: unlisted publishedAt: 2026-06-22 intro: > La mission du Founding Sales | Business Development Manager est de prendre en diff --git a/scripts/__tests__/schemas.test.js b/scripts/__tests__/schemas.test.js index 7df4d1b..00d731e 100644 --- a/scripts/__tests__/schemas.test.js +++ b/scripts/__tests__/schemas.test.js @@ -289,6 +289,10 @@ describe('job schema', () => { ).toBe(true); }); + it.each(['published', 'unlisted', 'draft', 'closed'])('accepts status %s', (status) => { + expect(validateJob({ ...validJob, status }).success).toBe(true); + }); + it('rejects invalid status', () => { expect(validateJob({ ...validJob, status: 'active' }).success).toBe(false); }); diff --git a/scripts/schemas/job.schema.js b/scripts/schemas/job.schema.js index 808adeb..4ea497c 100644 --- a/scripts/schemas/job.schema.js +++ b/scripts/schemas/job.schema.js @@ -11,7 +11,7 @@ export const jobSchema = z.object({ hiringContact: z.string().min(1), applyEmail: z.email().optional(), tallyFormId: z.string().min(1), - status: z.enum(['published', 'draft', 'closed']), + status: z.enum(['published', 'unlisted', 'draft', 'closed']), publishedAt: isoDate, intro: z.string().optional(), });