Closed kbecciv closed 2 months ago
Triggered auto assignment to @johncschuster (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Job added to Upwork: https://www.upwork.com/jobs/~01fbd69c08b1d03d62
Platforms
in OP are โ
)Triggered auto assignment to @mallenexpensify (External
), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External
)
mWeb - Selecting and copying large name in share code displays remaining name with odd 3 dot position
We are limiting the no. of line on Text for Display name. The behaviour of text component is to Scrolling while selecting on chrome and it truncates accordingly.
We can make the Display Name not selectable, by applying styles - userSelectNone or passing a prop userSelect="none" to text component as we already have a "copy to Clipboard link button" already
@ishpaul777 Thanks for the proposal. I don't think your RCA is complete. Why the 3 dots do not change position (or get removed) and instead they stay in the same position they initially appeared at.
I didn't check but initial thought is that the bug is not on Exp/App but in RNW or Chromium.
mWeb - Although text is clipped and hidden user can still drag the selection cursor down to select the full text and the ellipsis is in the middle of the text.
ATM, we use numberOfLines
to truncate the text there. When numberOfLines
is 1
, it uses automatic ellipsis with text-overflow: ellipsis
When numberOfLines
is larger than 1
, it uses fragmenting overflow with -webkit-line-clamp
. In the QR share page, we uses numberOfLines=2
.
The problem with -webkit-line-clamp
is that it does not actually "truncate" the text but inserts an ellipsis in the last position of the specified line (reference). That explains why the ellipsis always stays at the same position. And when we select the text, it would scroll down to select the whole text. We could easily see this (the text was not truncated) by using DevTools to inspect the div.
Another problem is with overflow: hidden
. Although it prevents scrolling interface, the wrapper box is still a scroll container and it still allows programmatic scrolling. I think that the dragging cursor to select text in Chrome is somehow related to these two cases.
Add overflow: clip
instead of overflow: hidden
to "forbid scrolling entirely, through any mechanism" as mentioned in the document here.
@tienifr Thanks for the proposal. Your RCA makes sense. Regarding the overflow: hidden
, this is added from RNW right? (and not explicitly from the Exp/App). If that's is the case, can you please prepare a RNW PR to update the overflow prop value?
Unassigning myself as BZ since I was the second one assigned. Let me know if you need help here @johncschuster
@tienifr Thanks! Can you please update the PR with tests to follow RNW contributing guide
Once I got assigned, I would submit a complete PR. That's just a draft PR for testing purpose. Correct me if I misunderstood something ๐
๐ ๐ ๐ C+ reviewed Link to proposal
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Not overdue. Needs an engineer review here
Thanks for the update, @s77rt!
Not overdue. Needs an engineer review here
Bump here to resolve ^
๐ ๐ ๐ C+ reviewed Link to proposal
Sorry for the delay. The proposal looks good to me too.
We're under a migration from @expensify/react-native-web
fork to the original react-native-web
. Further steps should be:
Reference: https://github.com/Expensify/react-native-web/pull/21#issuecomment-1674088350.
I think we should put this on HOLD as in step 3.
cc @s77rt @neil-marcellini
@tienifr I don't see a reason to hold, the PR would target the upstream repo. Let's get the upstream PR merged then we can hold this
Not overdue, waiting for the PR
@johncschuster @s77rt @neil-marcellini @tienifr 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!
Working on it Melvin
Update:
The upstream PR is up: https://github.com/necolas/react-native-web/pull/2584 2 days ago. I've carefully followed the RNW contributing guidelines. So step 1 is done. However, considering the update frequency of this package, which seems like once a month, and the WIP https://github.com/Expensify/App/pull/24482, I think we've got a long way ahead to get this done.
In case https://github.com/Expensify/App/pull/24482 got merged first, I would raise E/App PR to apply code patch.
@tienifr Thanks for the update. Let's wait for the upstream PR for now.
@johncschuster @s77rt @neil-marcellini @tienifr this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
Still holding, moving to weekly
Still holding
Still holding
Still on hold
Same ^
Still on hold
Still hold on https://github.com/necolas/react-native-web/pull/2584
Same ^
Triggered auto assignment to @dylanexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
I will be OOO starting Monday, December 18, and will return Tuesday, January 2.
Current status: This is on hold for an upstream PR https://github.com/necolas/react-native-web/pull/2584
If this issue is open when I'm back from OOO, I'll take it back over. Thank you!
Still on hold
hold
Same ^
Still hold on https://github.com/necolas/react-native-web/pull/2584
Same ^
Same ^
Same^
Same^
@johncschuster, @s77rt, @neil-marcellini, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!
Still holding
Same ^
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:
App should either not allow to extend name to select the full name on drag or should remove the 3 dots if name is extended and rest name is displayed
Actual Result:
App allows to extend name to display remaining name in share code and also keeps the 3 dots in same location on mWeb chrome
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.67.2 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
https://github.com/Expensify/App/assets/93399543/be5f01d8-9298-4bc1-9040-dfd98086d3e0
https://github.com/Expensify/App/assets/93399543/102ef0b7-3def-4a9b-8a73-c4a1c7635ed3
Expensify/Expensify Issue URL: Issue reported by: @dhanashree-sawant Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694106668042179
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @johncschuster