Skip to content

Funnel primary CTA to consultation request form#274

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-primary-cta-for-consultation
Draft

Funnel primary CTA to consultation request form#274
Copilot wants to merge 2 commits intomainfrom
copilot/update-primary-cta-for-consultation

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 31, 2026

The primary CTA (Get Started) triggered an alert instead of directing users to the contact form, and the contact form itself had no consultation-specific framing or fields.

Changes

index.html / main.js

  • Replaced <button onclick="showMessage()"> with <a href="#contact" class="cta-button">Request Consultation</a> — removes the alert, adds anchor navigation
  • Removed showMessage() and its window exports from main.js
  • Secondary link repurposed to Our Services → #services to avoid duplicate #contact links
  • Contact section heading: Contact UsRequest a Consultation
  • Added Service Interest (4 service options) and Preferred Contact Method (Email / Phone / Video Call) dropdowns
  • Submit button: Send MessageRequest Consultation; success toast updated to match

src/components/ContactForm.tsx

  • Added serviceInterest and preferredContact to form state and JSX, mirroring the HTML form options
  • Submit button label updated to Request Consultation

src/api/contact.ts

  • Extended ContactFormData interface with optional serviceInterest?: string and preferredContact?: string
  • Added length/type validation for both new fields

tests/ContactForm.test.tsx

  • Updated all button queries from /send message/i/request consultation/i
  • Added field presence assertions for the two new dropdowns

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • googlechromelabs.github.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node install.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update primary CTA to funnel users to consultation form Funnel primary CTA to consultation request form Mar 31, 2026
Copilot AI requested a review from danielmeppiel March 31, 2026 08:47
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.

Primary CTA funnels users to request a consultation via contact form.

2 participants