Repository navigation
feat(navbar): Vos enjeux replaces Notre offre, desktop bar on one line - #313
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 6, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Two decisions for the "Vos enjeux" launch (the
challengesfeature flag inapp/modules/feature-flags.ts):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
placeChallengeIteminapp/hooks/useMenuItems.tsputs the challenges item where theofferitem was./offerroute is unchanged and still reachable by URL. Only the menu entry changes.useMenuItemsalso feeds the mobile drawer, so the drawer shows the same swap. The v1 and v2 footers do not read theofferkey, 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 nonowrap, so their labels broke onto two lines.5xlto6xl(1152px).whiteSpace: 'nowrap', like the plain links already had.lgonly), item padding goes from4to3and the gap from2to1. Fromxlthe spacing is as before.lgand up.Verification
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 typecheckandpnpm test:rungreen.DISABLED_PAGES=noneand the local posts checkout onfeat/118-fr-challenges, FR and EN, at the top of the page and scrolled: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.