You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2022-01-19] When you click into a given page in a Workspace and then click back out, the page is still highlighted #7036
Since user is back to the main page, selected page should not be highlighted
Actual Result:
when you click into a given page in a Workspace and then click back out, the page you clicked into is still highlighted. It remains highlighted even as you over over other pages.
I can reproduce too 👍 This seems like a regression, I doubt it was always like this - I'll look around & ask around to see if I can figure out where it came from
Ok looks like this started way back here: #4382 - when the workspace pages were full screen. When we added lots more workspace pages & probably made the settings only partial-page here (#5642), we kept the active-page code. This can definitely be done externally, it would be nice if we could get a new contributor to work on this one since it looks easy
📣 @thesahindia You have been assigned to this job by @Beamanator!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.27-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
changed the title [-]When you click into a given page in a Workspace and then click back out, the page is still highlighted[/-][+][HOLD for payment 2022-01-19] When you click into a given page in a Workspace and then click back out, the page is still highlighted[/+]on Jan 12, 2022
Activity
MelvinBot commentedon Jan 5, 2022
Triggered auto assignment to @Beamanator (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.Beamanator commentedon Jan 5, 2022
I can reproduce too 👍 This seems like a regression, I doubt it was always like this - I'll look around & ask around to see if I can figure out where it came from
Beamanator commentedon Jan 5, 2022
Ok looks like this started way back here: #4382 - when the workspace pages were full screen. When we added lots more workspace pages & probably made the settings only partial-page here (#5642), we kept the active-page code. This can definitely be done externally, it would be nice if we could get a new contributor to work on this one since it looks easy
MelvinBot commentedon Jan 5, 2022
Triggered auto assignment to @trjExpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.thesahindia commentedon Jan 5, 2022
Proposal
removing the
isActiveproperty from menuItems will solve this issue.App/src/pages/workspace/WorkspaceInitialPage.js
Lines 79 to 128 in 580c9db
sobitneupane commentedon Jan 5, 2022
Proposal
Making following change to WorkspaceInitialPage.js will solve the issue.
<MenuItem key={item.translationKey} title={this.props.translate(item.translationKey)} icon={item.icon} iconRight={item.iconRight} onPress={() => item.action()} - wrapperStyle={shouldFocus ? styles.activeComponentBG : undefined} - focused={shouldFocus} shouldShowRightIcon />MelvinBot commentedon Jan 5, 2022
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
Exported)12 remaining items
rushatgabhane commentedon Jan 5, 2022
🎀👀🎀 C+ reviewed
@Beamanator I like @thesahindia's proposal.
Because there is no double side nav drawer for this view, we can't see the focused menu item anyway.
We can remove the focus entirely.
Beamanator commentedon Jan 5, 2022
I agree! Let's go with @thesahindia 👍
MelvinBot commentedon Jan 5, 2022
📣 @thesahindia You have been assigned to this job by @Beamanator!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
trjExpensify commentedon Jan 6, 2022
Hired on Upwork 👍
botify commentedon Jan 12, 2022
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.27-1 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 2022-01-19. 🎊
[-]When you click into a given page in a Workspace and then click back out, the page is still highlighted[/-][+][HOLD for payment 2022-01-19] When you click into a given page in a Workspace and then click back out, the page is still highlighted[/+]trjExpensify commentedon Jan 25, 2022
Settled up on Upwork, @thesahindia. Thank you!