Open lanitochka17 opened 1 day ago
Triggered auto assignment to @VictoriaExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@VictoriaExpensify FYI 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
Web - Chat - When editing last message, edition composer is cutted in half by main composer
We are currently using the built-in View component from React Native here. https://github.com/Expensify/App/blob/b9f8b86ef5c3034c1387fa6c636b071bdaf3092e/src/pages/home/report/ReportActionItemMessageEdit.tsx#L499-L552
We should use ScrollView to ensure proper scrolling behaviour. Sudo Code:
<ScrollView style={[StyleUtils.getContainerComposeStyles(), styles.textInputComposeBorder]}>
//.......
</ScrollView>
When the user edits the last message on a chat with long history, the edition composer, gets cutted in half by the main compose box
We already had the logic to focus on the edit composer in
Even though, we use focusComposerWithDelay
within shouldDelay: true
but it just check the ComposerFocusManager.isReadyToFocus()
and isWindowReadyToFocus()
When the input is focus, the view automatically scrolls to that input, but we need to wait for composer edit animation end before focusing on the input. We did the same in many places, especially in useAutoFocusInput
hook
Update this line
to
setTimeout(()=>{
focusComposerWithDelay(textInputRef.current)(true);
},CONST.ANIMATED_TRANSITION)
We can delay focus in focusComposerWithDelay
if shouldDelay is true
https://github.com/user-attachments/assets/636b293e-e553-4b62-8c6e-9719d445ba8c
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.40-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: https://expensify.testrail.io/index.php?/tests/view/5006320&group_by=cases:section_id&group_order=asc&group_id=292106 Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When editing the last sent message on a chat, the edition composer, should be fully visible
Actual Result:
When the user edits the last message on a chat with long history, the edition composer, gets cutted in half by the main compose box
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/cc504784-8b07-4252-bd57-74e24c994df5
View all open jobs on GitHub