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

[HOLD for payment 2024-03-05] [$250] [MEDIUM] Bank account - Green box for completed part is clickable but nothing happens when clicking on it #36506

Closed
6 tasks done
kbecciv opened this issue Feb 14, 2024 · 29 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Feb 14, 2024

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: v1.4.41-2
Reproducible in staging?: y
Reproducible in production?: n
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: Applause - Internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > any workspace > Bank account.
  3. Click Connect manually.
  4. Finish Bank info and proceed to Personal info.
  5. Click on the green box with checkmark.

Expected Result:

Since the green box is clickable (with hand cursor), clicking on it should navigate to the first section.

Actual Result:

The green box is clickable, but nothing happens when clicking on it.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6379352_1707915973512.bandicam_2024-02-14_14-18-52-879.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d715a5163129c0d4
  • Upwork Job ID: 1757783603020046336
  • Last Price Increase: 2024-02-14
  • Automatic offers:
    • akinwale | Reviewer | 0
    • paultsimura | Contributor | 0
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Feb 14, 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.

Copy link

melvin-bot bot commented Feb 14, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Feb 14, 2024

We think that this bug might be related #wave5-free-submitters
CC @dylanexpensify

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 14, 2024
@mountiny mountiny assigned mountiny and akinwale and unassigned tgolen Feb 14, 2024
@mountiny
Copy link
Contributor

Minor styling issue, not a blocker.

The buttons are disabled to click on them so we should update the cursor to not suggest they are clickable

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Feb 14, 2024
@melvin-bot melvin-bot bot changed the title Bank account - Green box for completed part is clickable but nothing happens when clicking on it [$500] Bank account - Green box for completed part is clickable but nothing happens when clicking on it Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d715a5163129c0d4

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Current assignee @akinwale is eligible for the External assigner, not assigning anyone new.

@mountiny mountiny changed the title [$500] Bank account - Green box for completed part is clickable but nothing happens when clicking on it [$250] Bank account - Green box for completed part is clickable but nothing happens when clicking on it Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Upwork job price has been updated to $250

@paultsimura
Copy link
Contributor

paultsimura commented Feb 14, 2024

@mountiny based on this code, are we confident it shouldn't be clickable?

const moveToStep = () => {
if (isLockedStep || !onStepSelected) {
return;
}
setCurrentStep(index);
onStepSelected(stepNames[index]);
};

Or is it non-clickable just for the BA flow?

@mountiny
Copy link
Contributor

@paultsimura yep there are cases when we want to lock the steps https://github.com/Expensify/App/pull/36472/files#diff-50cbf33e1a4add301c4c85b2d37735fa79094c511c6fc0fe0003940870ec4a1dR81

@paultsimura
Copy link
Contributor

paultsimura commented Feb 14, 2024

Proposal

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

The cursor on steps is "pointer" even if they are not clickable. After https://github.com/Expensify/App/pull/36472/files#diff-50cbf33e1a4add301c4c85b2d37735fa79094c511c6fc0fe0003940870ec4a1dR81, the cursor will always be "disabled" instead of the "pointer".

What is the root cause of that problem?

The steps are pressable, but they shouldn't be if there's no onStepSelected passed as discussed in #36506 (comment).

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

Use !onStepSelected && styles.cursorDefault, to not modify the cursor at all and use the default one if the steps are not meant to be clickable:

style={[
styles.interactiveStepHeaderStepButton,
isLockedStep && styles.interactiveStepHeaderLockedStepButton,
isCompletedStep && styles.interactiveStepHeaderCompletedStepButton,
]}

What alternative solutions did you explore? (Optional)

@FitseTLT
Copy link
Contributor

Proposal

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

Bank account - Green box for completed part is clickable but nothing happens when clicking on it

What is the root cause of that problem?

We are allowing the cursor pointer for index less than current index

const isLockedStep = currentStep < index;
const isLockedLine = currentStep < index + 1;

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

We should change to the same condition here

if (isLockedStep || !onStepSelected) {
return;

disabled={isLockedStep}
onPress={moveToStep}

                            disabled={isLockedStep || !onStepSelected}

What alternative solutions did you explore? (Optional)

@Krishna2323
Copy link
Contributor

Krishna2323 commented Feb 14, 2024

Proposal

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

Bank account - Green box for completed part is clickable but nothing happens when clicking on it

What is the root cause of that problem?

As mentioned above, there are cases when we disabled the boxes in InteractiveStepSubHeader and we also have style for that interactiveStepHeaderLockedStepButton

const moveToStep = () => {
if (isLockedStep || !onStepSelected) {
return;
}
setCurrentStep(index);
onStepSelected(stepNames[index]);
};

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

We just need to add more styles in interactiveStepHeaderLockedStepButton , as suggested by design team. We can changes styles of cursor and decrease the opacity as well.

Need to update styles here:

interactiveStepHeaderLockedStepButton: {

Result

@akinwale
Copy link
Contributor

After reviewing, we can move forward with @FitseTLT's proposal, since it was the first to arrive at the correct solution based on the observe timestamps.

@paultsimura In the future, please follow the guidelines by creating an Updated proposal post after making edits to your proposal.

🎀👀🎀 C+ reviewed.

Copy link

melvin-bot bot commented Feb 15, 2024

Triggered auto assignment to @nkuoch, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@paultsimura
Copy link
Contributor

paultsimura commented Feb 15, 2024

@akinwale with all due respect, please note the following:

  1. The solution by @FitseTLT is already in main – that's what @mountiny referred in the linked PR, and I mentioned it in my proposal – so if you choose that proposal, we will just do nothing here. But as I mentioned in my proposal, with this approach, the cursor will always show "forbidden" and it's not the best UX:

After https://github.com/Expensify/App/pull/36472/files#diff-50cbf33e1a4add301c4c85b2d37735fa79094c511c6fc0fe0003940870ec4a1dR81, the cursor will always be "disabled" instead of the "pointer".

Code in main:

disabled={isLockedStep || !onStepSelected}

  1. My changes (after other proposals were posted) were mostly cosmetic/formatting – I do post the Updated Proposal if I change some useful content in the proposal and there are others. IMO, here it was not needed. Especially because all other proposals suggest different solutions.

I still think there isn't a better proposal than mine, and I'll just repost it so you can re-check ignoring the editing timestamps.

@paultsimura
Copy link
Contributor

paultsimura commented Feb 15, 2024

Proposal

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

The cursor on steps is "forbidden" even if they are not clickable by design.

What is the root cause of that problem?

The steps are pressable but disabled, which results in the "forbidden" cursor being displayed. They shouldn't be treated as pressable at all if there's no onStepSelected passed as discussed in #36506 (comment).

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

Use !onStepSelected && styles.cursorDefault, to not modify the cursor at all and use the default one if the steps are not meant to be clickable:

style={[
    styles.interactiveStepHeaderStepButton,
    isLockedStep && styles.interactiveStepHeaderLockedStepButton,
    isCompletedStep && styles.interactiveStepHeaderCompletedStepButton,
+   !onStepSelected && styles.cursorDefault,
]}

style={[
styles.interactiveStepHeaderStepButton,
isLockedStep && styles.interactiveStepHeaderLockedStepButton,
isCompletedStep && styles.interactiveStepHeaderCompletedStepButton,
]}

What alternative solutions did you explore? (Optional)

@akinwale
Copy link
Contributor

@paultsimura Thanks for the clarification. Could you update your proposal with what the updated style code would look like?

@FitseTLT
Copy link
Contributor

By the way the code change in main was made after my proposal so in my opinion we ain't need any change as if we don't have nothing to do on pressing (early returning with that condition) we should make it disabled with same condition

@paultsimura
Copy link
Contributor

@paultsimura Thanks for the clarification. Could you update your proposal with what the updated style code would look like?

Updated #36506 (comment)

Also, here are the before/after screenshots:

Alt text Alt text

@akinwale
Copy link
Contributor

After a second review, since the only change required for this issue is the cursor style update, we can move forward with @paultsimura's proposal.

cc @nkuoch

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 15, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Feb 15, 2024

📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer 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 📖

@mountiny
Copy link
Contributor

@paultsimura can you raise a PR please?

@paultsimura
Copy link
Contributor

@paultsimura can you raise a PR please?

Sure, on it now

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 15, 2024
@paultsimura
Copy link
Contributor

Thanks. The PR is ready for review: #36573

@greg-schroeder greg-schroeder changed the title [$250] Bank account - Green box for completed part is clickable but nothing happens when clicking on it [$250] [MEDIUM] Bank account - Green box for completed part is clickable but nothing happens when clicking on it Feb 15, 2024
@paultsimura
Copy link
Contributor

Deployed to prod: #36573 (comment)

@mountiny mountiny added Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. labels Mar 4, 2024
@mountiny
Copy link
Contributor

mountiny commented Mar 4, 2024

Payment for @akinwale will be handled here #22901 (comment)

Copy link

melvin-bot bot commented Mar 4, 2024

Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 4, 2024
@mountiny mountiny changed the title [$250] [MEDIUM] Bank account - Green box for completed part is clickable but nothing happens when clicking on it [HOLD for payment 2024-03-05] [$250] [MEDIUM] Bank account - Green box for completed part is clickable but nothing happens when clicking on it Mar 4, 2024
@bfitzexpensify
Copy link
Contributor

Payment for @paultsimura complete, closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
No open projects
Development

No branches or pull requests

9 participants