-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Workspace - The invite message can't fit into the textbox #37406
Comments
Triggered auto assignment to @mallenexpensify ( |
@mallenexpensify 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. |
We think that this bug might be related to #wave8-collect-admins |
Job added to Upwork: https://www.upwork.com/jobs/~01561b4140b01dff6c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura ( |
Think it can be external. @paultsimura , let me know if you disagree. |
Yes, it seems like a regular FE task 👍 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - The invite message can't fit into the textbox What is the root cause of that problem?we use autoGrowHeightMultilineInput in the invite textfield props which has a max height of What changes do you think we should make in order to solve the problem?we can change the max height value to POC |
Checking in Wave 8, think it's better https://expensify.slack.com/archives/C036QM0SLJK/p1709340832943519 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The invite message can't fit into the textbox. What is the root cause of that problem?In here, we're using a fixed The correct behavior here should be that the What changes do you think we should make in order to solve the problem?
POC branch for testing will be available upon request. What alternative solutions did you explore? (Optional)Use another method to get the height from the default welcome text like in here, to pass as Customizing the fixed max height in here (Note: ResultScreen.Recording.2024-03-02.at.1.49.17.PM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - The invite message can't fit into the textbox What is the root cause of that problem?Here,
we are passing autoGrowHeightMultilineInput , which has a max height of maxHeight: 115 which is basically clipping the text and because of this the invite message does not fit inside the textbox.
What changes do you think we should make in order to solve the problem?To solve this issue, I can see that the app behaves by having a scrollbar in the textbox on all the other platforms i.e.
So, the best solution is that we can add Lines 3124 to 3126 in a509234
What alternative solutions did you explore? (Optional)Other, than that we can do one more thing is we can make the textbox, height dynamic i.e. it changes according to the text input. ResultScreen.Recording.2024-03-02.at.3.16.40.PM.mp4 |
After taking a closer look – I'm not sure it's something we need to fix. However, the field is scrollable. Do we want to change this behavior? And if yes – what would be the expected outcome? Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-03-02.at.12.43.51.mp4cc @mallenexpensify @Expensify/design |
@paultsimura, As stated above, I can understand that and see that. Also, my solution revolves more around making it scrollable as I have also stated that this kind of behaviour is experienced in the app on other platforms like Web, Native and Desktop etc. Please check out my proposal if possible for you |
Triggered auto assignment to @shawnborton ( |
@shawnborton looping in design for 👀. One possible discussion point, if we end up having too much text and the user needs to scroll, when the user first sees the message, do we want to show them the top of the text or the bottom, assuming they're able to scroll down. |
Just duplicate your invite message to make it 2x as long |
@paultsimura I think the problem here is that the "default invite message" is clipped when it's shown to the user, it's supposed to always be showing in full when the user opens that page (if not the user will have to scroll to read the full text). The current
If the user edits the invite message and it becomes longer than the text box, it's not a problem because at the time the user already reads the full text of the "default invite message" |
But I think making it scrollable is a better alternative as in all the other platforms we are just making the invite message as scrollable. After that we can add as much text in the invite message as possible and it won't effect anything and also it would maintain consistency throughout the app on all the platforms. |
From what I see – we have this message scrollable on all platforms. Could you please share the recordings on what platforms the message is not scrollable? |
If I modify the message, leave the page, and go back to it – the new custom message will be "default" for all future invitations. So this is not necessarily related to the default invitation message set by Expensify. Screen.Recording.2024-03-04.at.12.50.31.mov |
Yes yes I know that and that's what I am saying that we should make the |
@godofoutcasts94 please try to keep the communication productive. From what I see, all the platforms (including both mWeb) already have this field scrollable. If you have a different experience - please provide the screen recording. |
oops my bad! I am sorry. I had some misunderstanding. @paultsimura I am extremely sorry. |
@shawnborton just so you don't have to scroll through all the messages. TD;DR: However, the field is scrollable. Do we want to change this behavior? And if yes – what would be the expected outcome? Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-03-02.at.12.43.51.mp4 |
I'm down to wait for the other designers to chime in, but I think this is expected behavior and isn't something we need to do anything about. Looks to be working like a normal
@mallenexpensify I think it kinda depends on whether the field is focused or not. If the field is focused, we should continue to default to the end/bottom, because that's where we place your cursor in the input (I assume). If the field is not focused, then I could see an argument for defaulting to the top of the message, but honestly think either is fine. |
Yeah I agree with Danny here - this seems to be standard textarea behavior. Did we recently change the max height or something? |
Nope. I think the issue reporter just had a relatively small screen and a relatively long workspace name, so the default message overflowed the pre-defined textarea height. So would you suggest to close this issue? @shawnborton @dannymcclain |
I would be good with that, yes. |
Thanks all, closing |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Found when validating PR : #29991
Version Number: 1.4.44.0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal Team
Action Performed:
Expected Result:
The invite message should fit into the textbox.
Actual Result:
The invite message can't fit into the textbox.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: