Skip to content

[$1500] Android - App does not refocus on compose box while coming back from task/description edit #27540

Closed

Description

@kbecciv

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


Action Performed:

  1. Open the app in android
  2. Open any task report or create new task report
  3. Focus on compose box
  4. Open description/title
  5. Click on back and observe that app does not focus back on compose box like it does on mWeb chrome

Expected Result:

App should focus back on compose box on coming back from task description/title edit like it does on mWeb chrome

Actual Result:

App does not focus back on compose box on coming back from task description/title edit

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.70.5
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
Notes/Photos/Videos: Any additional supporting documentation

android.app.-.no.focus.on.back.from.task.title.edit.mp4
Screen_Recording_20230915_111956_New.Expensify.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694688250098839

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f25ef107ce88bc3a
  • Upwork Job ID: 1702706135950974976
  • Last Price Increase: 2023-11-13

Activity

  1. added
    External
    Daily
    Bug
    on Sep 15, 2023
  2. changed the title [-]Android - App does not refocus on compose box while coming back from task/description edit[/-] [+][$500] Android - App does not refocus on compose box while coming back from task/description edit[/+] on Sep 15, 2023
  3. melvin-bot commented on Sep 15, 2023

    @melvin-bot
  4. melvin-bot commented on Sep 15, 2023

    @melvin-bot

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

  5. added
    Help Wanted
    on Sep 15, 2023
  6. melvin-bot commented on Sep 15, 2023

    @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
  7. melvin-bot commented on Sep 15, 2023

    @melvin-bot

    Triggered auto assignment to @NicMendonca (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. melvin-bot commented on Sep 15, 2023

    @melvin-bot

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

  9. 0xmiroslav commented on Sep 18, 2023

    @0xmiroslav
    Contributor

    No proposals yet

  10. 117 remaining items

  11. badeggg commented on Dec 3, 2023

    @badeggg
    Contributor

    Can someone internal explain the following code? I'm so confused.

    function inputFocusChange(focus: boolean) {
    Onyx.set(ONYXKEYS.INPUT_FOCUSED, focus);
    }
    let refSave: HTMLElement | undefined;
    function composerFocusKeepFocusOn(ref: HTMLElement, isFocused: boolean, modal: {willAlertModalBecomeVisible: boolean; isVisible: boolean}, onyxFocused: boolean) {
    if (isFocused && !onyxFocused) {
    inputFocusChange(true);
    ref.focus();
    }
    if (isFocused) {
    refSave = ref;
    }
    if (!isFocused && !onyxFocused && !modal.willAlertModalBecomeVisible && !modal.isVisible && refSave) {
    if (!ReportActionComposeFocusManager.isFocused()) {
    refSave.focus();
    } else {
    refSave = undefined;
    }
    }
    }

    • What state is ONYXKEYS.INPUT_FOCUSED keeping?
    • Why a focus state even need keeped in server?
    • This composerFocusKeepFocusOn function name also confused me?
  12. melvin-bot commented on Dec 4, 2023

    @melvin-bot

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

  13. NicMendonca commented on Dec 4, 2023

    @NicMendonca
    Contributor

    @0xmiroslav proposals for you here! ^^

  14. mvtglobally commented on Dec 8, 2023

    @mvtglobally

    Issue not reproducible during KI retests. (First week)

  15. melvin-bot commented on Dec 8, 2023

    @melvin-bot

    @NicMendonca, @thienlnam, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  16. 0xmiroslav commented on Dec 8, 2023

    @0xmiroslav
    Contributor

    @DylanDylann can you please share test branch?

  17. DylanDylann commented on Dec 8, 2023

    @DylanDylann
    Contributor

    @0xmiroslav I cannot reproduce this issue in the latest main

  18. thienlnam commented on Dec 8, 2023

    @thienlnam
    Contributor

    Closing as this appears to have been fixed elsewhere

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

Metadata

Metadata

Labels

BugDailyEngineeringExternalHelp Wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions