Skip to content
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

composer set correct numberOfLines on intitial render #15296

Merged

Conversation

Pujan92
Copy link
Contributor

@Pujan92 Pujan92 commented Feb 20, 2023

Details

Update numberOfLines when first time the Composer TextInput renders on the screen and the initial numberOfLines is 0

Fixed Issues

$ #15024
PROPOSAL: #15024 (comment)

Tests

  1. Open an invalid route(eg. /anything) (Need to test on browser with larger screen)
  2. On NotFound page click on close
  3. Verify the Composer input not gets distorted
  • Verify that no errors appear in the JS console

Offline tests

  1. Open an invalid route(eg. /anything) (Need to test on browser with larger screen)
  2. On NotFound page click on close
  3. Verify the Composer input not gets distorted

QA Steps

  1. Open an invalid route(eg. /anything) (Need to test on browser with larger screen)
  2. On NotFound page click on close
  3. Verify the Composer input not gets distorted
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android / native
    • Android / Chrome
    • iOS / native
    • iOS / Safari
    • MacOS / Chrome / Safari
    • MacOS / Desktop
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
Screen.Recording.2023-02-20.at.6.58.44.PM.mov
Mobile Web - Chrome

mobile (8)

Mobile Web - Safari

mobile (7)

Desktop Screenshot 2023-02-20 at 7 07 28 PM
iOS

Simulator Screen Shot - iPhone 14 - 2023-02-20 at 19 14 45

Android

Screenshot_1676901602

@Pujan92 Pujan92 requested a review from a team as a code owner February 20, 2023 14:02
@melvin-bot melvin-bot bot requested review from marcochavezf and thesahindia and removed request for a team February 20, 2023 14:02
@MelvinBot
Copy link

@marcochavezf @thesahindia One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@@ -356,6 +366,7 @@ class Composer extends React.Component {
selection={this.state.selection}
onChange={this.shouldCallUpdateNumberOfLines}
onSelectionChange={this.onSelectionChange}
onLayout={() => this.updateNumberOfLinesOnLayoutChange()}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bind updateNumberOfLinesOnLayoutChange in constructor

Suggested change
onLayout={() => this.updateNumberOfLinesOnLayoutChange()}
onLayout={this.updateNumberOfLinesOnLayoutChange}

@thesahindia
Copy link
Member

Hey @marcochavezf just wanna know if the final result looks fine. The composer shakes a little when repro this issue with some different steps (forgot to confirm earlier)

Steps I taken :-

  1. Navigate to settings
  2. Press ⬅️ button
  3. Press ➡️ button
Screen.Recording.2023-02-21.at.1.30.31.AM.mov

The video of the final result after following the steps listed in the OP

Screen.Recording.2023-02-21.at.1.31.35.AM.mov

@marcochavezf
Copy link
Contributor

Oh interesting, it looks like a bug, do we know why the composer shakes? Is that still happening after applying the solution?

@thesahindia
Copy link
Member

Is that still happening after applying the solution?

Copy pasting @Pujan92's comment here -

On invalid route we are showing the 404(Hmm... it's not here) page but ReportScreen & ReportFooter gets mounted in the back and due to that TextArea scrollHeight 0 will be passed here.

const numberOfLines = getNumberOfLines(this.props.maxLines, lineHeight, paddingTopAndBottom, this.textInput.scrollHeight);

This leades to calculate numberOfLines to 0 and setting that will be overwritten by the browser textArea with the default rows which is 2.

The root cause is same as above when we follow the steps I provided. The composer moves a little because we are updating the numberOfLines at onLayout the height change is visible. I am not sure if there is another way to fix this. I think it's fine because the height change is only visible when we follow the steps mentioned in this comment and it's unlikely that a user will follow those steps thoughts @marcochavezf ?

@Pujan92 Pujan92 force-pushed the fix/compose-box-onlayout-fix-15024 branch from 0040b2a to 8442a94 Compare February 21, 2023 13:43
@Pujan92
Copy link
Contributor Author

Pujan92 commented Feb 21, 2023

@thesahindia with your provided scenario I am seeing the rows issue after I did the latest commit with function bind, in the last(Press ➡️ button) step it seems the scrollHeight becoming the 0. Didn't able to find the root cause for it yet but might be calculation gets executed when it still needs to render on the screen(as in the last step ReportScreen gets rerendered).

@@ -128,6 +128,7 @@ class Composer extends React.Component {
this.handleWheel = this.handleWheel.bind(this);
this.putSelectionInClipboard = this.putSelectionInClipboard.bind(this);
this.shouldCallUpdateNumberOfLines = this.shouldCallUpdateNumberOfLines.bind(this);
this.updateNumberOfLinesOnLayoutChange = this.updateNumberOfLinesOnLayoutChange(this);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.updateNumberOfLinesOnLayoutChange = this.updateNumberOfLinesOnLayoutChange(this);
this.updateNumberOfLinesOnLayoutChange = this.updateNumberOfLinesOnLayoutChange.bind(this);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, how I forgot it. It is working now @thesahindia , updated.

@thesahindia
Copy link
Member

@thesahindia with your provided scenario I am seeing the rows issue after I did the latest commit with function bind

@Pujan92, you didn't bind the function correctly. I have suggested the change here

@Pujan92 Pujan92 requested review from thesahindia and removed request for marcochavezf February 21, 2023 23:16
@thesahindia
Copy link
Member

@marcochavezf, any thoughts on #15296 (comment)?

@marcochavezf marcochavezf self-requested a review February 22, 2023 16:53
@marcochavezf
Copy link
Contributor

marcochavezf commented Feb 22, 2023

Yeah, since the scrollHeight will be 0 because the element is not mounted yet, I think we can always return at least 1 for the numberOfLines here:

- const numberOfLines = getNumberOfLines(this.props.maxLines, lineHeight, paddingTopAndBottom, this.textInput.scrollHeight);
+ const numberOfLines = Math.max(getNumberOfLines(this.props.maxLines, lineHeight, paddingTopAndBottom, this.textInput.scrollHeight), 1);

And with that, we won't require the function shouldCallUpdateNumberOfLines.

@Pujan92 could you please try that approach?

@thesahindia
Copy link
Member

@marcochavezf, there is a problem with that solution. Even when composer has multiline text we will be changing the numberOfLines to 1

Screen.Recording.2023-02-22.at.11.18.43.PM.mov

@marcochavezf
Copy link
Contributor

marcochavezf commented Feb 23, 2023

@marcochavezf, there is a problem with that solution. Even when composer has multiline text we will be changing the numberOfLines to 1

Oh interesting, what if we use the last numberOfLines as the min value (instead of 1)?

@Pujan92
Copy link
Contributor Author

Pujan92 commented Feb 24, 2023

Oh interesting, what if we use the last numberOfLines as the min value (instead of 1)?

@marcochavezf that also won't work as this happens for the renders and the rerenders and due to scrollHeight 0 first and last numberOfLines might be 0.

@thesahindia
Copy link
Member

@marcochavezf, thoughts^?

@marcochavezf
Copy link
Contributor

that also won't work as this happens for the renders and the rerenders and due to scrollHeight 0 first and last numberOfLines might be 0.

Ah I mean if the text is persisted somehow here between renders I think we can also persist the numberOfLines somewhere to then use it as a min value.

@thesahindia
Copy link
Member

I think we can also persist the numberOfLines somewhere to then use it as a min value.

Makes sense!

cc: @Pujan92

@Pujan92
Copy link
Contributor Author

Pujan92 commented Mar 2, 2023

@marcochavezf @thesahindia We are persisting numberOfLines in the state here, but I think as we are operating through the browser buttons for this scenario the component gets re-instantiated which reset the state and makes the numberOfLines back to 1.

@thesahindia
Copy link
Member

I think we can also persist the numberOfLines somewhere to then use it as a min value.

@Pujan92, we are saving the draft message locally. Can you try doing the same for numberOfLines and try using it to solve the issue?

@Pujan92
Copy link
Contributor Author

Pujan92 commented Mar 2, 2023

I think we can also persist the numberOfLines somewhere to then use it as a min value.

@Pujan92, we are saving the draft message locally. Can you try doing the same for numberOfLines and try using it to solve the issue?

@thesahindia Same will be happens to edit message also, won't it increase the keys tremendously in Onyx if we consider every edit comments too?

Screen.Recording.2023-03-02.at.10.05.03.PM.mov

I tried for report composer with REPORT_DRAFT_COMMENT_NUMBER_OF_LINES: 'reportDraftCommentNumberOfLines_' and it seems to be working. Can we think of separate PR for this where we are saving the lines in the local and passing as a prop?

@thesahindia
Copy link
Member

@thesahindia Same will be happens to edit message also, won't it increase the keys tremendously in Onyx if we consider every edit comments too?

I think that's fine?

Can we think of separate PR for this where we are saving the lines in the local and passing as a prop?

We are thinking to store numberOfLines at ONYX to fix the current issue in a more better way so I think it needs to be done in this PR. It's not out of scope.

cc: @marcochavezf

@Pujan92 Pujan92 force-pushed the fix/compose-box-onlayout-fix-15024 branch from 1358dfd to 7949302 Compare March 3, 2023 12:09
@thesahindia
Copy link
Member

Sorry for the delay (had to go out)

@Pujan92, it looks like changing initWithStoredValues to false will cause an issue.

Screen.Recording.2023-03-07.at.11.46.29.PM.mov

@marcochavezf
Copy link
Contributor

it looks like changing initWithStoredValues to false will cause an issue.

I think using the initWithStoredValues: false is fine for this case. To solve the issue with the other input, I think we can create another Onyx key for the edited input, something like REPORT_DRAFT_EDIT_COMMENT_NUMBER_OF_LINES

@Pujan92
Copy link
Contributor Author

Pujan92 commented Mar 8, 2023

It seems initWithStoredValues: false won't work here(for invalid route case) bcoz it will not give the onyx value initially and due to that for an invalid route in the backside we are mounting the Report which will set the numberOfLines 1(default) for this edit input.
@marcochavezf we do have a different pattern for the edited input onyx key so I think another key won't be the solution for it.

@Pujan92
Copy link
Contributor Author

Pujan92 commented Mar 8, 2023

I don't know how to proceed now as I am seeing only an option to delay the focus of the input now, the delay is due to the numberOfLines fetching from onyx to render the composer.

@thesahindia
Copy link
Member

I don't know how to proceed now as I am seeing only an option to delay the focus of the input now, the delay is due to the numberOfLines fetching from onyx to render the composer.

I would prefer not using the delay if we can but not sure what else we can do here.

@thesahindia
Copy link
Member

@marcochavezf, do you have any other ideas?

@marcochavezf
Copy link
Contributor

Yeah, given that the issue here is an extreme edge case, we should proceed with the best solution so far 👍🏽

@thesahindia
Copy link
Member

Yeah, given that the issue #15296 (comment) is an extreme edge case, we should proceed with the best solution so far 👍🏽

@marcochavezf, I don't feel good leaving this bug for edit composer while we are fixing the same bug for the main composer. I think we should fix it. Maybe we should open a new issue for edit composer or maybe we should just move to the original solution where we had this minor issue -

Hey @marcochavezf just wanna know if the final result looks fine. The composer shakes a little when repro this issue with some different steps (forgot to confirm earlier)

Steps I taken :-

  1. Navigate to settings
  2. Press ⬅️ button
  3. Press ➡️ button
Screen.Recording.2023-02-21.at.1.30.31.AM.mov

@thesahindia
Copy link
Member

@Pujan92, please resolve the conflicts.

@Pujan92
Copy link
Contributor Author

Pujan92 commented Mar 14, 2023

@Pujan92, please resolve the conflicts.

@thesahindia resolved.

@thesahindia
Copy link
Member

Waiting for @marcochavezf thoughts on #15296 (comment) before proceeding with the testing/review.

@marcochavezf
Copy link
Contributor

@marcochavezf, I don't feel good leaving this bug for edit composer while we are fixing the same bug for the main composer. I think we should fix it. Maybe we should open a new #15296 (comment) for edit composer or maybe we should just move to the original solution where we had this minor issue -

Hi @thesahindia, yeah I agree that we should fix all bugs completely, but given that this was an edge case presented during the PR I think the current solution is ok to continue forward.

Regarding the solution, I think the solution in this video is better than this one, since from a user perspective the jump looks a bit weirdest than having an edit composer presented in one line (which I think that's not super bad), also seems that @Pujan92 already coded the solution for the jump animation in this PR, no?

@Pujan92
Copy link
Contributor Author

Pujan92 commented Mar 17, 2023

since from a user perspective the jump looks a bit weirdest than having an edit composer presented in one line (which I think that's not super bad), also seems that @Pujan92 already coded the solution for the jump animation in this PR, no?

Yes, as we are maintaining the numberOfLines within onyx in this PR, that shake issue of the report composer gets resolved for back and forth scenraio.

@@ -823,6 +835,8 @@ class ReportActionCompose extends React.Component {
setIsFullComposerAvailable={this.setIsFullComposerAvailable}
isComposerFullSize={this.props.isComposerFullSize}
value={this.state.value}
numberOfLines={this.props.numberOfLines}
onNumberOfLinesChange={numberOfLines => this.updateNumberOfLines(numberOfLines)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bind updateNumberOfLines

@@ -273,6 +287,8 @@ class ReportActionItemMessageEdit extends React.Component {
}}
selection={this.state.selection}
onSelectionChange={this.onSelectionChange}
numberOfLines={this.props.numberOfLines}
onNumberOfLinesChange={numberOfLines => this.updateNumberOfLines(numberOfLines)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@@ -334,11 +343,13 @@ class Composer extends React.Component {
const lineHeight = parseInt(computedStyle.lineHeight, 10) || 20;
const paddingTopAndBottom = parseInt(computedStyle.paddingBottom, 10)
+ parseInt(computedStyle.paddingTop, 10);
const numberOfLines = getNumberOfLines(this.props.maxLines, lineHeight, paddingTopAndBottom, this.textInput.scrollHeight);
const computedNumberOfLines = getNumberOfLines(this.props.maxLines, lineHeight, paddingTopAndBottom, this.textInput.scrollHeight);
const numberOfLines = computedNumberOfLines === 0 ? Math.max(this.props.numberOfLines, 1) : computedNumberOfLines;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need Math.max

@@ -116,7 +124,7 @@ class Composer extends React.Component {
: `${props.value || ''}`;

this.state = {
numberOfLines: 1,
numberOfLines: props.numberOfLines || 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe only using props.numberOfLines will do the job? We are already using 1 for numberOfLines in default props.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks.

@thesahindia
Copy link
Member

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified tests pass on all platforms & I tested again on:
    • Android / native
    • Android / Chrome
    • iOS / native
    • iOS / Safari
    • MacOS / Chrome / Safari
    • MacOS / Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
Screen.Recording.2023-03-24.at.1.25.59.AM.mov
Mobile Web - Chrome Screenshot 2023-03-24 at 1 48 11 AM
Mobile Web - Safari Screenshot 2023-03-24 at 1 41 22 AM
Desktop Screenshot 2023-03-24 at 1 29 57 AM
iOS Screenshot 2023-03-24 at 1 38 23 AM
Android Screenshot 2023-03-24 at 1 44 39 AM

Copy link
Member

@thesahindia thesahindia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

cc: @marcochavezf

Copy link
Contributor

@marcochavezf marcochavezf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks guys!

@marcochavezf marcochavezf merged commit 773e0dd into Expensify:main Mar 27, 2023
@OSBotify
Copy link
Contributor

🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.2.90-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.90-7 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@s77rt
Copy link
Contributor

s77rt commented Apr 26, 2023

This PR caused a regression #16931. The use of withOnyx on numberOfLines lead to a partially synced ReportActionItemMessageEdit this caused bugs when the component is rendered by two tabs. We should have synced both numberOfLines and draftMessage or none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants