Skip to content

Chat - #focus prompt does not appear when user create 30 reports #49944

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: 9.0.41-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with new account
  3. Create over 30 reports by creating multiple workspaces or DMs
  4. Sign out
  5. Log in with te same user

Expected Result:

The #focus prompt should be displayed when user has 30 reports

Actual Result:

The prompt is not displayed, neither when creating 30 reports nor when logging in to an account that has 30 reports

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

Bug6620304_1727709449354.Record_2024-09-27-23-41-23.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    DeployBlockerIndicates it should block deploying the API
    on Sep 30, 2024
  2. melvin-bot commented on Sep 30, 2024

    @melvin-bot

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

  3. github-actions commented on Sep 30, 2024

    @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.
  4. thienlnam commented on Sep 30, 2024

    @thienlnam
    Contributor

    Appears to be from #49735

  5. thienlnam commented on Sep 30, 2024

    @thienlnam
    Contributor
  6. MonilBhavsar commented on Sep 30, 2024

    @MonilBhavsar
    Contributor

    Reproducible in staging?: Y
    Reproducible in production?: Y

    @lanitochka17 is this supposed to be blocker?

  7. thienlnam commented on Sep 30, 2024

    @thienlnam
    Contributor

    Oh whoops, didn't catch that - yeah it would not be a blocker in that case

  8. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Sep 30, 2024
  9. removed their assignment
    on Sep 30, 2024
  10. daledah commented on Oct 1, 2024

    @daledah
    Contributor

    Proposal

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

    The prompt is not displayed, neither when creating 30 reports nor when logging in to an account that has 30 reports

    What is the root cause of that problem?

    • When user create more than 30 reports and if they have not tried focus mode yet, BE does not return the nvp_tryFocusMode, so hasTriedFocusMode is undefined:

    hasTriedFocusMode = val;

    hence the condition:

    if (ReportConnection.getAllReports() === undefined || hasTriedFocusMode === undefined || isInFocusMode === undefined || isLoadingReportData) {
    is always true since hasTriedFocusMode is always false.

    • As a result, there is no focus promp is triggered.

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

    • I think BE should return exactly value true or false for the nvp_tryFocusMode.
    • Then in:

    if (ReportConnection.getAllReports() === undefined || hasTriedFocusMode === undefined || isInFocusMode === undefined || isLoadingReportData) {

    we just need to update the condition:

    hasTriedFocusMode === undefined
    

    to:

    !isBoolean(hasTriedFocusMode)
    

    What alternative solutions did you explore? (Optional)

  11. MonilBhavsar commented on Oct 2, 2024

    @MonilBhavsar
    Contributor

    I don't think we need frontend fix here. Returning the NVP always should fix the issue

  12. MonilBhavsar commented on Oct 8, 2024

    @MonilBhavsar
    Contributor

    PR was deployed

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions