-
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-07-10] Android & iOS - Tags - "Enabled" badge is not crossed out when tag is deleted offline #42673
Comments
Triggered auto assignment to @JmillsExpensify ( |
@JmillsExpensify 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.Android & iOS - Tags - "Enabled" badge is not crossed out when tag is deleted offline What is the root cause of that problem?The deleted style is only applied to direct child of
What changes do you think we should make in order to solve the problem?We need to follow the same approach as we did in #39010.
We will also look for similar components like What alternative solutions did you explore? (Optional)ResultenabledTextNot_crossed.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Enabled badge of the right component is not crossed out when deleting a tag while offline. What is the root cause of that problem?The crossed out style is applied from OfflineWithFeedback. OfflineWithFeedback will give the component a deleted style. App/src/components/OfflineWithFeedback.tsx Lines 116 to 118 in 2514f29
However, the Enabled badge component itself doesn't accept any style props.
So, the deleted style is never applied to it. What changes do you think we should make in order to solve the problem?Add a style prop to ListItemRightCaretWithLabel and append it to the label text style here.
What alternative solutions did you explore? (Optional)We can start passing an additional offlineFeedbackStyle prop from OfflineWithFeedback and use it on a custom component, in our case, the ListItemRightCaretWithLabel. Other components will still work as usual.
Then we accept offlineFeedbackStyle as the new prop of ListItemRightCaretWithLabel instead of style. |
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue. |
Opening up to the community. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
My solution here is a general fix for issues like this, I'll post it again here in some time |
Bringing my proposal from #37776 which is a general fix ProposalPlease re-state the problem that we are trying to solve in this issue."Enabled" badge is not crossed out when tag is deleted offline What is the root cause of that problem?In here, we already attempted to apply strikethrough text style for all nested This works well in case of direct children like here, it will have style appended with the strike through style here. That's why the display name and email of the workspace member have strike-through style correctly. However, the And this issue will happen again any time we have a What changes do you think we should make in order to solve the problem?The challenge is: Apply strike-through style to all Text components inside We need to use a more robust approach to do this than recursive search on children, due to the limitation above. Fortunately, we already have a similar app-wide pattern which is the
This pattern is similar to the What alternative solutions did you explore? (Optional)NA |
@JmillsExpensify, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
Still waiting for proposal review. cc @DylanDylann |
This issue only reproduces on the native app. I think the RCA will be more complicated than the above proposals
@tienifr Thanks for this point. But it is still grey to me, I will need some time to dive deep into this problem. It would be great if you could detail more |
@DylanDylann Please read this thread for more details: https://stackoverflow.com/q/51776533 Basically, when we have:
And we try to access the children of But when we do
and
|
Issue not reproducible during KI retests. (First week) |
@JmillsExpensify @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@JmillsExpensify, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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-07-10. 🎊 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:
|
Payment Summary
BugZero Checklist (@JmillsExpensify)
|
@tienifr mind filling out the BZ checklist? I confirm the $250 payment summary above is correct for both contributors. |
@DylanDylann shall I create an Upwork job/contract for you? |
@JmillsExpensify Yes please! |
@JmillsExpensify, @youssef-lr, @tienifr, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@DylanDylann offer sent! |
Reminder on the Upwork contract! |
@JmillsExpensify Sure thing, I accepted the offer, TY |
All paid out! @tienifr I'm going to close this issue for now, though before you submit an expense via New Expensify, please make sure to complete the BZ checklist. |
I believe it'd be on @DylanDylann to complete the BZ checklist. @DylanDylann Could you help with that? I've requested payment via NewDot |
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: [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA Regression Test Proposal
Do we agree 👍 or 👎 |
Ah thanks! I'll re-open this one. |
@mallenexpensify would you mind double-confirming payment summary before I approve payment? |
Contributor: @DylanDylann paid $250 via Upwork |
$250 approved for @tienifr |
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.76-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: https://expensify.testrail.io/index.php?/tests/view/4578912
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The "Enabled" badge will be crossed out when tag is deleted offline (web behavior)
Actual Result:
The "Enabled" badge is not crossed out when tag is deleted offline
This issue also applies to categories, distance rates and tax rates
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6493365_1716844680187.RPReplay_Final1716844369.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: