Skip to content

Migrate /lp/es/contacto to design tokens + shared form primitives - #99

Merged
filipagr merged 1 commit into
mainfrom
filipa/fil-851-migrate-lp-es-contacto-to-design-tokens
Jul 30, 2026
Merged

Migrate /lp/es/contacto to design tokens + shared form primitives#99
filipagr merged 1 commit into
mainfrom
filipa/fil-851-migrate-lp-es-contacto-to-design-tokens

Conversation

@filipagr

Copy link
Copy Markdown
Collaborator

Sixth page in the form/contact bucket (FIL-851 / FIL-693). Spanish contact form — the ES mirror of /contact-sales (~57 → 0 inline/hex/font-string). Zero raw form elements.

Stacked on #98#97 → … Base is the fil-850 branch; retarget to main as parents merge.

What changed

  • src/pages/ContactSalesBcnES.tsx — rebuilt on TextField / RadioField / Checkbox / SubmitButton / FormSuccess / FormError + SectionLabel.
  • i18n kept fully intact: useLang("es"), PlatformNavbar/Footer lang="es" + ES hrefs (/lp/es/soporte, /lp/es/contacto), all Spanish copy, and the "Barcelona ES Contacto" HubSpot context. data-hs-do-not-collect preserved.
  • src/lib/hubspot.tssubmitHubSpotForm gains an optional networkErrorMessage so localized pages show a translated network-failure message instead of the English default. This page passes the Spanish string. Backward-compatible (English pages unchanged).

Verification

  • Build + prerender, typecheck, lint all clean; zero inline/hex/rgba/font-string/em-dash debt.
  • In-browser: html lang="es", ES navbar/footer, all ES copy, the radio group, consent checkbox, and "Enviar" submit confirmed; no console errors.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
fil-one Ready Ready Preview Jul 30, 2026 9:48pm

Request Review

@filecoinfoundation-inf filecoinfoundation-inf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff — consistent form refactor onto shared FormControls with a backward-compatible localized network-error message addition. No security concerns.

@filipagr
filipagr force-pushed the filipa/fil-851-migrate-lp-es-contacto-to-design-tokens branch from 25c665e to 4be3456 Compare July 30, 2026 21:43
@filipagr
filipagr force-pushed the filipa/fil-851-migrate-lp-es-contacto-to-design-tokens branch from 4be3456 to 29a576a Compare July 30, 2026 21:44
@filipagr
filipagr force-pushed the filipa/fil-851-migrate-lp-es-contacto-to-design-tokens branch from 29a576a to d0e7e0b Compare July 30, 2026 21:45
@filipagr
filipagr force-pushed the filipa/fil-851-migrate-lp-es-contacto-to-design-tokens branch from d0e7e0b to 8a895fe Compare July 30, 2026 21:47
Base automatically changed from filipa/fil-850-migrate-waitlist-ai-agent-toolkit-to-design-tokens to main July 30, 2026 21:48
Sixth page in the form/contact bucket (FIL-693); stacked on FIL-850. Spanish
contact form — the ES mirror of /contact-sales. Tokenizes the page
(57 → 0 inline/hex/font-string); zero raw form elements.

- ContactSalesBcnES.tsx: rebuilt on TextField / RadioField / Checkbox /
  SubmitButton / FormSuccess / FormError + SectionLabel. i18n kept intact —
  useLang("es"), PlatformNavbar/Footer lang="es" + ES hrefs, all ES copy,
  and the "Barcelona ES Contacto" HubSpot context. data-hs-do-not-collect
  preserved.
- hubspot.ts: submitHubSpotForm gains an optional `networkErrorMessage` so
  localized pages surface a translated network-failure message instead of the
  English default (this page passes the Spanish string). Backward-compatible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@filipagr
filipagr force-pushed the filipa/fil-851-migrate-lp-es-contacto-to-design-tokens branch from 8a895fe to 0170017 Compare July 30, 2026 21:48
@filipagr
filipagr merged commit e08ead1 into main Jul 30, 2026
5 checks passed
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.

4 participants