-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Due for payment 2025-02-18] [$500] In the full story user not redirected to #admins Room After Creating Workspace – Stuck in Concierge #55336
Comments
Triggered auto assignment to @muttmuure ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The user remains in the Concierge chat even after the workspace creation, requiring them to find and navigate to the #admins room manually. What is the root cause of that problem?We navigate to Concierge chat, or last accessed report after onboarding, and forcefully block navigate to workspace chats: App/src/libs/navigateAfterOnboarding.ts Lines 16 to 21 in 6f1541c
What changes do you think we should make in order to solve the problem?I think the main problem here is that However I still propose 2 solutions:
Navigate to
|
const navigateAfterOnboarding = (isSmallScreenWidth: boolean, canUseDefaultRooms: boolean | undefined, onboardingPolicyID?: string, activeWorkspaceID?: string) => { |
And when we find the last access report here, pass the above param to find the admin room:
App/src/libs/navigateAfterOnboarding.ts
Line 16 in 6f1541c
const lastAccessedReport = ReportUtils.findLastAccessedReport(!canUseDefaultRooms, shouldOpenOnAdminRoom(), activeWorkspaceID); |
shouldOpenAdminRoom ?? shouldOpenOnAdminRoom()
And pass shouldOpenAdminRoom
as true
in BaseOnboardingAccounting
:
navigateAfterOnboarding(isSmallScreenWidth, shouldUseNarrowLayout, canUseDefaultRooms, onboardingPolicyID, activeWorkspaceID, route.params?.backTo); |
Show #admins
room in LHN
Modify the shouldAdminRoomsBeVisible
here to include this condition:
Line 6673 in 5133090
function shouldAdminsRoomBeVisible(report: OnyxEntry<Report>): boolean { |
if (onboardingPurposeSelected === 'newDotManageTeam' && getActiveAdminWorkspaces(allPolicies, currentUserEmail).length === 1) {
return true;
}
So that if it was the only #admins
room and the onboarding choice was Manage my team's expenses
, we would show it.
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)
N/A
I can reproduce this issue. Should I take over this issue as C+ as mentioned here the correct steps:
Screen.Recording.2025-01-16.at.15.59.48.mov |
Job added to Upwork: https://www.upwork.com/jobs/~021880331139770557066 |
Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new. |
Upwork job price has been updated to $500 |
@DylanDylann please take this over as C+. I increased the amount to $500 because we need this done urgently. Please evaluate the proposals and have fix reviewed, tested, and out by Monday if you can. This is hitting all or at least a lot of our leads. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When user selects "Manage my team's expenses' in the onboarding flow, after completing the onboarding flow, user is not landing on the Admin room. What is the root cause of that problem?During testing, it seems that after onboarding is completed:
What changes do you think we should make in order to solve the problem?
if (!isSmallScreenWidth) {
if (onboardingAdminsChatReportID && onboardingPurposeSelected === CONST.ONBOARDING_CHOICES.MANAGE_TEAM) {
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(onboardingAdminsChatReportID));
}
return;
} 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)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.The user remains in the Concierge chat even after the workspace creation, requiring them to find and navigate to the #admins room manually. What is the root cause of that problem?We do not open admin room after completing onboarding on large screens: App/src/libs/navigateAfterOnboarding.ts Lines 12 to 14 in 6f1541c
and either is small screens: App/src/libs/navigateAfterOnboarding.ts Lines 18 to 20 in 6f1541c
What changes do you think we should make in order to solve the problem?I also think the main problem here is that the admin room is missing from LHN. On small screens, we currently just open the LHN; or the last access report that was previously deep-linked to. So if we want to explicitly open the admin rooms, we need to navigate it on both screen sizes.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Write the unit tests for
What alternative solutions did you explore? (Optional)NA |
Reviewing... |
Thanks, everyone. Let's go with @mkzie2 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@DylanDylann I think @mkzie2's proposal will cause a regression, on small screens, we shouldn’t open any chat (even adminRoom), the user should land in the inbox instead, Given this, I suggest selecting my proposal instead |
let me know what you think of ^^^ @DylanDylann - then I can review shortly! |
I already mentioned that in my review. But I think it is minor and we can modify it in the PR phase. On the other hand, @mkzie2 suggested adding a unit test for the onboarding flow, which I think is very valuable. What do you think if we hire both contributors on this issue and split the compensation? |
I don’t think the regression on small screens is minor . My proposal directly addresses the root cause and resolves it correctly. While adding unit tests is helpful, it’s a secondary improvement that can easily be implemented based on my proposed solution.(we can consider it in the PR phase) |
This is merged, not yet on staging |
Nice, I just tested on staging so it should get deployed later today. Thank you! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-6 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-02-18. 🎊 For reference, here are some details about the assignees on this issue:
|
@DylanDylann @muttmuure @DylanDylann 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] |
@dangrous @muttmuure @DylanDylann @mkzie2 this issue is now 4 weeks old, please consider:
Thanks! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Heading out on leave - adding auto-assigner |
Triggered auto assignment to @garrettmknight ( |
Payment summary:
|
Paid, closing |
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:
Reproducible in staging?: Needs reproduction
Reproducible in production?: Needs reproduction
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: @quinthar
Slack conversation (hyperlinked to channel name): convert
Action Performed:
Expected Result:
Once the workspace is created and the #admins room appears, the user should be automatically redirected to the #admins room for a smoother experience.
Actual Result:
The user remains in the Concierge chat even after the workspace creation, requiring them to find and navigate to the #admins room manually.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Link to Fullstory is in OP
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: