Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
computeRoi multiplies reps, opportunities, win rate, deal value and duration, then applies a conservative or ambitious RevOps scenario. The formatting helpers write euros, counts and percentages in French and English. Both are covered by unit tests (#248).
Production sets DISABLED_PAGES without roi, so dropping roi from the unbuilt list would publish the page. AWAITING_SIGN_OFF_PAGES keeps it off in production whatever the env var says, and lets Vercel previews and local dev follow DISABLED_PAGES so the page can be reviewed. Refs #248.
One shared state (five figures and a scenario) feeds the worked example, the sliders, the result card and the detail table. Copy lives in the new roi namespace, FR and EN.
The global h3 rule set them in Bermia and pushed the hint down. They now share stepTitle and stepHint with the walkthrough steps.
999 600 € read "1000 k€" and 9 999 000 € read "10,00 M€". The unit and the decimals now follow the rounded figure. French counts group with NBSP like the other helpers.
The walkthrough file passed 400 lines. The band cells are now sorted by row and column, so a screen reader reads the formula in order rather than all terms, then all operators. The example copy takes a plural for the opportunity lever.
- Figures use text({ variant: 'display-md-black' }) with a size override
instead of an inline display font (ADR 0001).
- The detail table hides its operator column header, as every row does,
so headers match cells.
- One polite live region announces the contract value gain; the result
card and the lever pills no longer announce on every slider step.
- The slider hint is linked with aria-describedby, out of the label.
- The hero is a div, not a second banner landmark.
wab
force-pushed
the
cc/248-roi-page-7d65d1
branch
from
November 17, 2026 14:16
cd37350 to
1adb788
Compare
text() defaults to the dark colour, so the today figure on the result card and the with-RevOps figure on the final detail row became invisible on their dark background. Each now names its colour.
- Top padding: the layout already clears the navbar, so the badge now sits 168px from the top instead of 288px. - Headline: plain wrap instead of the reset's balance, so the first line breaks after "equipe" as in the mockup. - Subtitle: the 20px medium lead of the other redesigned heroes, in gray.600. - Dot backdrop behind the chart, with the mockup's mask. - Chart narrowed to 1024px.
cx joins classes without merging them: a shared px/py class emitted later in the stylesheet overrode the ring, final pill and chip paddings.
- The detail header row shows on phones and its labels fit their columns. - Header and row paddings no longer clash (8px header, 14px rows). - Headers and hints use the muted grey, 4.8:1 on white. - The slider hint sits outside its label, so the accessible name is the label alone; the hint stays attached through aria-describedby.
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.
Closes #248
What
The ROI page at
/fr/roiand/en/roi(/roiredirects to the visitor's language), built from theroimockup in the prototype repo.lg) and a line-by-line detail table.The calculation is pure, in
app/utils/roi.ts, written test-first (app/utils/roi.test.ts). Components only format and display it. Figures are formatted per language withIntl.Flag and sign-off hold
roistays inDISABLED_PAGES_DEFAULT. It is also listed inAWAITING_SIGN_OFF_PAGESinapp/modules/feature-flags.ts:DISABLED_PAGESsays, until Ocobo signs off the copy.VERCEL_ENV=preview) and local development followDISABLED_PAGES, so the copy can be reviewed there by settingDISABLED_PAGES=news,tools.VERCEL_ENVcounts as production (fails closed).roifromAWAITING_SIGN_OFF_PAGESand fromDISABLED_PAGES_DEFAULT.To review the page on the Vercel preview, the Preview environment needs
DISABLED_PAGES=news,tools. Without it, the default list still includesroiand the preview returns 404. I could not check the Vercel settings from here.With the flag off,
/roi,/fr/roiand/en/roireturn 404 and the sitemap omits the page. With it on, the sitemap lists both languages.Notes for review
gradients.ai-textfor AI content; the hero uses the yellow marker instead.preset/change. Everything uses existing recipes and v2 tokens.Shared pieces touched
ChallengeDiagnosticis reused as is, with theroicopy. No change to the component.docs/development/component-inventory.mdlists the newapp/components/roi/components.No shared recipe or component changed, so no other page should move on the preview.
Checks
pnpm check,pnpm typecheck,pnpm test:run: green.text(), detail table header count, one live region for the gain only, walkthrough reading order, slider hint viaaria-describedby, plural in the example copy, walkthrough file split under 400 lines. Left: the hero chart's end chip combines border, shadow and radius inline; it is a pill, not a card.