You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-08-02] [$1000] Web - No gap between username and ReportPreview in chat #22797
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Press + from composer > Request money > Add amount > Press Next and Press Request.
Notice that there is no margin between username and report preview.
Expected Result:
There should be a top margin of 8px which is consistent with IOUPreview and attachments
Actual Result:
There is no margin between username and ReportPreview
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.39-5 Reproducible in staging?: y Reproducible in production?: y 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
changed the title [-]Web - No gap between username and ReportPreview in chat[/-][+][$1000] Web - No gap between username and ReportPreview in chat[/+]on Jul 13, 2023
Please re-state the problem that we are trying to solve in this issue.
There isn't margin for ReportPreview and username when it is the first message for that time span
What is the root cause of that problem?
We don't have containerStyles prop for the ReportPreview and we are not providing any margin for the ReportPreview in the ReportActionItem component when it is displayAsGroup.
What changes do you think we should make in order to solve the problem?
Add prop containerStyles for the ReportPreview component. containerStyles: PropTypes.arrayOf(PropTypes.object),
Pass containerStyles prop for the ReportPreview from ReportActionItem containerStyles={props.displayAsGroup ? [] : [styles.mt2]}
Apply containerStyles for the View styles in the ReportPreview here(I prefer to add for the first option as it won't show cursor pointer for the above marginal area, with that we can do the same minor change for IOUPreview also) <View style={[styles.chatItemMessage, ...props.containerStyles]}>
changed the title [-][$1000] Web - No gap between username and ReportPreview in chat[/-][+][HOLD for payment 2023-08-02] [$1000] Web - No gap between username and ReportPreview in chat[/+]on Jul 26, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-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 2023-08-02. 🎊
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.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
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:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
The regression test should cover this.
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Open any chat which has Report Preview
Verify that there is a top margin for Report Preview with username
Open any chat which has Report Preview grouped with the previous message
Verify that there is no top margin from the preview and the previous message
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 13, 2023
Triggered auto assignment to @lschurr (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 13, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)kbecciv commentedon Jul 13, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
No gap between username and ReportPreview in chat which is inconsistent with attachments, IOUPreview, etc. which have a top margin of
8px.What is the root cause of that problem?
We don't have
styles.mt2forViewwrapper inReportPreview-App/src/components/ReportActionItem/ReportPreview.js
Line 107 in d6b2d07
This is inconsistent with other components like
IOUPreviewwhich have a top margin of8px. -App/src/pages/home/report/ReportActionItem.js
Line 242 in d6b2d07
It is also inconsistent with attachments which also have a top margin of
8px-App/src/pages/home/report/ReportActionItem.js
Line 294 in d6b2d07
What changes do you think we should make in order to solve the problem?
We need to add
styles.mt2in line 107 inReportPreview-What alternative solutions did you explore? (Optional)
NA

Result -
[-]Web - No gap between username and ReportPreview in chat[/-][+][$1000] Web - No gap between username and ReportPreview in chat[/+]melvin-bot commentedon Jul 13, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01bb7137f6f7800a33
melvin-bot commentedon Jul 13, 2023
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 13, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (
External)Nikhil-Vats commentedon Jul 13, 2023
My proposal above
Pujan92 commentedon Jul 13, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
There isn't margin for ReportPreview and username when it is the first message for that time span
What is the root cause of that problem?
We don't have
containerStylesprop for theReportPreviewand we are not providing any margin for theReportPreviewin theReportActionItemcomponent when it is displayAsGroup.App/src/pages/home/report/ReportActionItem.js
Lines 247 to 254 in 531dba8
What changes do you think we should make in order to solve the problem?
Add prop
containerStylesfor theReportPreviewcomponent.containerStyles: PropTypes.arrayOf(PropTypes.object),Pass
containerStylesprop for theReportPreviewfromReportActionItemcontainerStyles={props.displayAsGroup ? [] : [styles.mt2]}Apply
containerStylesfor theViewstyles in theReportPreviewhere(I prefer to add for the first option as it won't show cursor pointer for the above marginal area, with that we can do the same minor change forIOUPreviewalso)<View style={[styles.chatItemMessage, ...props.containerStyles]}>App/src/components/ReportActionItem/ReportPreview.js
Line 93 in 531dba8
Or
App/src/components/ReportActionItem/ReportPreview.js
Line 105 in 531dba8
22 remaining items
[-][$1000] Web - No gap between username and ReportPreview in chat[/-][+][HOLD for payment 2023-08-02] [$1000] Web - No gap between username and ReportPreview in chat[/+]melvin-bot commentedon Jul 26, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 26, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-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 2023-08-02. 🎊
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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Jul 26, 2023
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:
lschurr commentedon Jul 31, 2023
@mollfpr could you work through the checklist and let me know if we need a regression test?
lschurr commentedon Jul 31, 2023
Payout summary:
Payments will be made via Upwork on 8/2
lschurr commentedon Aug 2, 2023
Payments have been made in Upwork.
@mollfpr could you work on the checklist so we can close this one out? #22797 (comment)
mollfpr commentedon Aug 3, 2023
#19230
https://github.com/Expensify/App/pull/19230/files#r1283409243
The regression test should cover this.
lschurr commentedon Aug 3, 2023
Added QA test request. Closing this one out!