-
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
[$1000] Compose field's left border doesn't extend as the field expands #17424
Comments
Triggered auto assignment to @conorpendergrast ( |
Bug0 Triage Checklist (Main S/O)
|
@kavimuru this issue title seems... wrong 😆 |
@conorpendergrast i wrote that title and i don't have word for it so .. |
Oh hah, I just spotted that it's in the Slack thread about this 😄 |
Job added to Upwork: https://www.upwork.com/jobs/~019ff38561f983d47e |
Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When composer has multiline text at that time right border beside Plus icon does not expand vertically. What is the root cause of that problem?This is the parent view that consist all three button i.e. collapse, expand, and addAction App/src/pages/home/report/ReportActionCompose/index.js Lines 764 to 768 in ab9b7d9
Plus button shows right border via View having
Lines 1587 to 1590 in ab9b7d9
So during multiline plus button view does not expand vertically so line does not show. This is the root cause of the problem. What changes do you think we should make in order to solve the problem?We have to do below changes to solve this
<View style={styles.chatItemAttachBorder}> // *** Remove this
.... // Keep this content
</View>. // *** Remove this
<View style={[
styles.dFlex, styles.flexColumn,
(this.state.isFullComposerAvailable || this.props.isComposerFullSize) ? styles.justifyContentBetween : styles.justifyContentEnd,
styles.chatItemAttachBorder, // *** Add this
]}
> Note: We can rename So this will solve the issue. It is working as expected in all platform. Sample video added in Results section below. What alternative solutions did you explore? (Optional)None ResultsWeb.mov |
Triggered auto assignment to @aldo-expensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Line in the composer doesn't extend as the user presses shift enter What is the root cause of that problem?This line is created by using a borderRight. this border is added with "styles.chatItemAttachBorder" but originally only added to the View element of the actionButton which does not wrap the entire element that will expand with the textArea What changes do you think we should make in order to solve the problem?We can move the style to a higher level, that way the border is attached to the entire element and will expand properly
What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Right border isn't applied to the composer entire inner area What is the root cause of that problem?Currently, right border is only given to the plus icon View so whenever multiple lines are rendered in the composer textarea, right border won't apply to the full available height. App/src/pages/home/report/ReportActionCompose/index.js Lines 806 to 807 in ab9b7d9
What changes do you think we should make in order to solve the problem?Apply App/src/pages/home/report/ReportActionCompose/index.js Lines 764 to 767 in ab9b7d9
|
Thank you guys for the proposals! While everyone has the same correct solution and @PrashantMangukiya proposal is the first to post it right after the 🎀 👀 🎀 C+ reviewed! |
📣 @PrashantMangukiya You have been assigned to this job by @aldo-expensify! |
@mollfpr @aldo-expensify Thank you. Accepted job on Upwork. I will prepare and submit PR within two hours asap. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.1-3 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-04-26. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@conorpendergrast Ping for Upwork. |
@conorpendergrast i am waiting for response on upwork. |
Conor is out of office and he will be back early next week to process your payments |
@aldo-expensify Thanks for giving update. |
Thanks all, and appreciate you applying via Upwork - makes it a lot easier! Assigned: April 14th 8:18pm |
|
@conorpendergrast Received Thank you. |
@conorpendergrast |
@conorpendergrast Accepted Thanks. |
All paid now, thanks! |
Friendly ping @mollfpr on completing: #17424 (comment) |
@aldo-expensify Sorry I miss this; I'll complete the checklist today 🙏 |
This issue has existed since the first implementation of the attachment button inside the composer #399. Then it got refactored here #13645, where it's not part of the button anymore. So I don't think any of that PR is causing the bug, but now we see it as unsuitable.
The checklist is good for now! |
For the regression test, I'll propose to have it under Compose box - Text Input. At Enter 3+ lines of text, and select/highlight the text, we can add Verify that the border after the action button is extended accordingly. 👍 or 👎? |
That sounds perfect to me ^ |
Sounds good to me too - I'll create that regression test |
Regression test created: https://github.com/Expensify/Expensify/issues/281076 Closing this out! |
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:
Line Should extend along with text box size
Actual Result:
Line is not extending along with text box size
Workaround:
N/A - minimal impact
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.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
Screen.Recording.2023-04-13.at.2.41.22.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @corange-lab
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681377556974939
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: