Skip to content

J4: challenge page route with hero, symptoms, audience and diagnostic #233

Closed

Description

@wab

Parent

#212 (PRD: website redesign v2, delivery steps J1 to J6)

What to build

The tracer bullet for the six challenge pages. One route and one template render any challenge file, found by language and slug. A missing file returns 404.

The route is _main.($lang).challenges.$slug.tsx: /challenges/<slug> in French, /en/challenges/<slug> in English. The segment and the slug are the same in both languages, like every other route (decided in #212).

This ticket renders four sections, in the order of #212:

  • Hero, with the bow tie from J2: bow tie with active stages, challenge colour and KPI tooltips #227 (J2: bow tie with active stages, challenge colour and KPI tooltips) in the challenge colour and its active stages.
  • Symptoms, with coral bullets on every challenge page.
  • Audience.
  • Diagnostic, a yellow block on every challenge page, with its call to action through button.

A section whose content is missing is hidden. A bracketed mockup field never renders.

A challenge goes live when its file is on posts main. There is no feature flag.

Choices to make in this ticket

These are the maintainer's choices, not Ocobo's. Record them in the PR.

  • The URL scheme of challenge pages.
  • How the language switcher maps a French slug to its English slug.

Also in scope

  • The URL maps to the static cache strategy in getCacheStrategyForPath. Extend the function if it does not.
  • The sitemap lists every published challenge, in both languages.

Acceptance criteria

  • Loader tests through invokeLoader: the route returns the challenge for a language and slug, and 404 for a missing file.
  • A section with no content is absent from the page.
  • French and English render, and the language switcher reaches the matching slug.
  • The sitemap test covers challenge pages.
  • With GITHUB_BRANCH set to a posts branch that holds a challenge file, the page renders on the preview.

After merge

Open questions

  • English is machine-translated from French. Who reviews the English is an open Ocobo question; it does not hold this ticket.
  • The word "jalon" in the bow tie tooltips. It does not hold this ticket.

Blocked by

Activity

  1. changed the title [-]J4: enjeu page route with hero, symptoms, audience and diagnostic[/-] [+]J4: challenge page route with hero, symptoms, audience and diagnostic[/+] on Oct 21, 2026
  2. wab commented on Oct 21, 2026

    @wab
    ContributorAuthor

    Decision: the English challenge route is /en/challenges/<slug>. The French route keeps the French word: /enjeux/<slug>. Slugs are identical in both languages (posts#108), so the language switcher only swaps the language prefix and the segment. Follows website#262.

  3. wab commented on Nov 3, 2026

    @wab
    ContributorAuthor

    Impact of the mockup update in ocobo-revops/prototype#26 (page-by-page feedback from Morgane). Mockup copy enters production only once Ocobo validates it (PRD content rule). The validation question is on #212.

    • Hero. The bow tie loses its tooltips here (see J2: bow tie with active stages, challenge colour and KPI tooltips #227, J2: bow tie with active stages, challenge colour and KPI tooltips). The method page keeps them.
    • Hero CTA. "Échanger avec un architecte" on five challenges, "Évaluer ma maturité IA" on Revenue AI. Where hero.cta lives is an open question on PRD: website redesign v2, delivery steps J1 to J6 #212.
    • Experts intro. It becomes "Pas de passage de relais entre celui qui vend et celui qui construit ... travaillent avec vous". It still says "Survolez", which conflicts with user story 34.
    • Diagnostic. Subtitles are rewritten ("En 30 minutes, un architecte du revenu ..."). diagnostic.cta ("Réserver un diagnostic") no longer matches the mockup.
  4. wab commented on Nov 4, 2026

    @wab
    ContributorAuthor

    Impact of the mockup updates in ocobo-revops/prototype#27 (new home and AI headlines, Enjeux menu font) and ocobo-revops/prototype#28 (page headline style, manifesto button, menu entry colour). Mockup copy enters production only once Ocobo validates it (PRD content rule).

    The second line of the challenge H1 is now italic, in the challenge colour. app/components/challenges/challenge-hero.tsx renders hero.titleMuted in gray.

    • The colour choice is an open Ocobo decision, because the mockup colours fail WCAG contrast on white. See PRD: website redesign v2, delivery steps J1 to J6 #212.
    • The field name titleMuted no longer describes what it renders. Renaming it touches both Zod schemas (website and posts).
    • Bermia has no italic file, so the italic would be synthetic.
  5. wab commented on Nov 4, 2026

    @wab
    ContributorAuthor

    The H1 second-line change above is now tracked in #303 (J4 follow-up: italic accent colour on the second line of page headlines), since this ticket is closed.

    Correction: renaming titleMuted touches only the website view model in app/modules/challenge-page.ts. The posts schema stores the hero title as a tuple, so it is not affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, AFK-ready for an agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions