-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Expense - Workspace under "To" field is highlighted after opening user avatar #36577
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01bd38066315528994 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Triggered auto assignment to @slafortune ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @dangrous ( |
We think that this bug might be related to #wave5-free-submitters |
I agree this should be changed, but I don't think it should be a blocker |
ProposalPlease re-state the problem that we are trying to solve in this issueThe workspace name option under "To" is highlighted after opening user avatar. What is the root cause of that problem?Offending PR is #35594 -> before this PR we were not able to click on the workspace details option as it was disabled. Here's what causes the option to be highlighted once user views avatar (opens modal):
App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 163 to 171 in 32648bb
this re-render / setState within the To be more specific about what exactly causes the re-render / setState (requested by reviewer #36577 (comment)):
VideoScreen.Recording.2024-02-20.at.19.10.59.movWhat changes do you think we should make in order to solve the problem?Considering the most recent reviewer's #36577 (comment):
the simplest thing to do here is to take advantage of the
within the Using VideosMacOS: Chrome / Safari
|
Not reproducible on main branch, we don't allow users to open workspace details. Monosnap.screencast.2024-02-15.21-15-25.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace option kept highlighted once we come back after opening the profile avatar What is the root cause of that problem?It seems the problem persists after this PR gets merged. App/src/pages/iou/request/step/IOURequestStepConfirmation.js Lines 99 to 106 in 50e07e8
App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 149 to 172 in 421bbc5
What changes do you think we should make in order to solve the problem?I believe it should be App/src/pages/settings/Profile/ProfileAvatar.tsx Lines 30 to 34 in 38c6c16
if (!ValidationUtils.isValidAccountRoute(Number(accountID)) || !!avatarURL) { |
Under review. |
I think the RCA in the above proposals are not accurate enough and need to be further clarified. Also, I'm still testing. 🤔 |
Hmm Kevin's updated proposal is essentially mine but with slight more specific detail on where to disable the pressable for the "To" field (didn't notice late night that the pressable already has support for disabling the hover if that pressable doesn't need it) |
Nope it's not 😅 I'm not disabling any Pressable nor changing any existing styles.
which also hinted at disabling the focus behaviour if possible. My solution is simply adding a prop (1-liner), exactly what was suggested for as possible solution since all my previous solutions were too complicated. Also your solution is pretty vague:
don't you think ? Besides suggesting changing the common BaseGenericPressable's styles which has nothing to do with the RCA of our issue 🙂 |
@ikevin127 ahh you're right. I see your proposal doesn't target what I believe is the fix haha. Good call, I personally think the issue is in the |
@dangrous, @ntdiary, @slafortune Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@ntdiary is there a proposal here that will do the trick or are we still waiting on a better one? |
@slafortune, so far, @ikevin127's proposal is a straightforward solution, but I'm still willing to wait a bit longer, There might be potentially better ideas. BTW, this issue is somewhat similar to issue #37238, so I will also discuss it there. :) |
@ntdiary i just updated my proposal. same root cause but I don't think my proposed solution was outlined enough for it to be considered. My change is similar to @ikevin127 but I think the |
This issue's root cause is related to Turns out the fix PR from #37238 selected proposal didn't work as expected and a regression was reported. I think regardless of the root cause of the other issue, my latest proposed solution still fixes our issue, since as you mentioned above:
To me, this looks like a straight-forward slam dunk 🏀 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
I just went on parental leave so I haven't been paying attention to this one haha - @slafortune do you think you could fish for an internal volunteer in Slack? I can help if needed! |
Updated proposal
To +1 on my previous #36577 (comment), this is a direct quote of @ neil-marcellini from #37238 (comment):
My take from that is that we should handle this issue here and treat it as separate from the other similar issue - which just merged the PR that will soon arrive on staging. I'm pretty sure our issue will still occur even after that issue's PR arrives on staging, since my proposal's RCA will still occur even though the other proposal's solution added an early return if previous - current sections are equal. cc @ntdiary |
@dangrous @ntdiary @slafortune this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@ntdiary are you able to recreate this still? |
I can reproduce it. And I'm still investigating further. :) |
@dangrous, @ntdiary, @slafortune Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue |
@ntdiary do you have an update? |
@slafortune, ok, so far, I think we can hold this issue for the |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@dangrous @ntdiary @slafortune this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
AH - Thanks for the details and linking that @ntdiary ! I think since this is a pretty edge case and OptionsSelector is deprecated we don't really need to hold we can simply close this. |
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: v1.4.42-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:
Action Performed:
Expected Result:
The workspace name under "To" will not be highlighted.
Actual Result:
The workspace name under "To" is highlighted.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6380638_1708001573958.bandicam_2024-02-15_15-38-43-819__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: