-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] QBO - Main tag row is not grayed out when tag name or subtag is edited offline #43379
Comments
Triggered auto assignment to @miljakljajic ( |
@miljakljajic 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 |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The main tag row is not grayed out when the tag name or subtag is edited offline. What is the root cause of that problem?On the Workspace tags page, for multi-level tags, there isn't a pendingAction field. This omission means that changes made offline do not trigger the necessary visual indicator.
What changes do you think we should make in order to solve the problem?For multi-level tags, we need to check all the child tags and determine if any have a const hasPendingAction = Object.values(policyTagList.tags).some(tag => tag.pendingAction);
return {
// ..
pendingAction: hasPendingAction, What alternative solutions did you explore? |
ProposalPlease re-state the problem that we are trying to solve in this issue.QBO - Main tag row is not grayed out when tag name or subtag is edited offline What is the root cause of that problem?For multi level tags we don't set the App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 75 to 90 in 009b050
What changes do you think we should make in order to solve the problem?We should use if (isMultiLevelTags) {
return policyTagLists.map((policyTagList) => {
const hasChildPendingAction = Object.values(policyTagList.tags).some((tag) => tag.pendingAction);
return {
value: policyTagList.name,
orderWeight: policyTagList.orderWeight,
text: PolicyUtils.getCleanedTagName(policyTagList.name),
keyForList: String(policyTagList.orderWeight),
isSelected: selectedTags[policyTagList.name],
enabled: true,
required: policyTagList.required,
pendingAction: policyTagList.pendingAction ?? (hasChildPendingAction ? CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE : undefined),
rightElement: (
<ListItemRightCaretWithLabel
labelText={policyTagList.required ? translate('common.required') : undefined}
shouldShowCaret={false}
/>
),
};
});
} What alternative solutions did you explore? (Optional) |
@miljakljajic Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@miljakljajic Still overdue 6 days?! Let's take care of this! |
Job added to Upwork: https://www.upwork.com/jobs/~019a5f373ffd1d9267 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 ( |
|
Thank you for your proposals! @Krishna2323 focused on getting detail coding changes while their proposal doesn’t seem to have significant difference compared to the previous one. I think we should go with @devguest07 's proposal as they're the first to point out the root cause. I also agreed with their idea to get it fixed.
🎀👀🎀 C+ reviewed |
Triggered auto assignment to @AndrewGable, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@eh2077, I think you missed this part of my proposal, we also need to set the
Monosnap.screencast.2024-06-20.20-17-54.mp4 |
@Krishna2323 Thanks for your comment but I think the selected proposal covers the change you mentioned. |
const hasPendingAction = Object.values(policyTagList.tags).some(tag => tag.pendingAction);
return {
// ..
pendingAction: hasPendingAction, @eh2077, I can't find any mention about adding |
@Krishna2323 I appreciated your effort to discuss the specific detail coding changes. But I still don’t agree with you that your proposal has contributed significant difference compared to the selected one. I believe @devguest07 's description about the change needed and together with pseudocode are enough for the solution. |
@eh2077, the proposal never suggested using
The pending action should be: pendingAction: policyTagList.pendingAction ?? (hasChildPendingAction ? CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE : undefined), cc: @AndrewGable |
@Krishna2323 Sorry, I still think the idea to update I tend to stick with my original decision, so I also agreed to defer it to the internal engineering team. cc @AndrewGable |
@devguest07 You can also post issues you encountered here or on the expensify-open-source slack channel |
@eh2077 Thank you for your help. The issue was with Mapbox; I was using the default key without read/write access. Regarding Slack, I still don't have access. I requested an invitation via email a few weeks ago but haven't received it yet. The PR will be ready in a few hours. |
@devguest07 You can refer to this post from Slack.
![]() |
@eh2077 @AndrewGable I think automation failed here! |
Yes, looks like it has been deployed for a while. @miljakljajic - Can we pay this one out? |
This issue has not been updated in over 15 days. @AndrewGable, @miljakljajic, @eh2077, @devguest07 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Checklist
Regression testPrecondition: Workspace is connected to QBO
Do we agree 👍 or 👎 |
@miljakljajic This is due for payment, please take a look at this when you get a chance. Thx |
Apologies, paid! |
@miljakljajic I am not paid, my profile was frozen, can you pls pay me? |
@miljakljajic can you pls pay me? Thank you |
@AndrewGable this is closed without getting paid! Can you pls help! |
@miljakljajic - Can you double check @devguest07's payment? Thank you! |
offer extended |
@miljakljajic offer accepted |
Paid! |
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.81-1
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
Issue found when executing PR #43005
Action Performed:
Precondition:
Expected Result:
The main tag (Classes or Customers/Projects) will be grayed out when the tag name or subtag is edited
Actual Result:
The main tag (Classes or Customers/Projects) is not grayed out when the tag name or subtag is edited
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6508123_1718029397049.20240610_221233.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eh2077The text was updated successfully, but these errors were encountered: