-
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
[HOLD for payment 2024-01-17] [$500] [WAVE 5][LOW] Settings - Year change by months does not change selection #33006
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Job added to Upwork: https://www.upwork.com/jobs/~0102b1c7f6c3df6359 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalProblemYear change by months does not change selection Root CauseWhen we add a month (here) to selected date or move to previous (here) we only modify the currentDateView state and Changeswe need to change selected year in years state when year is added(move to next month) or subtracted(moveToprevMonth) /**
* Handles the user pressing the previous month arrow of the calendar picker.
*/
moveToPrevMonth() {
this.setState((prev) => {
const prevMonth = subMonths(new Date(prev.currentDateView), 1);
// if year is subtracted, we need to update the years list
let newYears = prev.years;
if (prevMonth.getFullYear() < prev.currentDateView.getFullYear()) {
newYears = _.map(prev.years, (item) => ({
...item,
isSelected: item.value === prevMonth.getFullYear(),
}));
}
return {
...prev,
currentDateView: prevMonth,
years: newYears,
};
});
}
/**
* Handles the user pressing the next month arrow of the calendar picker.
*/
moveToNextMonth() {
this.setState((prev) => {
const nextMonth = addMonths(new Date(prev.currentDateView), 1);
// if year is added, we need to update the years list
let newYears = prev.years;
if (nextMonth.getFullYear() > prev.currentDateView.getFullYear()) {
newYears = _.map(prev.years, (item) => ({
...item,
isSelected: item.value === nextMonth.getFullYear(),
}));
}
return {
...prev,
currentDateView: nextMonth,
years: newYears,
};
});
} |
ProposalPlease re-state the problem that we are trying to solve in this issue.Settings - Year change by months does not change selection What is the root cause of that problem?The main problem is that the selected year changes thanks only to What changes do you think we should make in order to solve the problem?Instead of duplicating the logic for changing the selected year, we can simply add a listener We can add new useEffect which will listen
What alternative solutions did you explore? (Optional)As alternative we can use
|
I can reproduce this - I think it's a low priority but I think it could be part of [ECARD] LOW: Settings - Remove unnecessary requirement for dateOfBirth when creating physical cards in Marqeta#316704 Adding it to that Wave to evaluate this change! |
@Christinadobrzyn i think we should treat this as normal priorty issue because the Calendar component is widely used in app, in bank account flow, money request and date of birth, and it looks like visual inconsistency which feels broken, user may encounter this in a normal flow of using app |
ProposalPlease re-state the problem that we are trying to solve in this issue.Settings - Year change by months does not change selection What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
ResultScreen.Recording.2023-12-14.at.11.30.35.mov |
Hi @ishpaul777 it looks like this job will be treated with our normal priority. @mollfpr feel free to evaluate the provided proposal to see if any will work. Thanks! |
FWIW this is unrelated |
@mollfpr, @Christinadobrzyn Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I feel the proposal from @ishpaul777 is the correct way to handle this issue. It makes it easier to maintain the prev/next month's function. 🎀 👀 🎀 C+ reviewed! |
Triggered auto assignment to @danieldoglas, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
still working on a review - @danieldoglas when you have a moment can you check on this decision - #33006 (comment) |
@Christinadobrzyn, I think we already let @ishpaul777 work on the issue. We need to wait for the PR to be ready. |
hi @mollfpr just checking on the PR review! |
@Christinadobrzyn Yup, working on it! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-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 2024-01-17. 🎊 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:
|
https://github.com/Expensify/App/pull/21792/files#r1457723732
The regression step should be enough.
@Christinadobrzyn Could you give the payment summary for the manual request in NewDot? Thank you! |
Just awaiting payment, not overdue. cc @Christinadobrzyn |
Sorry for the delay here Regression test here- https://github.com/Expensify/Expensify/issues/363007 Payouts due: Issue Reporter: NA Eligible for 50% #urgency bonus? NA Upwork job is here. The upwork job is now closed so let me know if you need payment through Upwork and I'll create a new job |
Thanks @Christinadobrzyn I'll request the payment in NewDot. |
$500 approved for @mollfpr based on summary above. |
awesome! I think we're good to close this. Thanks all! |
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.12-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:
Slack conversation: @
Action Performed:
Expected Result:
App should change background color as well as green tick position for the selected or current calendar year
Actual Result:
App changes background color but does not change green tick position on change of year value by changing months value in calendar
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6312056_1702491118045.windows_chrome_-_year_change_by_months_issue.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: