Skip to content

Challenge pages: experts CTA opens the contact page #328

Open

Description

@wab

Parent

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

Context

#327 adds ContactCta. Every "Échanger avec un architecte" button now opens the contact page in the current language.

On challenge pages, the experts block CTA ("Échanger avec l'un d'eux" / "Talk to one of them") was left out. It still scrolls to the #diagnostic block at the bottom of the page. It also disappears when the page has no diagnostic block.

The hero CTA on the same page always shows and always opens the contact page, so the two CTAs now behave differently.

Decision needed

Should the experts CTA open the contact page too?

  • Yes (recommended): one rule for every contact CTA. ChallengeExperts loses its hasDiagnostic prop.
  • No: keep the scroll to the diagnostic block, which repeats the offer before the contact link.

What to build (if yes)

  • app/components/challenges/challenge-experts.tsx: replace the anchor with <ContactCta size="md">{t('experts.cta')}</ContactCta>.
  • Remove hasDiagnostic from ChallengeExperts and from the challenge route.
  • Update the slug route test that expects #diagnostic for "Talk to one of them".

Acceptance criteria

  • The experts CTA opens /fr/contact on French pages and /en/contact on English pages.
  • It shows even when the page has no diagnostic block.

Activity

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

    needs-triageMaintainer needs to evaluate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions