fix: use phoneNumber for socialLink in application#1149
Conversation
Deploying www-rds with
|
| Latest commit: |
0a00385
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://668bb24d.www-rds.pages.dev |
| Branch Preview URL: | https://fix-update-phoneno.www-rds.pages.dev |
WalkthroughA systematic field rename from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
tests/constants/application-data.js (1)
30-38:⚠️ Potential issue | 🟡 Minor
APPLICATIONS_DATA.socialLinkis missingphoneNumber.
base-step.js'snewStepFourDatamapper now readsapp.socialLink?.phoneNumber. Since this fixture has nophoneNumberkey, any test that runs the mapper againstAPPLICATIONS_DATAwill silently produce an empty phone number, bypassing form validation.🛠️ Proposed fix
socialLink: { github: 'johndoe', linkedin: 'johndoe', twitter: 'Johndoe', peerlist: 'johndoe', instagram: 'johndoe', dribbble: 'johndoe', behance: 'johndoe', + phoneNumber: '+1-699-969-6969', },🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tests/constants/application-data.js` around lines 30 - 38, The APPLICATIONS_DATA fixture is missing socialLink.phoneNumber which causes base-step.js's newStepFourData mapper (it reads app.socialLink?.phoneNumber) to return empty and bypass form validation; update the APPLICATIONS_DATA.socialLink object to include a realistic phoneNumber entry so tests exercising newStepFourData get a populated phone value (locate APPLICATIONS_DATA.socialLink in tests/constants/application-data.js and add the phoneNumber key).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@tests/constants/application-data.js`:
- Around line 30-38: The APPLICATIONS_DATA fixture is missing
socialLink.phoneNumber which causes base-step.js's newStepFourData mapper (it
reads app.socialLink?.phoneNumber) to return empty and bypass form validation;
update the APPLICATIONS_DATA.socialLink object to include a realistic
phoneNumber entry so tests exercising newStepFourData get a populated phone
value (locate APPLICATIONS_DATA.socialLink in
tests/constants/application-data.js and add the phoneNumber key).
817cde6 to
e48bc43
Compare
e48bc43 to
0a00385
Compare
Date: 21-02-26
Developer Name: @MayankBansal12
Issue Ticket Number:-
phoneNofield is being used for new application, however it was changed recently and API now acceptsphoneNumberDescription:
phoneNotophoneNumberfor new applicationsIs Under Feature Flag
Database changes
Breaking changes (If your feature is breaking/missing something please mention pending tickets)
Is Development Tested?
Tested in staging?
Add relevant Screenshot below ( e.g test coverage etc. )
screencast
Screencast.from.2026-02-21.23-15-36.mp4