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
[$500] Opens report instead of LHN on Native apps for new users when invited to a workspace #29207
changed the title [-]Opens report instead of LHN on Native apps for new users when invited to a workspace[/-][+][$500] Opens report instead of LHN on Native apps for new users when invited to a workspace[/+]on Oct 10, 2023
Because isSmallScreenWidth (suggested in your solution) comes from the useWindowDimensions hook which we cannot use within action files like @libs/actions/Welcome.ts.
@ikevin127 We can create a 3rd param in show function, named isSmallScreenWidth and then when calling show in BottomTabBar component, we can use useWindowDimensions to get the isSmallScreenWidth. I think it is very straightforward
These details are missing from your proposal, but sure - no problem if you're gonna do it like that.
I'll keep an eye on the PR and will make sure to ask for that split if my solution's implementation will be used ✌
Activity
[-]Opens report instead of LHN on Native apps for new users when invited to a workspace[/-][+][$500] Opens report instead of LHN on Native apps for new users when invited to a workspace[/+]melvin-bot commentedon Oct 10, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0174b94be9389d33ad
melvin-bot commentedon Oct 10, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (
External)deoidh commentedon Oct 12, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The onboarding process of a newly invited user - specificially to a workspace - is misaligned to the intended logic.
What is the root cause of that problem?
There is pre-coded logic to in Welcome.js to enforce this behaviour, it is not a result of a bug.
App/src/libs/actions/Welcome.js
Line 137 in ae9f83f
What changes do you think we should make in order to solve the problem?
The conditional parameter
shouldNavigateToWorkspaceChatand if statement to enforce the redirect should be redacted.App/src/libs/actions/Welcome.js
Lines 136 to 146 in ae9f83f
melvin-bot commentedon Oct 16, 2023
@0xmiroslav Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Oct 17, 2023
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Oct 18, 2023
@0xmiroslav Still overdue 6 days?! Let's take care of this!
0xmiroslav commentedon Oct 18, 2023
This is tagged as native only issue. If that's true, the root cause should explain why issue doesn't happen on mWeb.
Awaiting more proposals
deoidh commentedon Oct 18, 2023
It occurs on web also would you know, so what are the next steps? Eager to submit a PR and waiting on your words.
77 remaining items
iwiznia commentedon Mar 19, 2024
Why you say that? From a quick look seems like that is already implemented what I said above?
DylanDylann commentedon Mar 19, 2024
allPolicy.length === 1).allPolicy.length > 1)iwiznia commentedon Mar 19, 2024
Ohhhh 🤔 you are correct and I was wrong... in this flow we are already invited to a policy, so we don't need to show the welcome card.
DylanDylann commentedon Mar 19, 2024
@iwiznia Based on this C+ comment, my proposal will fix the original issue
ikevin127 commentedon Mar 19, 2024
Reverted proposal
Note
The other proposal is not using the correct methods for implementing the proposed solution.
I think a 50/50 split is fair if @DylanDylann will handle the issue using the correct logic mentioned in my proposal's solution.
cc @iwiznia
DylanDylann commentedon Mar 19, 2024
@ikevin127 Why did you say: "The other proposal is not using the correct methods for implementing the proposed solution."?
ikevin127 commentedon Mar 19, 2024
Because
isSmallScreenWidth(suggested in your solution) comes from theuseWindowDimensionshook which we cannot use within action files like@libs/actions/Welcome.ts.DylanDylann commentedon Mar 19, 2024
@ikevin127 We can create a 3rd param in
showfunction, namedisSmallScreenWidthand then when callingshowinBottomTabBarcomponent, we can useuseWindowDimensionsto get theisSmallScreenWidth. I think it is very straightforwardikevin127 commentedon Mar 19, 2024
These details are missing from your proposal, but sure - no problem if you're gonna do it like that.
I'll keep an eye on the PR and will make sure to ask for that split if my solution's implementation will be used ✌
dukenv0307 commentedon Mar 20, 2024
Based on this comment. proposal from @DylanDylann looks good to me cc @iwiznia
iwiznia commentedon Mar 20, 2024
I am confused, isn't that proposal making it so that we do not navigate to the report?
ikevin127 commentedon Mar 20, 2024
@iwiznia Yes it is, as per this issue's expected result.
To recap, the options here are either of the two:
If we want to keep option 2, then this issue can be closed.