Closed m-natarajan closed 4 months ago
Triggered auto assignment to @puneetlath (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
Triggered auto assignment to @MitchExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
:wave: 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:
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
I don't think it needs to block the deploy, but let's fix it.
Job added to Upwork: https://www.upwork.com/jobs/~01572a633b7213a3b7
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External
)
System chat - Chat with your setup specialist message not aligned and gets out of box
There is no padding in the below text which is passed as content to Banner:
Add some horizontal padding below:
content={<Text style={[styles.pr4]}
suppressHighlighting>{content}</Text>}
Padding details need to be discussed with design team.
Optional:
Update this to the below to show text
only if it is defined:
{(() => {
if (!text) {
return null;
}
if (shouldRenderHTML) {
return <RenderHTML html={text} />;
}
return (
<Text
style={[styles.flex1, styles.flexWrap, textStyles]}
onPress={onPress}
suppressHighlighting
>
{text}
</Text>
);
})()}
The report system chat footer gets out of the box.
The container itself already sets a padding, https://github.com/Expensify/App/blob/66b4072db8ec86a8eed2d6e765a52eae3c9c68d4/src/components/Banner.tsx#L74-L78
but the text content still overflows the banner/box. If we look at the banner text, we apply a flex1 style that should fix this issue, https://github.com/Expensify/App/blob/66b4072db8ec86a8eed2d6e765a52eae3c9c68d4/src/components/Banner.tsx#L99-L105
but in our case, we use custom text content which doesn't have the flex1 style. https://github.com/Expensify/App/blob/66b4072db8ec86a8eed2d6e765a52eae3c9c68d4/src/components/Banner.tsx#L94 https://github.com/Expensify/App/blob/66b4072db8ec86a8eed2d6e765a52eae3c9c68d4/src/pages/home/report/SystemChatReportFooterMessage.tsx#L73
Add styles.flex1 style to the content. https://github.com/Expensify/App/blob/66b4072db8ec86a8eed2d6e765a52eae3c9c68d4/src/pages/home/report/SystemChatReportFooterMessage.tsx#L73
Then, make sure to not render the Text component if the text is empty. https://github.com/Expensify/App/blob/66b4072db8ec86a8eed2d6e765a52eae3c9c68d4/src/components/Banner.tsx#L96-L106
{shouldRenderHTML && text ? (
<RenderHTML html={text} />
) : text && (
...
Updated to include optional item.
π£ @ssswhite0707! π£ Hey, it seems we donβt have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
iOS - System chat - Chat with your setup specialist message not aligned and gets out of box
This is a known issue in react native and is caused by using flexRow on parent view of a Text element. https://github.com/Expensify/App/blob/198b47360fa6fa5bfbb81f3fb535a2fa6817e375/src/components/Banner.tsx#L85 https://github.com/Expensify/App/blob/198b47360fa6fa5bfbb81f3fb535a2fa6817e375/src/components/Banner.tsx#L94
From SystemChatReportFooterMessage
we pass the content prop, which is a Text component. https://github.com/Expensify/App/blob/198b47360fa6fa5bfbb81f3fb535a2fa6817e375/src/pages/home/report/SystemChatReportFooterMessage.tsx#L73
Banner.tsx
we need to wrap the content coming from the prop in a View
which has flex1
style applied. Also make sure to not render the view when content
is not present.
{content && <View style={styles.flex1}>{content}</View>}
RenderHTML
or Text
when text
is not present.
{text &&
(shouldRenderHTML ? (
<RenderHTML html={text} />
) : (
<Text
style={[styles.flex1, styles.flexWrap, textStyles]}
onPress={onPress}
suppressHighlighting
>
{text}
</Text>
))}
@shubham1206agra what do you think of these proposals?
@puneetlath, @MitchExpensify, @shubham1206agra Huh... This is 4 days overdue. Who can take care of this?
Bump @shubham1206agra, thanks
Waiting on a review on proposals, Melvin
I will go ahead with @bernhardoj's proposal since he was the first to give the correct solution.
πππ C+ reviewed
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
π£ @shubham1206agra π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @bernhardoj π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
PR is ready
cc: @shubham1206agra
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.84-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-06-24. :confetti_ball:
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:
Reminder set to pay - Do we need BZ steps here @shubham1206agra ?
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.85-7 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-06-28. :confetti_ball:
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:
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:
@MitchExpensify Bump on the payment here.
Paid and contracts ended!
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
issue reproducible when validating #41290 Version Number: 1.4.79-6 Reproducible in staging?: y Reproducible in production?: no, (the chat is not displayed to check) 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 Expensify/Expensify Issue URL: Issue reported by: Applause internal team Slack conversation:
Action Performed:
Expected Result:
The message "Chat with your specialist in #admins for help" is displayed in the box
Actual Result:
The message flows out of the box. Changing device font size might help reproduce the issue.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/Expensify/App/assets/38435837/efe243ea-6d4a-4738-844c-9f6fc09c7320
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensify / @MitchExpensifyIssue Owner
Current Issue Owner: @puneetlath / @MitchExpensify