-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2025-01-30] [$250] The checkmark isn't displayed when back to access level page for copilot #52903
Comments
Triggered auto assignment to @anmurali ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The checkmark isn't displayed when back to access level page What is the root cause of that problem?Currently we are using the goBack function here to navigate when the user presses the back button
But before that route params in route were
What changes do you think we should make in order to solve the problem?We should set value to
What alternative solutions did you explore? (Optional)Or we can use |
ProposalPlease re-state the problem that we are trying to solve in this issue.The previously selected role isn't displayed as selected when navigating back to the Access Level page using the header back button from the Add Copilot page. What is the root cause of that problem?On the
However, when navigating back from the Add Copilot page using the header back button, the checkmark for the previously selected user isn’t displayed because the parameter isn’t passed in this case. On the other hand, if the "Access Level" item on the Add Copilot page is clicked, the pre-selection is displayed since the parameter is passed during navigation. What changes do you think we should make in order to solve the problem?Instead of relying solely on the route.params.role, we can manage the selection locally using useState. For example:
When generating On row selection (onSelectRow), update the local state ( What alternative solutions did you explore? (Optional)Replace Navigation.goBack() with explicit navigation that ensures the necessary parameters are passed. For example:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The checkmark isn't displayed on the previously selected role. What is the root cause of that problem?We show the selected icon only if the route params role equals the role itself.
But when we open the select role for the first time, the role is undefined. As mentioned by the others, when we press back, we actually call goBack with a fallback of the select role page with the selected role passed to the param.
But this just simply goes back, unless you refresh the page first. But the thing I want to focus on here is that I think we shouldn't show the selected icon in a new delegate flow (when we are going to select the role for the first time), just like when you select the delegate user, there is no selected icon. Because it's a single list selection, the selected icon feels like I'm editing the option. But the reason QA expects the selected icon is maybe because of the highlighted background of the role. It's because we pass
What changes do you think we should make in order to solve the problem?If we agree with what I explain above, then we can remove
And update the confirm role page to not pass the role when going back. App/src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx Lines 53 to 54 in 4c44827
|
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@anmurali Eep! 4 days overdue now. Issues have feelings too... |
@anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@anmurali 10 days overdue. I'm getting more depressed than Marvin. |
@anmurali this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@anmurali 12 days overdue. Walking. Toward. The. Light... |
This issue has not been updated in over 14 days. @anmurali eroding to Weekly issue. |
Job added to Upwork: https://www.upwork.com/jobs/~021869142030241454978 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 ( |
@eh2077 could you please look at the proposals when you get a chance? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @nkdengineer 🎉 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 9.0.88-7 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 2025-01-30. 🎊 For reference, here are some details about the assignees on this issue:
|
@eh2077 @anmurali @eh2077 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:NA Test:
Do we agree 👍 or 👎 |
@AndrewGable, @anmurali, @eh2077, @nkdengineer Eep! 4 days overdue now. Issues have feelings too... |
@AndrewGable, @anmurali, @eh2077, @nkdengineer Still overdue 6 days?! Let's take care of this! |
@AndrewGable, @anmurali, @eh2077, @nkdengineer 10 days overdue. Is anyone even seeing these? Hello? |
@anmurali Friendly bump! |
@AndrewGable, @anmurali, @eh2077, @nkdengineer 12 days overdue now... This issue's end is nigh! |
Contributor: @nkdengineer paid $250 via Upwork Test case created, thx It states above that @DylanDylann is due, it's an error, likely leftover from when we paid for reporting bugs. If I see it happen again I'll create an issue to fix. |
$250 approved for @eh2077 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.64-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @DylanDylann
Slack conversation (hyperlinked to channel name): ts_external_expensify_bugs
Action Performed:
Expected Result:
The checkmark should be displayed when back to access level page for the access level selected
Actual Result:
The checkmark isn't displayed when back to access level page , selected level is highlighted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
BUG-copilot.mov
Recording.774.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: