Repository navigation
Make license number optional in public registration - #429
Conversation
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
There was a problem hiding this comment.
Sorry @JacquesDelfrate, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 6 days by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuidePublic registration now accepts missing or blank license numbers, labels the field as optional in every supported locale, and sends a normalized empty value to the API. Profile settings reuse a credential-formatting helper to trim valid licenses and suppress the separator and copy control when none exists, with focused validation, request, and display tests. Flow diagram for optional license registrationflowchart TD
A[Public registration form] --> B[License number optional]
B --> C[getRegistrationValidationMessage]
C --> D[createRegistrationRequest]
D --> E[licenseNo normalized to empty string]
E --> F[Public registration API]
Flow diagram for conditional profile license displayflowchart TD
A[Settings profile] --> B[getProfileCredentialDetails]
B --> C{licenseNo after trim}
C -->|Present| D[Show specialty separator and license]
D --> E[CopyToClipboardButton]
C -->|Absent| F[Show specialty without separator]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Closes #428
Depends on backend: HeartWise-AI/pacs-ai-backend#329
Summary
Validation
Settings.tsxlint regression comparison: baseline 141 errors/4 warnings; branch 141 errors/4 warningsSummary by Sourcery
Make license numbers optional for public registration while keeping profile credentials clean when no license is provided.
New Features:
Bug Fixes:
Enhancements:
Tests: