You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chat - #focus prompt does not appear when user create 30 reports #49944
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
👋 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:
Identify the pull request that introduced this issue and revert it.
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:
Activity
melvin-bot commentedon Sep 30, 2024
Triggered auto assignment to @thienlnam (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Sep 30, 2024
👋 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:
thienlnam commentedon Sep 30, 2024
Appears to be from #49735
thienlnam commentedon Sep 30, 2024
cc @MonilBhavsar
MonilBhavsar commentedon Sep 30, 2024
@lanitochka17 is this supposed to be blocker?
thienlnam commentedon Sep 30, 2024
Oh whoops, didn't catch that - yeah it would not be a blocker in that case
daledah commentedon 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?
nvp_tryFocusMode, sohasTriedFocusModeisundefined:App/src/libs/actions/PriorityMode.ts
Line 64 in 69483ff
hence the condition:
App/src/libs/actions/PriorityMode.ts
Line 80 in 69483ff
truesincehasTriedFocusModeis alwaysfalse.What changes do you think we should make in order to solve the problem?
trueorfalsefor thenvp_tryFocusMode.App/src/libs/actions/PriorityMode.ts
Line 80 in 69483ff
we just need to update the condition:
to:
What alternative solutions did you explore? (Optional)
MonilBhavsar commentedon Oct 2, 2024
I don't think we need frontend fix here. Returning the NVP always should fix the issue
MonilBhavsar commentedon Oct 8, 2024
PR was deployed