-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-04-28] [Better Expense Report View] Checkbox state is not reset after switching tabs #59833
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
Comments
Triggered auto assignment to @marcochavezf ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
this is behind beta |
ProposalPlease re-state the problem that we are trying to solve in this issue.Checkbox state is not reset after switching tabs What is the root cause of that problem?Here
What changes do you think we should make in order to solve the problem?we should add useFocusEffect(
useCallback(() => {
return () => {
setSelectedTransactionsID([]);
};
}, []),
); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. Results new-833.mp4 |
@allgandalf @DylanDylann do you want to review the proposal please? |
ProposalPlease re-state the problem that we are trying to solve in this issue.[Better Expense Report View] Checkbox state is not reset after switching tabs What is the root cause of that problem?On search > expenseReportPage useMoneyRequestReportContext hook is used to keep track of selections and hence selections does not clear after page reload/ tab change.
What changes do you think we should make in order to solve the problem?Generally app has tendency to clear the selection on any navigation with only one exception - app does not clear selection when user clicks a list item and item opens in RHP. For example.
|
const {selectedTransactionsID, setSelectedTransactionsID, toggleTransaction, isTransactionSelected} = useMoneyRequestReportContext(report.reportID); |
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
We could handle it externally maybe what do you think @allgandalf @jnowakow |
@jnowakow said:
So maybe he is seeing a core issue here with the new preview which i am not, so i will wait for him to comment before opening this up to the community |
yep gonna wait for confirmation |
Simple Solution from #59833 (comment) is almost good but doesn't work when navigating back using chevron: close.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.The checkbox state is not reset after switching tabs What is the root cause of that problem?The data is stored in the context, and we don't have the logic to clear the transaction when the page is blurred/unmounted
What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@jnowakow What do you think about my proposal? |
That would be a simple fix on top of my proposal. I will update my proposal shortly and would upload a resulting video. cc. @jnowakow |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@jnowakow You will solve this issue in somewhere, right? |
@ChavdaSachin your video shows search page instead of new report page. |
@DylanDylann there are several issues on this page and we're working on follow-ups so we will handle this. cc @mountiny |
@DylanDylann Still overdue 6 days?! Let's take care of this! |
@DylanDylann 10 days overdue. I'm getting more depressed than Marvin. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.30-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 2025-04-28. 🎊 For reference, here are some details about the assignees on this issue:
|
Good to close, no checklist here! |
Issue is ready for payment but no BZ is assigned. @zanyrenney you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
Payment Summary
BugZero Checklist (@zanyrenney)
|
@allgandalf - how come no checklist is required here? Is no payment due? |
This issue is part of better expense report project, so regression tests will be added later and yes, no payment due here as we'll be paid separately at the end of project |
Awesome, thanks for letting me know @allgandalf - closing this out given the comment above. |
Uh oh!
There was an error while loading. Please reload this page.
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: 9.1.24-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
The checkbox state will be reset after switching tabs
Actual Result:
The checkbox state is not reset after switching tabs
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
Bug6796031_1744118095456.20250408_210121.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @DylanDylannThe text was updated successfully, but these errors were encountered: