Skip to content

feat(navbar): Vos enjeux replaces Notre offre, desktop bar on one line - #313

Merged
wab merged 3 commits into
mainfrom
claude/nav-enjeux-swap-d98fdb
Nov 6, 2026
Merged

wab merged 3 commits into
mainfrom
claude/nav-enjeux-swap-d98fdb

Conversation

@wab

@wab wab commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Why

Two decisions for the "Vos enjeux" launch (the challenges feature flag in app/modules/feature-flags.ts):

  • "Vos enjeux" replaces "Notre offre" in the main nav once challenges are live.
  • The desktop nav must stop wrapping onto two lines when scrolled, before the flag opens in production.

Follows #300 (challenge menu in the v1 navbar, #237). Part of the same launch as #304, #309, #311 and #312; this PR touches none of their files.

What changes

Challenges entry in place of the offer entry

  • placeChallengeItem in app/hooks/useMenuItems.ts puts the challenges item where the offer item was.
  • The swap depends on the challenges item being present, not on the flag alone. Flag on but no challenge published in the page language: "Notre offre" stays.
  • The /offer route is unchanged and still reachable by URL. Only the menu entry changes.
  • useMenuItems also feeds the mobile drawer, so the drawer shows the same swap. The v1 and v2 footers do not read the offer key, so they are unaffected.

Desktop bar on one line

Cause: the scrolled bar was capped at 5xl (1024px). With the challenges entry it had about 10px to spare, and the dropdown triggers had no nowrap, so their labels broke onto two lines.

  • Scrolled cap raised from 5xl to 6xl (1152px).
  • Dropdown triggers get whiteSpace: 'nowrap', like the plain links already had.
  • Between 1024px and 1280px (lg only), item padding goes from 4 to 3 and the gap from 2 to 1. From xl the spacing is as before.
  • Mobile is unchanged: every change is at lg and up.

Verification

  • Unit tests: placeChallengeItem (item present, item null, no offer entry, no mutation) and the navbar component (offer gone and challenges in its place; offer kept with no challenge).
  • pnpm check, pnpm typecheck and pnpm test:run green.
  • In the browser with DISABLED_PAGES=none and the local posts checkout on feat/118-fr-challenges, FR and EN, at the top of the page and scrolled:
Viewport Bar width (scrolled) One line Space before the CTA (scrolled, FR / EN)
1024px 961px yes 38px / 42px
1280px 1152px yes 106px / 110px
1440px 1152px yes 106px / 110px
  • Mobile (375px): drawer opens and lists "Vos enjeux" first.

Pages this can alter

The old navbar is on every page: home, offer, method, blog, customer stories, jobs, legal, contact. On the Vercel preview, check the bar scrolled and unscrolled at 1024px and 1280px. With the flag off (production default), the menu is the same as today; only the scrolled width and the item spacing between 1024px and 1280px change.

wab and others added 3 commits November 6, 2026 14:37
When a challenge is published in the page language, "Vos enjeux"
takes the place of "Notre offre" in the menu. With no challenge (flag
off, or nothing published in that language), the offer entry stays.
The /offer route is unchanged and still reachable by URL.

Co-Authored-By: Claude <noreply@anthropic.com>
The scrolled bar was capped at 5xl (1024px), which left no room once
the challenges entry was shown, and the dropdown triggers could break
their label onto two lines. Widen the scrolled cap to 6xl, keep every
trigger on one line, and tighten item spacing between 1024px and
1280px. Mobile is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Keep the challenges entry when no offer entry exists, reword a
comment, and drop a flexWrap that changed nothing.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 6, 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 Nov 6, 2026 1:40pm UTC

Request Review

@wab
wab merged commit 7d2ad29 into main Nov 6, 2026
6 checks passed
@wab
wab deleted the claude/nav-enjeux-swap-d98fdb branch November 16, 2026 19:51

This branch was successfully deployed

1 active deployment
Preview — 9f61abfc Deployed Nov 6, 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.

1 participant