Content: Contact.jsx form field has space in name attribute #207
Labels
No Label
P0
P1
P2
P3
accessibility
backend
bug
content
data-integrity
enhancement
frontend
infra
integration
owner
owner-input
performance
phase-7
phase-8
release-blocker
security
seo
ui
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Queue-North-Website#207
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Minor
File:
src/pages/Contact.jsxline 473Issue: Form field
name="Last Name"contains a space — unconventional and may cause issues with form processors or CRM integrations.Fix direction: Use underscore:
name="last_name".Checked while working Batch 10. The premise needs correcting before anyone acts on it, and the line reference is wrong.
The stated risk does not exist. The issue says the space in
name="Last Name""may cause issues with form processors or CRM integrations". This form does not post to a CRM.src/pages/Contact.jsxposts JSON to our own/api/leads(see the mapping at lines 97-104:formState['Last Name']becomesname,formState['Zip Code']becomeszip). The Zoho WebToLead payload is built entirely server-side inserver/index.js:567,570, with its own literals'Last Name'and'Zip Code'— which is what Zoho actually requires, spaces included.So the names in Contact.jsx are internal React state keys. They reach Zoho through nothing.
The line number is wrong. The issue cites line 473. The attributes are at lines 315 (
name="Last Name") and 364 (name="Zip Code").Where it would actually bite. A careless rename of only the
name=attribute — the literal fix direction here,name="last_name"— would desynchronise it from theformStatekeys, theerrorskeys and the validation at lines 44-47, and silently break required-field validation on the contact form. Anyone doing this must change all of: theuseStateinitialiser, theerrorsinitialiser,resetForm, the validators, thehandleChangepath, and the payload mapping.Recommendation: close as won't-fix. The names mirror Zoho's own field naming deliberately, which makes the server-side mapping legible, and there is no functional gain from renaming ~10 call sites. Leaving it open as a P2 invites exactly the partial rename described above.
Not closing it unilaterally — the original reporter may have had a reason not stated here.