fix(profile): improve full name validation with clearer error messages by rohilsurana · Pull Request #1396 · raystack/frontier
Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
Use the checkboxes below for quick actions:
- ▶️ Resume reviews
- 🔍 Trigger review
📝 Walkthrough
Walkthrough
Name validation in the user update form was refactored: names must start and end with a Unicode letter, may include periods, spaces, hyphens, and apostrophes, disallow consecutive spaces, and require spaces/hyphens/apostrophes to be followed by a letter; per-rule error messages were added.
Changes
| Cohort / File(s) | Summary |
|---|---|
Name Validation Enhancement web/lib/react/components/organization/user/update.tsx |
Replaced the previous ASCII-only regex with Unicode-aware validation broken into multiple constraints: start-with-letter, end-with-letter, allowed punctuation (., space, hyphen, apostrophe), no consecutive spaces, and require that spaces/hyphens/apostrophes are followed by a letter. Updated error messages accordingly. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
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 help to get the list of available commands and usage tips.