-
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
[HOLD for payment 2023-04-03] [$1000] [Android] Workspaces - The icon of a deleted offline workspace shows a circle instead of the standard shape #15697
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @marcaaron ( |
This feels pretty edge case to me and imo not a deploy blocker. Considering it's reproducible on production I'm going to remove the blocker and we can just fix this when we fix it. |
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Very odd - I tried on Staging .79 and couldn't reproduce on my Pixel 3a: I also specifically tried deleting the blue icon, and couldn't reproduce: What phone are you using @kbecciv ? |
Closing, unable to reproduce on staging v .80-1 |
Ah sorry @marcaaron - didn't realise you commented. I can't reproduce this on staging or production! |
@jliexpensify Phone used: Realme6/Android11 |
@jliexpensify Issue is still reproduced. Reopening this issue. az_recorder_20230317_145346.mp4 |
Triggered auto assignment to @dangrous ( |
Uhh wtf, I'm in Bug Zero. Unassigning Sophie. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The workspace icon when deleted while offline show another circle behind it. What is the root cause of that problem?The issue is similar to this issue #15283 where on Android, the opacity from parent is "inherited" to the child. More explanation here #15283 (comment) What changes do you think we should make in order to solve the problem?We can simply apply the same solution from the proposal, but I think we can avoid it because there is another problem I see. So, the circle behind it is a default background color (green) for the old workspace icon. Our new workspace icon already have it's own bg color, so we don't need the default circle bg color anymore. App/src/pages/workspace/WorkspacesListPage.js Line 126 in c803b5e
We can simply remove the |
ProposalPlease re-state the problem that we are trying to solve in this issue.When the workspace icon is deleted while offline, a second circle avatar appears behind it. What is the root cause of that problem?When we have policy workspace we display the policy icon and name in the policy workspace, and apply an emphasized iconStyle to them. Lines 1174 to 1177 in c803b5e
he styling is applied only if App/src/pages/workspace/WorkspacesListPage.js Line 126 in c803b5e
On Android, the opacity of the parent element will be inherited, which means that the policy icon style will be applied and shown behind it. What changes do you think we should make in order to solve the problem? iconStyles: policy.avatar ? [] : [styles.popoverMenuIconEmphasized], We should instead modify the check and apply the styling as follows iconStyles: policy.avatar ? [styles.popoverMenuIconEmphasized] : [] since we need a policy workspace icon styling like below Lines 1176 to 1177 in c803b5e
Additionally we should also correct the borderRadius from circle to make the design consistent around the app in order to do that we can change the borderRadius value to borderRadius: variables.componentBorderRadiusCard, Result |
@bernhardoj Thanks for the proposal. Your RCA is correct, we are applying a redundant style where its effects are only visible on Android due to how opacity styles are applied differently on Android compared to other platforms. The fix of removing that redundant style makes sense to me 👍. 🎀 👀 🎀 C+ reviewed cc @dangrous |
@getusha Thanks for the proposal. Your RCA is partly correct but I don't think we want to apply |
ah cool! I think that makes sense to me! I'll assign you here @bernhardoj |
📣 @bernhardoj You have been assigned to this job by @dangrous! |
Hired @s77rt and @bernhardoj |
PR is ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.89-0 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 2023-04-03. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Regression Test Proposal
|
Test looks good to me @s77rt . Responded in the chat thread, as well. Thanks for handling that! |
Looks good, paying now |
Paid (+ bonuses), and closing now |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The icon of the deleted offline workspace should be square's form
Actual Result:
The icon of the deleted offline workspace is broken
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.79.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5966627_video_2023-03-07_01-52-39.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: