-
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
15211: search pronouns #15317
15211: search pronouns #15317
Conversation
@puneetlath @mollfpr One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
Missing JSDoc on onChangeText function.
What should I add? I follow Avoid descriptions that don't add any additional information Could you help me what would be the best way to Document a function like |
Yeah, you’re right! Since we have a default value for the parameter, we’re good without the JSDoc. |
Reviewer Checklist
Screenshots/VideosWeb15317.Web.movMobile Web - Chrome15317.mWeb.Chrome.mp4Mobile Web - Safari15317.mWeb.Safari.mp4Desktop15317.Desktop.moviOS15317.iOS.mp4Android15317.Android.mp4 |
@puneetlath Just for clarity, if the user has selected pronouns, what should we show on the |
Good question. Maybe we should do it similar to the Timezone page. Where the input is filled with your current choice, but the text is selected so that if you start typing it is overwritten. What do you think? Screen.Recording.2023-02-22.at.10.57.34.AM.mov |
Also, we should allow selection via arrow keys. Like we do on the New Chat page. |
I Think this is easy to add.
For this one I will have to look a bit more |
@puneetlath for the input filled seems that there is a bug on iOS, it isn't selecting the text (this error happens on Timezone Page too) Screen.Recording.2023-02-23.at.10.07.11.movwhat should I do? |
@gedu Is the issue you mentioned need to be fixed separately on TimezonePage and PronounsPage? Or it can be in one fix? |
It can be fixed together, I rollback and won't submit it |
All should be ok now, is behaving the same way as the videos in the description |
ok cool. @mollfpr can you give it the first review? |
The code changes look good. @puneetlath Do you think the bottom margin of the title and the selection is too far?
|
I have terrible eyes for this. What do you think @shawnborton? |
For that change, can we see what it looks like when the input focused? We probably want 20px of margin under the text and above the input. |
@shawnborton Here you go. It has 12px space from vertical padding of the text input. |
Cool, that works for me. |
@gedu I found a bug after refreshing the pronouns page; then selecting a pronoun. The selected pronoun is not checked, and the input value is not cleared. Screen.Recording.2023-02-27.at.23.45.53.mov |
I will take a look |
I'm still looking at this, this bug is happening on @mountiny should I keep looking into this? or we can create a follow-up PR given that happens on other pages? |
Screen.Recording.2023-02-28.at.12.24.23.mp4 |
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.
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.
Code looks good to me.
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, good work @gedu 👍
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
This PR did not touch the Seaech page so this performance evaluation seems off |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.2.78-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.2.78-0 🚀
|
Details
Now the
PronounsPage
is a class component and will show a search input to filter the pronouns.Fixed Issues
$ #15211
PROPOSAL: #15211 (comment)
Tests
Open the Pronouns page
You should see an input and no options
Open the Pronouns page
Write some letters to start seeing some options
Click on one and it should be applied to your profile
Offline tests
QA Steps
Same as above
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
pro_chrome.mp4
Mobile Web - Chrome
pro_androidChrome.mp4
Mobile Web - Safari
pro_iosSafari.mp4
Desktop
pro_desktop.mp4
iOS
pro_ios.mp4
Android
pro_android.mp4