fix(settings): render athlete stats outside form fields - #627
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Independent review receipt for Verified the exact four-file diff. The imperial feet/inches/lbs and metric kg proxy controls now use ordinary Local verification: focused athlete route tests 4/4 pass; WODsmith Start type-check passes; changed-file Biome passes; CI at review time: Start/Crew lint and Crew build pass; branch-stack and GitGuardian pass; Start build plus both E2E shards and Crew demo E2E are still pending. CodeRabbit is green only as a rate-limited status and did not provide a substantive review. Residual risk: this review has route-level jsdom proof but no fresh authenticated browser recapture of |
|
Independent evidence-delta review at exact head Findings-first checks:
Validation: direct |
d6316c1
into
codex/settings-profile-form-context-fix
Summary
LabelandInputprimitives instead of context-dependent React Hook Form field componentsRoot cause
The feet, inches, and weight controls are display proxies backed by local state, not registered
FormFieldcontrols. They renderedFormItem,FormLabel,FormControl, andFormDescriptionwithout aFormFieldcontext, so the shared form invariant threwuseFormField should be used within <FormField>before/settings/athletecould render.Scope
This is stacked on #626 (
codex/settings-profile-form-context-fix). It changes only the four athlete physical-stat proxy blocks and their local height hydration regex. Shared form primitives, schemas, server functions, handlers, and PR #625 evidence are unchanged.Validation
useFormFieldexceptionlat check: passedmainSummary by cubic
Fixes a crash on /settings/athlete by rendering height and weight proxy inputs outside React Hook Form and introduces shared UI primitives for consistent, accessible layouts across Crew and Start. Improves mobile navigation and admin semantics, and adds focused tests.
Bug Fixes
useFormFieldcontext error by composing imperial/metric stat inputs with plain controls; keepheightCm/weightKg, convert on blur, and hydrate with^(\d+)'(\d+)"?$.New Features
@repo/ui/field,@repo/ui/empty-state, and@repo/ui/metric; adopt them in judges, scaling groups, registration questions, imports, venues, invites, templates, and exports via thin app re-exports.Written for commit d6316c1. Summary will update on new commits.