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

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

Closed
4 of 6 tasks
lanitochka17 opened this issue Sep 30, 2024 · 9 comments
Closed
4 of 6 tasks

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

lanitochka17 opened this issue Sep 30, 2024 · 9 comments
Assignees
Labels
Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 30, 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: 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

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Sep 30, 2024
Copy link

melvin-bot bot commented Sep 30, 2024

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

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.

@thienlnam
Copy link
Contributor

Appears to be from #49735

@thienlnam
Copy link
Contributor

cc @MonilBhavsar

@thienlnam thienlnam removed the DeployBlocker Indicates it should block deploying the API label Sep 30, 2024
@MonilBhavsar
Copy link
Contributor

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

@lanitochka17 is this supposed to be blocker?

@thienlnam
Copy link
Contributor

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

@thienlnam thienlnam added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Sep 30, 2024
@thienlnam thienlnam removed their assignment Sep 30, 2024
@daledah
Copy link
Contributor

daledah commented Oct 1, 2024

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)

@MonilBhavsar MonilBhavsar added the Reviewing Has a PR in review label Oct 2, 2024
@MonilBhavsar
Copy link
Contributor

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

@MonilBhavsar
Copy link
Contributor

PR was deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

4 participants