-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-04-14] [$1000] There is no feature to remove preferred pronouns once a user adds preferred pronouns #16349
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.New feature to unselect the Pronouns. What is the root cause of that problem?There is no way to unselect an option. What changes do you think we should make in order to solve the problem?We need to check if new selected value of Pronouns is same as current value, if it is same then pass NULL value to API. Video after applying solution:Screen.Recording.2023-03-22.at.1.22.34.PM.mov |
📣 @varshamb! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
|
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@puneetlath you happy with this proposed pattern for deselect? It seems pretty straightforward to me. |
Job added to Upwork: https://www.upwork.com/jobs/~0179e823ce97e8d1de |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @marcochavezf ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a pronoun has been chosen by the user, there is no way to remove pronouns from your profile. What is the root cause of that problem?This is a feature request, rather than a bug. In the above proposal, it mentions being able to "unselect" your pronoun by selecting the pronoun again. This kind of behaviour is not used anywhere in the app as far as I know and wouldn't be intuitive for the user. What changes do you think we should make in order to solve the problem?When the Pronouns Page opens, we currently do not show a default value. I propose that if the pronouns have been set by the user, we show them in the text field by default and also show a "Clear Pronouns" button below the text input. If the user clicks on that, the data will be cleared and the user will be redirected to the Profile Page. If the user has not set any pronoun, the button will not be visible. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
PronounsPage.js
+ /**
+ * Fetch the actually selected pronouns from currentUserPersonalDetails
+ *
+ * @returns {string}
+ */
+ getPronouns = () => {
+ let pronounsKey = lodashGet(this.props.currentUserPersonalDetails, 'pronouns', '');
+ if (pronounsKey.startsWith(CONST.PRONOUNS.PREFIX)) {
+ pronounsKey = pronounsKey.slice(CONST.PRONOUNS.PREFIX.length);
+ }
+ return lodashGet(this.props.translate('pronouns'), pronounsKey, null);
+ };
+ const selectedPronouns = this.getPronouns();
+ <TestToolRow title={selectedPronouns}>
+ <Button
+ small
+ text="Clear Pronouns"
+ onPress={() => this.updatePronouns('')} // Clear the selected Pronouns
+ />
+ </TestToolRow>
Result Simulator.Screen.Recording.-.iPhone.14.-.2023-03-23.at.09.36.38.mp4 |
Auto-assign attempt failed, all eligible assignees are OOO. |
Ah looks like Shawn is OOO, but @shawnborton when you're back perhaps you can give us some thoughts on what you think the best approach is for this given that there is no existing pattern in the app. |
@puneetlath Can we hold this to prevent it's doubling? |
That makes sense to me. @trjExpensify feel free to change if you disagree. |
Yeah, I'm not sure I agree with the clear pronouns button, it seems pretty heavy. Whatever we do here should extend to other places we'll be using the list pattern i.e categories, tags etc. I think tapping the selected value in the list to deselect it works, IMO. It's kinda' subtle, but it would make sense that when you tap the value that has a green tick, it deselects that value. |
I am not assigned yet. Waiting for @marcochavezf's approval |
Hi guys, sorry for the delay here. Assigning @situchan |
@varshamb thank you for bringing this to our attention. We understand that everyone's time is valuable, and we want to ensure that our system takes that into consideration. We're planning to expand our system to consider the effort a contributor spends to figure out a solution (even if the proposal is not selected). Meanwhile, we encourage you to keep posting proposals on other reported bugs and sharing your thoughts with us. |
📣 @situchan You have been assigned to this job by @marcochavezf! |
@mollfpr @marcochavezf PR is ready for review |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.96-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-04-14. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
We didn't have the option to unselect the preferred pronouns since the feature was implemented, so technically, no bug introduced this behavior. Also, I think the regression test steps will be enough to prevent this issue in the future. I checked off the corresponding checkboxes. |
@zanyrenney @twisterdotcom @Beamanator presumably, once the account settings project is complete, the regression tests will be added to accommodate the changes right? Given that, I don't think I'll add to a competing standalone one here for removing pronouns. |
Alrighty, payments.. @situchan - $1,500 for the fix + #urgency bonus *it could be debated that this was a feature request, but I think it was more of an oversight on implementation really, so I'm going to pay out the bug report on it. Offers sent! |
Settled up with @situchan 👍 |
@trjExpensify Accepted, thank you! |
@trjExpensify Accepted. Thank you! |
Cool, settled up with everyone. Thanks! |
Agreed @trjExpensify - that's one of the final tasks in the project, hoping that will happen soon - making sure all the TestRail steps are available for all the new pages 🙏 We've been adding a few as we go, but will definitely do a final sweep at the end 👍 |
Awesome, that's great! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
A feature to remove the added pronoun should be available
Actual Result:
There is no feature that supports removing applied pronouns, the available option is changing pronouns only
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.87-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Recording.14.mp4
Pronouns.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679123540639329
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: