Closed kbecciv closed 1 year ago
Triggered auto assignment to @adelekennedy (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are β
)Copy icon on Scan page is displayed below the text
When inline
is true for PressableWithDelayToggle
(which is the default), the text & icon both will be in a component that uses display: inline
so that results in text & icon wrapping in certain screen widths, just like normal inline text.
Disable inline
for PressableWithDelayToggle
inside the CopyTextToClipboard
component.
Which will put the text & icon inside a display:flex; flex-direction:row;
component thanks to the implementation in PressableWithDelayToggle
. And that will result in them being coupled and not wrap in certain conditions.
Instead of disabling inline
for the general component CopyTextToClipboard
, we could just expose the inline
prop from CopyTextToClipboard
with similar default value for inline
as the PressableWithDelayToggle
and then disable inline
just for the ReceiptSelector
page.
π£ @rmm-fl! π£ 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>
Contributor details Your Expensify account email: rajesh0malviya@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~016d9a497e49cabeb4
β Contributor details stored successfully. Thank you for contributing to Expensify!
[Distance] - Copy icon on Scan page is displayed below the text
We don't have a parent View componet with CSS to keep both the email and the Copy component glued together
The email and icon is rendered by CopyTextToClipBoard
which is in turn rendered by the PressableWithDelayToggle
component, that lets the icon wrap around the label text.
We should add a prop called shouldRenderOnSameLine
to pressableWithDelayToggle
component that makes it render the icon in the same line.
We will be wrapping the both the the components here with a <View>
The wrapping View
should have flex styling and alignItems: 'row'
, so that they don't wrap around.
This makes sure the user knows the copy button is for the email. We can turn on this prop for places where a CopyTextToClipBoard
component is using it.
xx
[Distance] - Copy icon on Scan page is displayed below the text
The props inline of PressableWithDelayToggle
default is true make the 2 views wrapped inside a Text without alignment which caused the issue.
To make it render in one line, we can just add style style={[props.inline ? styles.dInlineFlex : {}]}
in our PressableView
here or just style={[props.inline ? styles.dFlex : {}]}
.
We shouldn't wrap the content of PressableView
with a View due to RN limitation that already wrote here.
N/A N/A
reproducible
Job added to Upwork: https://www.upwork.com/jobs/~01230e5b7ac07d0a5e
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (External
)
Upwork job price has been updated to $250
Reviewing tomorrow!
Unable to reproduce on latest staging (v1.3.64-2). Can anyone else?
@jjcoffee, I can reproduce it in latest staging
https://github.com/Expensify/App/assets/143930462/1ee82393-3b91-4eec-85c4-0f2ff7858361
@rmm-fl I don't think we design for <320px since almost no devices have that screen size. I imagine the padding has been adjusted since the original issue was created, which probably sorted the issue!
I found another case where it triggers - for width ranging from 595 to 610 I think it's better to couple both the email & icon anyway.
(which is what my proposal proposes, make the inline
prop for PressableWithDelayToggle
to false)
Sweet, good catch! It's a bit of an unusual device size but probably still worth fixing as it will be affecting other screens too (see below).
I'm happy with @rmm-fl's proposal, the RCA is correct and the solution makes sense as it will fix the same issue on other screens, such as the contact methods page:
:ribbon::eyes::ribbon: C+ reviewed
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Thanks for the reviewing the proposal @jjcoffee.
(Unrelated: How do I get access to slack & stackoverflow servers? I did send two emails to contributors@expensify.com
, 3 days ago and another 2 hours ago, no updates yet!)
@rmm-fl Stackoverflow is internal only. If you've emailed, you should get access to Slack eventually, there might just be a delay at the moment as there's the React Native EU conference on. Not sure if you have any more context @adelekennedy or even the special powers to get @rmm-fl access to Slack?
(I notice that there is merge freeze going on, I would prefer to hold the assignment till it's open, in case the potentially created PR wouldn't get merged in 3 days)
Looks good to me too! cc @Expensify/design
π£ @jjcoffee π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @rmm-fl You have been assigned to this job! Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs! Keep in mind: Code of Conduct | Contributing π
π£ @mahmudjontoraqulov π An offer has been automatically sent to your Upwork account for the Reporter role π Thanks for contributing to the Expensify app!
I have applied & PR is here https://github.com/Expensify/App/pull/27136
So @rmm-fl has run into an issue on the PR where on native platforms the copy text appears misaligned with the rest of the text like this:
@rmm-fl doesn't seem to think this is easily fixable, so I think we either need to re-open this for other proposals or just close since it's a fairly minor issue that isn't affecting usability (and only happens at pretty specific screen sizes). cc @adelekennedy
@adelekennedy Can you re-apply the Help Wanted label and switch back to Daily for this? Unless you think this should be closed. (see my comment above).
oof - it's so small and rare that I don't think it's worth the money to fix @MonilBhavsar for a second opinion
@adelekennedy We could also just apply the fix on web and leave it for native, since the PR is already up and running? (That is if @rmm-fl is still interested!)
Sorry, I missed this ping. We also updated Scan page screen and we no longer have this copy. So we can close this @adelekennedy
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:
Copy icon on Scan page is displayed in the same line with text
Actual Result:
Copy icon on Scan page is displayed below the text
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.62.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: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL: Issue reported by: @mahmudjontoraqulov Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693372914126379
View all open jobs on GitHub
Upwork Automation - Do Not Edit