-
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-04-05] [$250] [Categories] - Category row is not grayed out entirely when disabled offline #38262
Comments
Triggered auto assignment to @puneetlath ( |
👋 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:
|
Current assignee @puneetlath is eligible for the Engineering assigner, not assigning anyone new. |
This comment has been minimized.
This comment has been minimized.
I believe this behaviour is intentional since it's the state value (enabled / disabled) that's changing. @ArekChr can confirm. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Categories - Category row is not grayed out entirely when disabled offline What is the root cause of that problem?Offending PR: #37734 We set App/src/libs/actions/Policy.ts Lines 2655 to 2657 in 13f8bc0
What changes do you think we should make in order to solve the problem?Instead of adding Resultenabled.disable_category_pendingAction.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Only the status column is grayed out. What is the root cause of that problem?When we disable the category, we update App/src/libs/actions/Policy.ts Lines 2654 to 2656 in b7a230e
but we don't get this as
What changes do you think we should make in order to solve the problem?We should update the
OPTIONAL: In the feature we can have other What alternative solutions did you explore? (Optional)NA |
Offending PR #37734 - which is still within the regression period (deployed to staging 17h ago, see #37734 (comment)). |
This is not a blocker, new feature we work on in Simplified Collect, taking the issue on. We are discussing the pending fields/ error handling on this table component |
@mountiny do you have a link to the discussion? |
Sorry it was this one https://expensify.slack.com/archives/C036QM0SLJK/p1710425480916719 seems like this is already se up so we can proceed with implementation |
Job added to Upwork: https://www.upwork.com/jobs/~013df311dce09e48bb |
regarding this, we are still discussing internally, its not in scope of this PR @Krishna2323 could you however align the tags behaviour with categories in your PR please? Thank you |
Will fix that also, thanks. |
Where we at with this? What's the ETA on the PR? Thanks! |
In review. ETA today/tomorrow. Do you know whether the category UI element should be completely disabled when grayed out? I.e. should I be able to click/tap it to display the details, or maybe change the category name? |
I think users should be able to interact with it and update other values, unless the row is in a pending delete state, in which case it should be disabled |
Agree with what Carlos said! |
@luacmartins, are you sure we don't need to disabled the tags/categories when updated offline, I guess it was intentionally added in this #37734. BTW we aren't making any changes related to disabling the tag/categories in this PR, the disabling only happens with categories which was added in the PR linked above. But still if we need to change that we can handle that in #38663 |
I raised this topic, because it felt odd; in most cases, we can edit the thing that has pending offline actions. But we didn't change anything in this aspect in our PR, so maybe let's consider this out of scope? |
Are you specifically asking in the pending create state or the pending delete case? Because they are handled differently. If you add a category offline, you can edit its settings as well. Generally the philosophy here is that we should let people "work" offline as much as possible. So blocking them from being able to edit the category they just added goes against that. It would be somewhat pointless to allow you to add categories when offline if we didn't. If you delete a category offline, you can't edit its settings. It's treated as if you deleted it when online, the only difference is that it's still displayed as a breadcrumb while its pending to confirm the action was successful. |
Agree with Tom. So the only instance in which we should disable the row is when it's pending to be deleted. Adding or updating any field should not block the user from interacting with it again. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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-04-05. 🎊 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:
|
$250 to @Krishna2323 and $250 to @cubuspl42 |
Puneet has been originally assigned using the bug label so adding you to handle payments here, thank you! |
@cubuspl42 friendly reminder on the checklist so that we can pay tomorrow. |
|
All paid. Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.52-0
Reproducible in staging?: y
Reproducible in production?: no
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Precondition:
Expected Result:
The entire category row will appear grayed out.
Actual Result:
Only the status column is grayed out.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6412862_1710369793014.bandicam_2024-03-14_04-34-17-866.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: