-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-06-13] [$250] Tags - When deleting all tags, blank UI is shown #42220
Comments
We think that this bug might be related to #wave-collect - Release 1 |
Triggered auto assignment to @JmillsExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Empty state UI is not shown when we delete tags and the action is still in optimistic state What is the root cause of that problem?We check for the length of the App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 325 to 331 in ac2b3a0
When we delete the tags, the tags are still present in the What changes do you think we should make in order to solve the problem?We need to update the condition of showing the Empty UI to consider the case if all the element in the
So we can introduce a new variable similar to const shouldShowEmptyState = !tagList.some((tag) => tag.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) && !isLoading; Then update the condition at 1) empty UI state: App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 325 to 326 in ac2b3a0
To: {shouldShowEmptyState && (
<WorkspaceEmptyStateSection And 2) Tag list component: App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 332 to 333 in ac2b3a0
To: {!shouldShowEmptyState && (
<SelectionList Result VideoScreen.Recording.2024-05-16.at.2.40.55.AM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tags - When deleting all tags, blank UI is shown What is the root cause of that problem?The condition for showing empty App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 325 to 326 in e35ab02
App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 332 to 333 in e35ab02
What changes do you think we should make in order to solve the problem?We need to first check for const shouldShowEmptyState =
!(tagList.every((tag) => tag.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) && isOffline) &&
!tagList.some((tag) => tag.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) &&
!isLoading; What alternative solutions did you explore? (Optional) |
@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~015255d5c42b2d8ce7 |
Opening this up to the community. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.No UI is shown, just a blank space. Even after exiting and returning or refreshing What is the root cause of that problem?The logic of checking What changes do you think we should make in order to solve the problem?In here, we need to add
This will make sure it works both when online and offline:
Then in here, update to
and here, update to
We need to fix similarly in other pages like categories list page. FYI the proposal that suggests the Additionally, checking What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is when there are no tags initially the page shows No tags UI. but once you add a new tag and delete all tags, it shows empty tags list screen instead of 'No tags UI'. I re-tested the problem and found something. What is the root cause of that problem?The root cause is the tags object taking time to update the state. Which cause a slight delay to re-render the component ui. What changes do you think we should make in order to solve the problem?The common problem of this issue is not handled the state properly. It may be state hook dependency or lifecycle. What alternative solutions did you explore? (Optional) |
📣 @wkarim86! 📣
|
@JmillsExpensify, @allroundexperts Eep! 4 days overdue now. Issues have feelings too... |
Reviewing today! |
Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allroundexperts , Can you please rereview my proposal? The offline case is already covered by the
if possible can you please point out any regression which my proposal would have? I didn't get why my proposal was not selected here, if @tienifr has a possible case i would love to hear from them too! c.c. @Beamanator |
@GandalfGwaihir That's not right unfortunately. After applying your proposal, when we have 1 tag, then go offline, then delete that tag, we'll see empty state, which is incorrect. We should see a striked-through tag in this case to indicate that it's pending deleted. Feel free to try 👍 |
Contributor details |
|
@wkarim86 sorry but you were not hired for this job. As you can see in this comment, our assigned Contributor-plus team member recommended hiring As you probably read in the contributor guidelines, once the |
@Beamanator Ok no problem. I missed that comment. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-11 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 2024-06-13. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@JmillsExpensify, @Beamanator, @allroundexperts, @tienifr Eep! 4 days overdue now. Issues have feelings too... |
@JmillsExpensify looks like we're ready for payment here 🙏 |
Payment summary:
|
Contributor paid out. C+ needs to fill out the checklist and is paid via New Expensify, so I'll circle back on this issue for payment approval. |
Checklist
|
@mallenexpensify can you confirm the payment summary above? |
Contributor: @tienifr due $250 via NewDot TestRail Gh https://github.com/Expensify/Expensify/issues/414355 |
$250 approved for @allroundexperts. @tienifr don't forget to submit via New Expensify. |
@JmillsExpensify, @Beamanator, @allroundexperts, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
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: 1.4.74-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
Email or phone of affected tester (no customers): applausetester+emilio@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
User expects the initial "No Tag" UI to show up again and immediately
Actual Result:
No UI is shown, just a blank space. Even after exiting and returning or refreshing
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6482021_1715805828702.Tag_UI_is_not_shown_after_deleting_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: