-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix - Tax backwards compatibility - After disable Tax in OD display an it's not here page in ND #59565
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
Fix - Tax backwards compatibility - After disable Tax in OD display an it's not here page in ND #59565
Conversation
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-05-08.at.10.54.03.movAndroid: mWeb ChromeScreen.Recording.2025-05-08.at.10.52.13.moviOS: NativeScreen.Recording.2025-05-08.at.10.47.18.moviOS: mWeb SafariScreen.Recording.2025-05-08.at.10.46.46.movMacOS: Chrome / SafariScreen.Recording.2025-05-08.at.10.28.29.movMacOS: DesktopScreen.Recording.2025-05-08.at.10.49.11.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify that you are navigated to more features page
I realized this when testing mWeb, since it's not clear with the wide screen layout, but we're navigating to the wrong page.
The expected result in #59076 states that the user should be navigated to The Workspace settings
, not to More Features
Screen.Recording.2025-04-16.at.09.26.32.mov
@eVoloshchak I followed @neil-marcellini suggestion here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug:
- Enable a workspace feature (for example,
Taxes
) - Go to that feature page
- Copy the URL
- Go back to
More Features
page, disable the feature - Paste the URL and navigate to it
- Notice the page is still displayed even though it is disabled
Screen.Recording.2025-04-18.at.21.55.35.mov
setIsPolicyFeatureEnabled(isFeatureEnabled); | ||
|
||
// When a workspace feature linked to the current page is disabled we will navigate to the More Features page. | ||
Navigation.isNavigationReady().then(() => Navigation.goBack(ROUTES.WORKSPACE_MORE_FEATURES.getRoute(policyID))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of using isNavigationReady
here? Is there a scenario when the navigation isn't ready yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes the scenario which caused the bug above on deep linking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are overcomplicating it @eVoloshchak because what we are trying to achieve in this pr is navigating away from pages linked to a non-existing feature so the flash is totally expected and this is not also a common use case by the way a user deeplinking to a disabled feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It still doesn't look right, previously it worked without any flashing (not found
page was shown right away). Could we implement it so that the not found
page would show initially until the navigation is ready?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eVoloshchak previously we used to show not found page now what we are implementing is navigating away to more features and the above behavior is acceptable. Moreover, showing not found page until the navigation is ready doesn't help at all because we can see the previous page for an extremely small amount of duration, I think we are overthinking here.
@neil-marcellini WDYT about this. In my opinion, direct linking to a disabled feature is by itself very unlikely and if it happens what we are implementing in this pr is to navigate away to the more features page so the flashing is expected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think that's acceptable. I don't even see it as much of a flash myself. Maybe there's a way it could be perfected, but let's not bother with it for such a rare edge case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
In that case, looks good to me, proceeding
@FitseTLT, could you resolve the conflicts please?
@eVoloshchak please lmk when you finish the PR reviewer checklist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
Fixed Issues
$ #59076
PROPOSAL: #59076 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
2025-04-02.22-03-20.mp4
Android: mWeb Chrome
2025-04-02.22-02-11.mp4
iOS: Native
2025-04-02.21-49-34.mp4
iOS: mWeb Safari
2025-04-02.21-46-39.mp4
MacOS: Chrome / Safari
2025-04-02.21-45-01.mp4
MacOS: Desktop
2025-04-02.21-45-53.mp4