You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
J3: read challenge files through the content API #229
#212 (PRD: website redesign v2, delivery steps J1 to J6)
What to build
The website reads challenge files from the posts repo, like stories, blog posts, pages and jobs.
A new challenge Zod schema and a validator in ContentValidators.
fetchChallenge (by language and slug) and fetchChallenges (by language) in the content API.
Files live under challenges/<lang>/<slug>.md, frontmatter only.
Both content sources work: local filesystem and GitHub.
The schema mirrors the core schema of ocobo-revops/posts#94 (Challenge content type: core schema, Stage ids and validation): key (rp, se, sc, cx, sy, ai), order, hero, bowtie.activeStages (Stage ids from #220 (J2: bow tie stage model with the seven Stage ids)), symptoms, audience, workstreams, aiBridge without its demo, method, case (with case.story optional) and diagnostic. It is a strict object, so unknown keys such as extraSections fail. The agent window demo and the partner block come in #230 (J3: agent window demo and partner block in the challenge schema).
The website schema must accept every file the posts schema accepts. Both schemas change in the same pair of PRs.
Acceptance criteria
Schema tests: a complete file validates, and each optional section can be absent.
Schema test: bowtie.activeStages rejects an unknown Stage id.
The six golden fixtures of posts#94 validate against the website schema.
Content API tests: one challenge by language and slug; every challenge of a language; a missing file returns not_found.
Questions for review
PRD: website redesign v2, delivery steps J1 to J6 #212 says the "how we work" heading and its step titles come from locales/, identical on every page. posts#94 adds optional overrides: workstreams.title, method.title and method.steps[].title, used by Revenue AI. The website schema accepts them either way. J4: workstreams and how we work sections on challenge pages #234 (J4: workstreams and how we work sections on challenge pages) must settle which one wins on the page.
Activity
[-]J3: read enjeu files through the content API[/-][+]J3: read challenge files through the content API[/+]