-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort state list alphabetically #17222
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@bondydaa should we also sort countries list programmatically as well? I believe they were sorted already in language file but just to confirm. |
src/components/StatePicker.js
Outdated
.sortBy(({stateName}) => stateName.toLowerCase()) | ||
.map(({stateISO, stateName}) => ({value: stateISO, label: stateName})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's avoid destructuring as per style guide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
yeah, it's already done in language file level. I meant to sort programatically as well for safety. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
@bondydaa all yours
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 great work
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.2.99-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.2.99-6 🚀
|
@bondydaa @0xmiroslav PR is ready for review.
Details
State list is not sorted correctly in Spanish. So in this pr corrected that problem. So now state list shows alphabetically sorted in Spanish and English also.
Fixed Issues
$ #17080
PROPOSAL: #17080 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Chrome En
Web-Chrome-En.mp4
Chrome Es
Web-Chrome-Es.mp4
Safari En
Web-Safari-En.mp4
Safari Es
Web-Safari-Es.mp4
Mobile Web - Chrome
En
MWeb-Chrome-En.mp4
Es
MWeb-Chrome-Es.mp4
Mobile Web - Safari
En
MWeb-Safari-En.mp4
Es
MWeb-Safari-Es.mp4
Desktop
En
Desktop-En.mov
Es
Desktop-Es.mov
iOS
En
iOS-En.mp4
Es
iOS-Es.mp4
Android
En
Android-En.mp4
Es
Android-Es.mp4