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
[Due for payment 2025-05-20] [$250] Onboarding - Onboarding tasks in #admins room are grayed out in offline mode #60833
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
Version Number: 9.1.32-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):jsdijsojdsosjo@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Log in with a new Gmail account
Click Skip on Work email step
Select Manage my team's expenses
Select 1-10 employees
Select any accounting > Continue
Go to #admins
Send a message
Wait for a while
Go offline
Expected Result:
All the content in #admins room will not be grayed out in offline mode
Actual Result:
Onboarding tasks in #admins room are grayed out in offline mode
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6811727_1745505083449.20250424_222353.mp4
🚨 Edited by proposal-police: This proposal was edited at 2025-04-24 14:59:33 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding tasks in #admins room are grayed out in offline mode
What is the root cause of that problem?
We don't update isOptimisticAction to false in successData for onboarding task action then the pendingAction is add here which causes the task action still be grayed out even when the API is done.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Test completeOnboarding API and verify isOptimisticAction is updated to false after the API is success
What alternative solutions did you explore? (Optional)
We can remove action.isOptimisticAction ? CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD here since if the action has no pendingAction it means it's not an optimistic action anymore and shouldn't have offline feedback in this case.
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]Onboarding - Onboarding tasks in #admins room are grayed out in offline mode[/-][+][$250] Onboarding - Onboarding tasks in #admins room are grayed out in offline mode[/+]on Apr 25, 2025
@Krishna2323 's proposal looks good to me. I agree that onboarding company size message and the welcomeSignOffTitleManageTeam should also not be greyed out when offline, along with the tasks.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.44-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jayeshmangwani@dylanexpensify@jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Log in with a new account.
Click Skip on the Work email step.
Select Manage my team’s expenses.
Choose 1–10 employees.
Select any accounting option, then click Continue.
Go to #admins.
Send a message.
Wait for a while.
Go offline.
Verify that the message starting with Here is a task list I’d recommend for a company of your size is not greyed out.
Verify that the tasks are not greyed out.
Verify that the message starting with We can explore more features such as is not greyed out.
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
Activity
melvin-bot commentedon Apr 24, 2025
Triggered auto assignment to @dylanexpensify (
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.nkdengineer commentedon Apr 24, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-04-24 14:59:33 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding tasks in #admins room are grayed out in offline mode
What is the root cause of that problem?
We don't update
isOptimisticActiontofalseinsuccessDatafor onboarding task action then thependingActionisaddhere which causes the task action still be grayed out even when the API is done.App/src/pages/home/report/PureReportActionItem.tsx
Lines 1401 to 1403 in 455570f
What changes do you think we should make in order to solve the problem?
We should update
isOptimisticActiontofalsefor task success data here. We can do the same for failure data if need.App/src/libs/ReportUtils.ts
Line 9855 in d4e51d1
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Test completeOnboarding API and verify
isOptimisticActionis updated tofalseafter the API is successWhat alternative solutions did you explore? (Optional)
We can remove
action.isOptimisticAction ? CONST.RED_BRICK_ROAD_PENDING_ACTION.ADDhere since if the action has nopendingActionit means it's not an optimistic action anymore and shouldn't have offline feedback in this case.App/src/pages/home/report/PureReportActionItem.tsx
Lines 1401 to 1403 in 455570f
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Krishna2323 commentedon Apr 24, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding - Onboarding tasks in #admins room are grayed out in offline mode
What is the root cause of that problem?
isOptimisticActionfortasks,textCommentandwelcomeSignOffCommentActionis not set to null in the success data.App/src/libs/ReportUtils.ts
Lines 9709 to 9718 in 19dbb47
App/src/libs/ReportUtils.ts
Lines 9672 to 9673 in 19dbb47
App/src/libs/ReportUtils.ts
Lines 9745 to 9746 in 19dbb47
What changes do you think we should make in order to solve the problem?
isOptimisticAction: nullin the following places:App/src/libs/ReportUtils.ts
Line 9862 in 19dbb47
App/src/libs/ReportUtils.ts
Line 9888 in 19dbb47
App/src/libs/ReportUtils.ts
Line 9898 in 19dbb47
App/src/libs/ReportUtils.ts
Line 9956 in 19dbb47
App/src/libs/ReportUtils.ts
Lines 10120 to 10121 in 19dbb47
App/src/libs/ReportUtils.ts
Line 10144 in 19dbb47
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test the
completeOnboardingapi and verify that the message are not greyed out on api successWhat alternative solutions did you explore? (Optional)
N/A
Result
[-]Onboarding - Onboarding tasks in #admins room are grayed out in offline mode[/-][+][$250] Onboarding - Onboarding tasks in #admins room are grayed out in offline mode[/+]melvin-bot commentedon Apr 25, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021915751970400646068
melvin-bot commentedon Apr 25, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (
External)Krishna2323 commentedon Apr 25, 2025
PROPOSAL UPDATED
isOptimisticAction: nulland fixed a typo.jayeshmangwani commentedon Apr 28, 2025
@Krishna2323 's proposal looks good to me. I agree that onboarding company size message and the welcomeSignOffTitleManageTeam should also not be greyed out when offline, along with the tasks.
🎀 👀 🎀 C+ reviewed
14 remaining items
melvin-bot commentedon May 13, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.44-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-05-20. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 13, 2025
@jayeshmangwani @dylanexpensify @jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
jayeshmangwani commentedon May 20, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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: Create report flow follow ups #59386
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Here is a task list I’d recommend for a company of your sizeis not greyed out.tasksare not greyed out.We can explore more features such asis not greyed out.Do we agree 👍 or 👎
melvin-bot commentedon May 23, 2025
@dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!
jayeshmangwani commentedon May 26, 2025
@dylanexpensify This issue is ready for payout and can then be closed.
melvin-bot commentedon May 27, 2025
@dylanexpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
dylanexpensify commentedon May 28, 2025
Payment summary:
Contributor: @Krishna2323 $250 via Upwork
Contributor+: @jayeshmangwani $250 via NewDot
Please apply/request!
dylanexpensify commentedon May 28, 2025
done!
garrettmknight commentedon Jun 5, 2025
$250 approved for @jayeshmangwani