Skip to content

refactor(tokens): rename enjeu colour tokens to challenge - #263

Merged
wab merged 1 commit into
mainfrom
claude/challenge-rename-33f160
Oct 21, 2026
Merged

wab merged 1 commit into
mainfrom
claude/challenge-rename-33f160

Conversation

@wab

@wab wab commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Renames the code term enjeu to challenge in the website. The content repo already made the same rename (ocobo-revops/posts#108, #109, #111).

  • Semantic colour tokens enjeu.{rp,se,sc,cx,sy,ai} and their .light tints become challenge.* in preset/semantic-tokens.ts.
  • Call sites updated in app/components/design-system/flip-card-section.tsx and app/components/design-system/v2-tokens-section.tsx. The design system section title becomes "Challenge colours".
  • Comments updated in preset/slot-recipes/flip-card.ts, app/modules/bowtie-stages.ts and app/components/navbar-v2/.
  • Navbar v2 test: the item key becomes challenges. The French label "Vos enjeux" and the French path /fr/enjeux/rp stay.
  • Docs: CLAUDE.md, ADR 0002, the component inventory and the J1 route review checklist.

Unchanged on purpose: French UI strings (locales/fr/*, the French demo copy "Enjeu 01" on the flip card showcase) and the six keys. locales/en contained no "Enjeu", so it needed no change.

Issues #227, #229, #230, #232 to #237, #241 and #243 were retitled to say "challenge". The other issues under #212 had no enjeu in their title. The bodies of #227, #229 to #239 and #241 to #243 now say challenge too, including fetchChallenge, challenges/<lang>/ and the challenge team member field.

git grep -i enjeu -- app preset now returns only French UI strings.

Open question: English route segment

French pages stay at /enjeux/<slug>. Which segment do English pages use?

  • /en/challenges/<slug> (proposed): matches the English label and the content directory. Needs a slug mapping in app/utils/redirections.ts.
  • /en/enjeux/<slug>: one segment for both languages, simpler routing, but a French word in English URLs.

This PR changes no route. The answer feeds #233 (J4: challenge page route with hero, symptoms, audience and diagnostic).

Review on the Vercel preview

  • /design-system: the "Challenge colours" section shows the six accents and tints as before, and the flip card pill keeps its mint.

This PR changes a shared preset token. Pages not being redesigned that it can alter: none use the renamed tokens (offer, blog, customer stories, legal and contact have no enjeu.* call site).

Checks

  • pnpm check, pnpm typecheck: green.
  • pnpm test:run: 41 files, 490 tests pass.
  • Code review pass over the diff: no missed reference, Panda extraction fine. One comment rewrap applied.

Closes #262

Rename the enjeu.* semantic colour tokens and their .light tints to
challenge.*, with their call sites, comments, the navbar v2 test and the
docs. French UI strings and the French route segment are unchanged.

Closes #262
@wab
wab merged commit a7bd806 into main Oct 21, 2026
5 checks passed
@wab
wab deleted the claude/challenge-rename-33f160 branch October 21, 2026 16:00
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Oct 21, 2026 4:06pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 915d3ece Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename enjeu to challenge in code

1 participant