Skip to content
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

Profile - Tapping on "Account name", shows interaction, but no redirection #48253

Closed
2 of 6 tasks
IuliiaHerets opened this issue Aug 29, 2024 · 18 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.0.26-1
Reproducible in staging?: Y
Reproducible in production?: N
Issue was found when executing this PR: #47338
Email or phone of affected tester (no customers): applausetester+en@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Pre: User does NOT have copilot enabled

  1. Access staging.new.expensify.com
  2. Sign into a valid account
  3. Go to Profile > Click on users name at the top

Expected Result:

User expects that if this is not a feature, then no interaction should happen

Actual Result:

The name is clickable (And blinks when clicked) and no redirect happens, when user has copilot enabled, the user can see a dropdown menu here

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6586051_1724900025751.No_account_to_switch_to_.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Aug 29, 2024
Copy link

melvin-bot bot commented Aug 29, 2024

Triggered auto assignment to @OfstadC (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Aug 29, 2024

Triggered auto assignment to @danieldoglas (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 29, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 29, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@Nodebrute
Copy link
Contributor

Nodebrute commented Aug 29, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Tapping on "Account name", shows interaction, but no redirection

What is the root cause of that problem?

By default we have a pressDimmingValue of 0.8 which is getting applied here

<PressableWithFeedback
accessible
accessibilityLabel={translate('common.profile')}
onPress={() => {
setShouldShowDelegatorMenu(!shouldShowDelegatorMenu);
}}
ref={buttonRef}
interactive={canSwitchAccounts}
wrapperStyle={[styles.flexGrow1, styles.flex1, styles.mnw0, styles.justifyContentCenter]}
>

What changes do you think we should make in order to solve the problem?

We should pass a prop here pressDimmingValue and pass the value!canSwitchAccounts ? 1 : undefined

<PressableWithFeedback
accessible
accessibilityLabel={translate('common.profile')}
onPress={() => {
setShouldShowDelegatorMenu(!shouldShowDelegatorMenu);
}}
ref={buttonRef}
interactive={canSwitchAccounts}
wrapperStyle={[styles.flexGrow1, styles.flex1, styles.mnw0, styles.justifyContentCenter]}
>

Instead of undefined we can also pass 0.8 here

What alternative solutions did you explore? (Optional)

we can also use !shouldShowDelegatorMenu here

@daledah
Copy link
Contributor

daledah commented Aug 29, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

The name is clickable (And blinks when clicked) and no redirect happens, when user has copilot enabled, the user can see a dropdown menu here

What is the root cause of that problem?

Currently, we are using the PressableWithFeedback component to wrap the entire Switcher. Inside PressableWithFeedback, we have the OpacityView component which shows interaction even when the interactive prop is set to false.

What changes do you think we should make in order to solve the problem?

Update shouldDim here

shouldDim={!!(!rest.disabled && (isPressed || isHovered))}

    shouldDim={!!(!rest.disabled && (isPressed || isHovered) && rest.interactive)}

What alternative solutions did you explore? (Optional)

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 29, 2024

not a blocker. please assign me

this is under copilot project

@rushatgabhane
Copy link
Member

cc @parasharrajat looks like we can't get rid of pressDimmingValue

@puneetlath puneetlath added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 29, 2024
@puneetlath
Copy link
Contributor

demoting since copilot is in beta

@parasharrajat
Copy link
Member

@rushatgabhane Maybe control the dimmingValue

@dangrous
Copy link
Contributor

yeah i think just updating the dimming should satisfy this

@melvin-bot melvin-bot bot added the Overdue label Sep 2, 2024
@danieldoglas
Copy link
Contributor

@rushatgabhane how's this one going?

@melvin-bot melvin-bot bot removed the Overdue label Sep 2, 2024
@rushatgabhane rushatgabhane mentioned this issue Sep 4, 2024
50 tasks
@melvin-bot melvin-bot bot added the Overdue label Sep 5, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

@danieldoglas, @OfstadC, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@danieldoglas
Copy link
Contributor

@rushatgabhane bump!

@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2024
@rushatgabhane
Copy link
Member

fixed in draft PR above ^

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 8, 2024
@OfstadC
Copy link
Contributor

OfstadC commented Sep 23, 2024

Looks like this was deployed to production. So payment should be issued on 2024-09-26

@rushatgabhane
Copy link
Member

@OfstadC this is part of copilot project. no payment due

@OfstadC
Copy link
Contributor

OfstadC commented Sep 26, 2024

Perfect! Thanks for confirming @rushatgabhane !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants