-
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-12-12] [$500] Personal details - No green check mark and the year is not selected using Enter key #31689
Comments
Job added to Upwork: https://www.upwork.com/jobs/~014b429ddfb40b7555 |
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing Enter key on year picker modal closes Date of birth page as well What is the root cause of that problem?This was fixed in #30300 but the fix was reverted during TS migration refactor of What changes do you think we should make in order to solve the problem?Bring back that change |
@mkhutornyi's proposal looks good to me. |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
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?
onYearSelected(year) {
this.setState(
(prev) => {
const newCurrentDateView = setYear(new Date(prev.currentDateView), year);
return {
currentDateView: newCurrentDateView,
isYearPickerVisible: false,
years: _.map(prev.years, (item) => ({
...item,
isSelected: item.value === newCurrentDateView.getFullYear(),
})),
};
},
+ () => this.props.onSelected(format(new Date(this.state.currentDateView), CONST.DATE.FNS_FORMAT_STRING)),
);
}
What alternative solutions did you explore? (Optional)
|
@aimane-chnaif Please help check my proposal, that indicates all encounted bugs and the RCAs |
@DylanDylann this is not bug but intentional. The input field is updated only when select date |
@aimane-chnaif but, if I change the date, it will update. So, there is a inconsistency here |
The UX is: when select year, month don't update input. when select date, sync input with selected year, month, date |
@DylanDylann what you're suggesting is new feature, not relevant to this issue. If you persist, please raise discussion on slack with Problem / Solution. |
Yeah. Thanks for your information. What about the 2nd bug that is mentioned in my proposal? |
@DylanDylann I don't like your solution. please check #24198 for more context. The accepted one is already pre-approved solution. |
@aimane-chnaif Many thanks |
@aimane-chnaif @marcochavezf Just my suggestion related to issue Web – DOB – Error appears when year is selected using keyboard but doesn’t trough mouse.:
|
@aimane-chnaif We may remove onKeyDownCapture entirely in #31433. |
@shubham1206agra So we will use |
No |
But if you have a compelling reason for useKeyboardShortcut, please tell |
Does |
@DylanDylann I see you raised discussion on slack. So if your approach is approved, maybe it can be created as new issue and refactor would go there. But out of scope for this issue. |
@aimane-chnaif Sure, thanks |
Thanks @aimane-chnaif for the review, I agree with @mkhutornyi's proposal and also agree we can consider it as a new issue given the regression period has expired in the other issue. Just we'd need to add some comments in the code changes about why this change is needed to avoid being removed for any circumstance in the future. |
📣 @aimane-chnaif 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkhutornyi 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.7-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-12-12. 🎊 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.
For reference, here are some details about the assignees on this 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:
|
Hi @aimane-chnaif, I think we're waiting here for the checklist to complete the payment, correct? |
|
Payouts due:Contributor: $500 @mkhutornyi (Upwork) |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.2-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
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
The green mark near the year is present.
The page closes with the data saved.
Actual Result:
There is no green check mark near the year.
The page closes, the new selected year is not saved.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6286963_1700650222106.Recording__6846.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: