Skip to content

Use shared FormError on contact-sales + support - #96

Merged
filipagr merged 1 commit into
mainfrom
filipa/form-error-consistency
Jul 30, 2026
Merged

Use shared FormError on contact-sales + support#96
filipagr merged 1 commit into
mainfrom
filipa/form-error-consistency

Conversation

@filipagr

Copy link
Copy Markdown
Collaborator

Consistency follow-up for the form/contact bucket (FIL-693). contact-sales and support showed submit errors as plain centered red text, while partner-apply uses the boxed FormError callout. This swaps both onto the shared <FormError> so every form announces errors identically (role="alert", boxed danger treatment).

Stacked on #95 — depends on FormError, introduced in the partners-apply migration. Base is the fil-848 branch; retarget to main after the parents merge. 2-file diff vs fil-848.

Changed

  • src/pages/ContactSales.tsx, src/pages/Support.tsx — replace the inline plain-text error <p> with <FormError>{error}</FormError> and import it.

Verification

  • Build + prerender, typecheck, lint all clean.
  • In-browser: seeded an error on contact-sales to confirm the boxed FormError renders below the submit button (matching partner-apply), then reverted the seed.

🤖 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:43pm

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.

Trivial cleanup swapping inline error markup for the shared FormError component on ContactSales/Support. No concerns.

Base automatically changed from filipa/fil-848-migrate-partners-apply-to-design-tokens-shared-components to main July 30, 2026 21:42
Consistency follow-up: contact-sales and support showed submit errors as
plain centered red text, while partner-apply uses the boxed FormError
callout. Swap both onto the shared <FormError> so every form in the bucket
announces errors identically (role="alert", boxed danger treatment).

Depends on FormError (introduced in the partners-apply migration), so this
is stacked on that branch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@filipagr
filipagr force-pushed the filipa/form-error-consistency branch from d2011df to e865f02 Compare July 30, 2026 21:43
@filipagr
filipagr merged commit 23540d0 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.

3 participants