Skip to content

[HOLD for payment 2024-01-24] [$500] Share code/Get $250 - Copy referral link is not activated using the Tab button #32080

Description

@lanitochka17

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: 1.4.4-0
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 URL https://staging.new.expensify.com/
  2. Login with any account
  3. Go to Settings -> Share code -> Get $250
  4. Using the Tab button, move around the page

Expected Result:

Copy referral link activated using the Tab button

Actual Result:

Copy referral link is not activated using the Tab button

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

Bug6292462_1701126845299.bandicam_2023-11-27_22-08-12-783.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ee2e7fab6291ccf2
  • Upwork Job ID: 1731398508571623424
  • Last Price Increase: 2023-12-03
  • Automatic offers:
    • DylanDylann | Contributor | 27998178
Issue OwnerCurrent Issue Owner: @greg-schroeder

Activity

  1. github-actions commented on Nov 28, 2023

    @github-actions
    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.
  2. melvin-bot commented on Nov 28, 2023

    @melvin-bot

    Triggered auto assignment to @robertjchen (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  3. DylanDylann commented on Nov 28, 2023

    @DylanDylann
    Contributor

    Proposal

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

    • Share code/Get $250 - Copy referral link is not activated using the Tab button

    What is the root cause of that problem?

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

            <PressableView tabIndex={0}   ... />
    
    • Additionally, on this page, when the user presses ENTER, it will close the referral page. The RCA is that the "Got it" button has pressOnEnter: true
      <Button
      success
      style={[styles.w100]}
      text={translate('common.buttonConfirm')}
      onPress={() => Navigation.goBack(getFallbackRoute())}
      pressOnEnter
      enterKeyEventListenerPriority={1}
      />
    • So the solution is:
    • First, add the dataSet={{tag: 'pressable'}} to:

      It will become:
            <PressableView tabIndex={0} dataSet={{tag: 'pressable'}}   ... />
    
    • Then, what we need to do is just updating:
      const validateSubmitShortcut: ValidateSubmitShortcut = (isFocused, isDisabled, isLoading, event) => {
      const eventTarget = event?.target as HTMLElement;
      if (!isFocused || isDisabled || isLoading || eventTarget.nodeName === 'TEXTAREA') {
      return false;
      }
      event?.preventDefault();
      return true;
      };

      to:
    const validateSubmitShortcut: ValidateSubmitShortcut = (isFocused, isDisabled, isLoading, event, shouldSkipWhenFocusingOnPressable) => {
        const eventTarget = event?.target as HTMLElement;
    +  const focusedDataTag = lodashGet(event, ['target', 'attributes', 'data-tag', 'value']);
    +  if (focusedDataTag === 'pressable' && shouldSkipWhenFocusingOnPressable) {
    +      return;
    +  }
        if (!isFocused || isDisabled || isLoading || eventTarget.nodeName === 'TEXTAREA') {
            return false;
        }
    
        event?.preventDefault();
        return true;
    };
    • The shouldSkipWhenFocusingOnPressable is added to keep the backward compatibility
  4. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Nov 28, 2023
  5. mountiny commented on Nov 28, 2023

    @mountiny
    Contributor
  6. melvin-bot commented on Dec 1, 2023

    @melvin-bot

    @robertjchen Whoops! This issue is 2 days overdue. Let's get this updated quick!

  7. DylanDylann commented on Dec 3, 2023

    @DylanDylann
    Contributor

    @robertjchen I just pdated my proposal

  8. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Dec 3, 2023
  9. 36 remaining items

  10. melvin-bot commented on Jan 4, 2024

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  11. robertjchen commented on Jan 4, 2024

    @robertjchen
    Contributor

    @greg-schroeder Could you please assist with the next steps here now that the PR has been merged and deployed? Thanks!

  12. melvin-bot commented on Jan 16, 2024

    @melvin-bot

    @robertjchen, @narefyev91, @greg-schroeder, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick!

  13. melvin-bot commented on Jan 18, 2024

    @melvin-bot

    @robertjchen, @narefyev91, @greg-schroeder, @DylanDylann Huh... This is 4 days overdue. Who can take care of this?

  14. robertjchen commented on Jan 19, 2024

    @robertjchen
    Contributor

    bump @greg-schroeder 🙏

  15. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    on Jan 24, 2024
  16. changed the title [-][$500] Share code/Get $250 - Copy referral link is not activated using the Tab button[/-] [+][HOLD for payment 2024-01-24] [$500] Share code/Get $250 - Copy referral link is not activated using the Tab button[/+] on Jan 24, 2024
  17. greg-schroeder commented on Jan 24, 2024

    @greg-schroeder
    Contributor

    Okay looks like this is ready to pay

  18. greg-schroeder commented on Jan 24, 2024

    @greg-schroeder
    Contributor

    C: @DylanDylann
    C+: @narefyev91

    both $500

  19. greg-schroeder commented on Jan 24, 2024

    @greg-schroeder
    Contributor

    The upwork job closed for inactivity so I have to create a new one

  20. greg-schroeder commented on Jan 24, 2024

    @greg-schroeder
    Contributor

    offer sent @DylanDylann - also I forgot @narefyev91 you're CS, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions