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
[PAID][$250] Categories -Empty state does not display introduction text right after deleting all categories #46238
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 contributorReviewingHas a PR in review
Version Number: 9.0.12-0 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:
Precondition:
Network should be slow
Go to staging.new.expensify.com
Go to workspace settings
Go to Categories
Delete all the categories
Note that the empty state does not show the introduction text after deleting all the categories
Go to Troubleshoot > Clear cache and restart > Reset and restart
Return to workspace settings > Categories
Now the empty state shows the introduction text
Expected Result:
In Step 5, the empty state will display the introduction text right after deleting all the categories
Actual Result:
In Step 5, the empty state does not display the introduction text right after deleting all the categories
It only displays after the categories are really deleted or clearing cache and restarting app
Platforms:
Which of our officially supported platforms is this issue occurring on?
@sonialiap FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
What changes do you think we should make in order to solve the problem?
In the case of workspace tag and field page this issue doesn't occur because the data is emptied when we delelte all the lists but only for category case the pendingAction is set to delete instead of deleting the list, therefore this bug occurs and so:
Please re-state the problem that we are trying to solve in this issue.
In Step 5, the empty state does not display the introduction text right after deleting all the categories
It only displays after the categories are really deleted or clearing cache and restarting app
What is the root cause of that problem?
We're displaying the introduction text on the small screen if there is no category in the list. But when we delete the category we only update pendingAction to delete in optimistic data. So the introduction text is not displayed immediately after we delete all categories
changed the title [-]Categories -Empty state does not display introduction text right after deleting all categories[/-][+][$250] Categories -Empty state does not display introduction text right after deleting all categories[/+]on Jul 30, 2024
changed the title [-][$250] Categories -Empty state does not display introduction text right after deleting all categories[/-][+] [HOLD for Payment 2024-08-22][$250] Categories -Empty state does not display introduction text right after deleting all categories[/+]on Aug 19, 2024
changed the title [-] [HOLD for Payment 2024-08-22][$250] Categories -Empty state does not display introduction text right after deleting all categories[/-][+] [PAID][$250] Categories -Empty state does not display introduction text right after deleting all categories[/+]on Aug 22, 2024
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 contributorReviewingHas a PR in review
Activity
melvin-bot commentedon Jul 25, 2024
Triggered auto assignment to @sonialiap (
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.lanitochka17 commentedon Jul 25, 2024
@sonialiap FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
FitseTLT commentedon Jul 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Categories -Empty state does not display introduction text right after deleting all categories
What is the root cause of that problem?
We are displaying the text if the
categoryListlength is zero but when we delete categories onlypendingActionis set to deleteApp/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Lines 313 to 314 in b0f810d
What changes do you think we should make in order to solve the problem?
In the case of workspace tag and field page this issue doesn't occur because the data is emptied when we delelte all the lists but only for category case the
pendingActionis set to delete instead of deleting the list, therefore this bug occurs and so:We should change it to
What alternative solutions did you explore? (Optional)
We might need to create a new variable by taking out
isOfflinevariable in the definition ofhasVisibleCategorieshereApp/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Lines 260 to 261 in b0f810d
Alternatively We can also use both conditions like
nkdengineer commentedon Jul 26, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 5, the empty state does not display the introduction text right after deleting all the categories
It only displays after the categories are really deleted or clearing cache and restarting app
What is the root cause of that problem?
We're displaying the introduction text on the small screen if there is no category in the list. But when we delete the category we only update
pendingActiontodeletein optimistic data. So the introduction text is not displayed immediately after we delete all categoriesApp/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Line 313 in 0559307
This bug also happens on the tag page and report field page since we use the same condition.
App/src/pages/workspace/tags/WorkspaceTagsPage.tsx
Line 336 in 0559307
App/src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx
Line 259 in 2b36366
What changes do you think we should make in order to solve the problem?
We should replace this condition
categoryList.length === 0with!hasVisibleCategoriesthat already checked the categories have pending action isdeleteApp/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Line 313 in 0559307
And we need to do the same for the tag page
App/src/pages/workspace/tags/WorkspaceTagsPage.tsx
Line 336 in 0559307
and report field page
App/src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx
Line 259 in 2b36366
What alternative solutions did you explore? (Optional)
nkdengineer commentedon Jul 26, 2024
Proposal updated
melvin-bot commentedon Jul 29, 2024
@sonialiap Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Jul 30, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01a227da0825fc4b73
[-]Categories -Empty state does not display introduction text right after deleting all categories[/-][+][$250] Categories -Empty state does not display introduction text right after deleting all categories[/+]melvin-bot commentedon Jul 30, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)25 remaining items
melvin-bot commentedon Aug 16, 2024
Triggered auto assignment to @strepanier03 (
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.sonialiap commentedon Aug 16, 2024
@strepanier03 I'm OOO Aug 19-30, adding leave buddy.
Status: waiting for build
[-][$250] Categories -Empty state does not display introduction text right after deleting all categories[/-][+] [HOLD for Payment 2024-08-22][$250] Categories -Empty state does not display introduction text right after deleting all categories[/+][-] [HOLD for Payment 2024-08-22][$250] Categories -Empty state does not display introduction text right after deleting all categories[/-][+] [PAID][$250] Categories -Empty state does not display introduction text right after deleting all categories[/+]strepanier03 commentedon Aug 22, 2024
Contract paid and closed.
sobitneupane commentedon Aug 23, 2024
@strepanier03 I will need payment summary to request payment in newDot.
sobitneupane commentedon Sep 2, 2024
Bump @strepanier03
sobitneupane commentedon Oct 21, 2024
@strepanier03 @sonialiap I will need payment summary to request payment in newDot.
sonialiap commentedon Oct 23, 2024
Payment summary:
garrettmknight commentedon Dec 12, 2024
$250 approved for @sobitneupane