-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-22] [$250] Tax backwards compatibility - After disable Tax in OD display an it's not here page in ND #59076
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 @zanyrenney ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When opening a page that has a disabled feature, an "it's not here" error is displayed What is the root cause of that problem?When a feature is disabled, we display the "it's not here" page
App/src/pages/workspace/AccessOrNotFoundWrapper.tsx Lines 173 to 183 in 869cd0f
What changes do you think we should make in order to solve the problem?Instead, we can navigate to the if (!isFeatureEnabled) {
Navigation.navigate(ROUTES.WORKSPACE_OVERVIEW.getRoute(policyID));
return null;
} We intentionally don't wrap the navigate call in 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)If we still want to use useEffect(() => {
if (!isFeatureEnabled) {
Navigation.navigate(ROUTES.WORKSPACE_OVERVIEW.getRoute(policyID));
}
}, [isFeatureEnabled, policyID]);
if (!isFeatureEnabled) {
return null;
} Note For C+: The proposal below says I'm copying it, but in reality, it pretty much took my main solution and wrapped it in a useEffect. Then I added an explanation of why that is not a good idea and suggested a better way (alternative solution). |
🚨 Edited by proposal-police: This proposal was edited at 2025-03-25 16:25:42 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Tax backwards compatibility - After disable Tax in OD display an it's not here page in ND What is the root cause of that problem?WE use AccessOrNotFoundWrapper that will show not found page if the feature is not enabled
What changes do you think we should make in order to solve the problem?We should add an effect that will re-navigate the user to the workspace settings page(or any other page decided by the design team) either in AccessOrNotFoundWrapper for general fix or
or update this App/src/pages/workspace/AccessOrNotFoundWrapper.tsx Lines 154 to 159 in b7f3f5b
If we start to navigate away on feature disable for all features we will not need the Note For C+: please check the timestamps of the edit because the above proposal is copying mine after I posted. Thx. 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) |
ProposalPlease re-state the problem that we are trying to solve in this issue.The app shows full screen not found when the tax is disabled. It's not limited to tax, but to all features. What is the root cause of that problem?The tax (or other features) page is wrapped with AccessOrNotFoundWrapper, and if the feature is disabled, we show the full screen not found. App/src/pages/workspace/AccessOrNotFoundWrapper.tsx Lines 87 to 91 in ca1f4ff
What changes do you think we should make in order to solve the problem?I think it's better to show a non-fullscreen not found when a feature is disabled. This way, the user knows that the feature is not available and can switch to another tab from the workspace LHN.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
Job added to Upwork: https://www.upwork.com/jobs/~021904956556885752483 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
We already have a proposal here @eVoloshchak - please could you review it? Thank you! |
This is an awesome idea for web and desktop, but with narrow screen layout (mobile phones, narrow browser window), this would still show a full screen not found view @CyberAndrii's proposal @FitseTLT's proposal uses identical approach, but the important part here is
We should apply this fix only to |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I agree. Also, instead of navigating to the workspace overview page, how about we navigate to the "More features" page so the user can likely see that the feature was disabled? |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This issue has not been updated in over 15 days. @eVoloshchak, @neil-marcellini, @FitseTLT, @zanyrenney eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 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-05-22. 🎊 For reference, here are some details about the assignees on this issue:
|
@eVoloshchak @zanyrenney @eVoloshchak 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] |
I have sent @eVoloshchak a DM asking him to complete the checklist since we cannot move ahead with the payment that is due today until it is complete. Thank you! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
payment summary@eVoloshchak requires payment through NewDot Manual Requests - please request 250USD on ND. |
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.18-2
Reproducible in staging?: Y
Reproducible in production?: Y
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: https://expensify.testrail.io/index.php?/cases/view/2990335
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The Workspace settings should display
Actual Result:
After toggling off the Tax in the OldDot, an it's not here page displays in NewDot
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6781614_1742913389913.Tax_disable.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @zanyrenneyThe text was updated successfully, but these errors were encountered: