Skip to content

[PAID] [$500] Keyboard focus is on the "close" button when uploading an attachment #43726

Closed

Description

@m-natarajan

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.83-0
Reproducible in staging?: y
Reproducible in production?: y
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: @quinthar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1718296177557209

Action Performed:

  1. Go to staging.new.expensify.com
  2. Open any report and add attachment
  3. Press "enter" key on keyboard

Expected Result:

Keyboard focus on "Send" button and image sent

Actual Result:

Keyboard focus on cancel button and pressing "enter" on keyboard cancels the upload

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
image (8)

Recording.211.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ab436ac7382c9793
  • Upwork Job ID: 1802770011901307524
  • Last Price Increase: 2024-07-08
  • Automatic offers:
    • rojiphil | Reviewer | 103095843
    • suneox | Contributor | 103095845
Issue OwnerCurrent Issue Owner: @CortneyOfstad

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 13, 2024
  2. melvin-bot commented on Jun 13, 2024

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (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.

  3. tsa321 commented on Jun 13, 2024

    @tsa321
    Contributor

    Cannot reproduce in production release.
    offending PR: #39520

  4. tsa321 commented on Jun 14, 2024

    @tsa321
    Contributor

    Proposal

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

    Keyboard focus is on the "close" button when uploading an attachment

    What is the root cause of that problem?

    We introduce focusTrap in #39520
    But in react-native-modal we already have focusTrap:

    https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Modal/ModalFocusTrap.js

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

    We can remove the new focusTrap and use react native web focusTrap in baseModal which is already there. So we only need to remove FocusTrapForModal:

    <FocusTrapForModal active={isVisible}>

    Another alternative solution is to include the attachment screen in:

    include the coresponding attachment modal screen in SCREENS_WITH_AUTOFOCUS.

    const SCREENS_WITH_AUTOFOCUS: string[] = [

  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jun 17, 2024
  6. changed the title [-]Keyboard focus is on the "close" button when uploading an attachment[/-] [+][$250] Keyboard focus is on the "close" button when uploading an attachment[/+] on Jun 17, 2024
  7. melvin-bot commented on Jun 17, 2024

    @melvin-bot
  8. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jun 17, 2024
  9. melvin-bot commented on Jun 17, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

  10. CortneyOfstad commented on Jun 17, 2024

    @CortneyOfstad
    Contributor

    I was able to recreate so going to get some eyes on this. @rojiphil we have a proposal here for review when you have a chance!

  11. 63 remaining items

  12. CortneyOfstad commented on Jul 31, 2024

    @CortneyOfstad
    Contributor

    @rojiphil / @suneox please complete the checklist as soon as you can so there is no delay in payment being issued! Thanks!

    @strepanier03 I am heading OoO so reassigning so there is no delay in issuing the payment tomorrow. Thank you!

  13. suneox commented on Aug 1, 2024

    @suneox
    Contributor

    @rojiphil Could you please complete the checklist since you’re the reviewer for this issue?

  14. strepanier03 commented on Aug 1, 2024

    @strepanier03
    Contributor

    I'll check tomorrow for the checklist. I'm heading out soon.

  15. rojiphil commented on Aug 3, 2024

    @rojiphil
    Contributor
    • [@rojiphil] The PR that introduced the bug has been identified. Link to the PR: Offending PR
    • [@rojiphil] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: Added comment
    • [@rojiphil] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: Not Required. Existing checklist is good enough to capture such issues.
    • [@rojiphil] Determine if we should create a regression test for this bug. : Since the changes in focusTrapForModal are generic and can impact other modals, it is better to have a regression test
    • [@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

    Test
    1 Copy image to clipboard
    2 Open any report
    3 Paste image to the composer input by hotkey (Ctrl+V)
    4 Press 'Enter' key to send the message
    5 Verify that the image is sent

  16. rojiphil commented on Aug 3, 2024

    @rojiphil
    Contributor

    @strepanier03 @CortneyOfstad
    Completed BZ checklist and accepted offer.
    Thanks and sorry for the delayed response.

  17. melvin-bot commented on Aug 5, 2024

    @melvin-bot

    @rojiphil, @strepanier03, @CortneyOfstad, @suneox, @grgia Eep! 4 days overdue now. Issues have feelings too...

  18. strepanier03 commented on Aug 5, 2024

    @strepanier03
    Contributor

    Both contracts are paid and closed in Upwork. Thank you all!

  19. changed the title [-][HOLD for payment 2024-08-01] [$500] Keyboard focus is on the "close" button when uploading an attachment[/-] [+][PAID] [$500] Keyboard focus is on the "close" button when uploading an attachment[/+] on Aug 5, 2024
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.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions