Skip to content

fix(Billing): Contact Sales opens the sales form instead of support chat - #8711

Draft
Holmus wants to merge 1 commit into
mainfrom
fix/contact-sales-hubspot-form
Draft

Holmus wants to merge 1 commit into
mainfrom
fix/contact-sales-hubspot-form

Conversation

@Holmus

@Holmus Holmus commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature. (Not required.)
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

The Enterprise "Contact Sales" button on the billing page opened the Pylon support chat. That sends sales enquiries to the support queue, does nothing for free-plan organisations (the people most likely to click it), and will stop working once Pylon chat is switched off.

  • Contact Sales opens the website's "Contact Enterprise Sales" HubSpot form in a side panel, so users stay in the dashboard and submissions go to the same place as the website form.
  • The user's name and email are prefilled from their account.
  • If the form can't load (for example, an ad blocker stops HubSpot), the panel links to the form on flagsmith.com instead.
  • Local development only: HubSpot's form embed resizes its iframe from a ResizeObserver, which the dev server overlay reported as a runtime error when the panel closed. The local dev config ignores that one benign error and otherwise keeps the overlay defaults. Browsers don't show it to users, and Sentry ignores it by default.

Review effort: 2/5

How did you test this code?

  • Rendered the real form at side-panel width on a dark background with the prefill applied. HubSpot's validation flagged only the empty message field, so the prefilled values register. Nothing was submitted.
  • Locally: CI=true lint on changed lines, the full unit test suite and the production build pass. Confirmed the dev overlay still shows build errors and no longer shows the resize error.
  • Manual check against staging (ENV=staging npm run dev): Billing → Enterprise → Contact Sales opens the prefilled form, a test submission arrives in HubSpot, and with an ad blocker on the fallback link shows.

🤖 Generated with Claude Code

The Enterprise "Contact Sales" button opened the Pylon support chat, so it
did nothing for free-plan organisations and will stop working once Pylon
chat is switched off. It now opens the website's "Contact Enterprise Sales"
HubSpot form in a side panel, prefilled from the signed-in user, with a link
to the website form if HubSpot is blocked.

HubSpot's form embed resizes its iframe from a ResizeObserver, which the dev
server overlay reported as a runtime error on close. The local dev config
now ignores that benign error and otherwise keeps the overlay defaults.

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

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Oct 9, 2026 3:16pm UTC
flagsmith-frontend-staging Ready Ready Preview Oct 9, 2026 3:16pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Oct 9, 2026 3:16pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-staging — 4e9fba49 Deployed Oct 9, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — 4e9fba49 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant