mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 04:47:30 +01:00
* feat(careers): open roles from public job boards, skills and training paths per bottleneck - research/job-boards.json: all 138 directory companies' careers pages and ATS, each checked on the company's own site; 6 on public Greenhouse/Ashby APIs are read daily (ASM, MetOx, Anthropic, OpenAI, xAI, CoreWeave), the rest linked. - research_jobs (scripts/db/011-jobs.sql) + POST /api/cron/jobs: daily fetch, filed under role family, seniority, bottlenecks and skills by published rules. - /careers: filters (bottleneck, family, company, country, seniority, remote), which bottlenecks are hiring most; /careers/[slug] per bottleneck; /careers/paths (O*NET 31.0 + ESCO records, posting skill counts, 56 checked learning paths); /careers/companies; hiring section on company pages. - Desk: follow companies/role families for jobs; new postings are a desk source. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> * feat(careers): chain roles by default, sidebar hiring board, tighter filing rules Software and business postings are filed under bottlenecks by title only (AI labs' boilerplate named foundries and grid interconnection); the board defaults to roles in the chain with a scope switch; the hiring counts sit beside the list; learning paths come before the occupational record. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> * refactor(desk): relative dates in lib/when.ts, job rows loaded in lib/desk-jobs.ts Keeps lib/desk.ts and the desk page under the 300-line ceiling with the job and science sources both on the desk. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> --------- Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
46 lines
1.7 KiB
TypeScript
46 lines
1.7 KiB
TypeScript
/**
|
|
* Public learning paths into these chains (research/learning-paths.json):
|
|
* programmes, apprenticeships, academies and government schemes, each linked
|
|
* to the official page that was opened (HTTP 200, content matching) on the
|
|
* date shown. Format and entry facts are copied from that page; where the page
|
|
* did not say, the field is absent rather than filled in.
|
|
*
|
|
* `careerChangers` is true only where the page itself addresses people moving
|
|
* from other work (mid-career, veterans, re-employment), false where it
|
|
* requires an affiliation or prior experience, and null where it does not say.
|
|
* A listing is not an endorsement: Substrata has not attended or reviewed any.
|
|
*/
|
|
import data from '@/research/learning-paths.json';
|
|
import type { RoleFamilyId } from '@/config/careers-roles';
|
|
|
|
export interface LearningPath {
|
|
id: string;
|
|
name: string;
|
|
provider: string;
|
|
kind: 'university' | 'college' | 'apprenticeship' | 'academy' | 'government' | 'online';
|
|
families: RoleFamilyId[];
|
|
/** ISO-2, "EU", or "online". */
|
|
country: string;
|
|
/** As the page states it; absent when it does not. */
|
|
format?: string;
|
|
careerChangers: boolean | null;
|
|
url: string;
|
|
checkedOn: string;
|
|
note: string;
|
|
}
|
|
|
|
export const LEARNING_PATHS = (data as { paths: LearningPath[] }).paths;
|
|
|
|
export const KIND_LABEL: Record<LearningPath['kind'], string> = {
|
|
university: 'University',
|
|
college: 'College',
|
|
apprenticeship: 'Apprenticeship',
|
|
academy: 'Industry academy',
|
|
government: 'Public programme',
|
|
online: 'Online',
|
|
};
|
|
|
|
export function pathsFor(families: readonly RoleFamilyId[]): LearningPath[] {
|
|
return LEARNING_PATHS.filter((p) => p.families.some((f) => families.includes(f)));
|
|
}
|