-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] mWeb/Chrome - Chat - Edition composer is cutted when editing multiline message near the top of screen #52138
Comments
Triggered auto assignment to @abekkala ( |
@abekkala Huh... This is 4 days overdue. Who can take care of this? |
@abekkala 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Job added to Upwork: https://www.upwork.com/jobs/~021857151760601711832 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
confirmed the composer should not be partially hidden by the header |
@abekkala, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting for proposal |
@abekkala @thesahindia 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! |
@abekkala, @thesahindia Eep! 4 days overdue now. Issues have feelings too... |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abekkala, @thesahindia Still overdue 6 days?! Let's take care of this! |
Edited by proposal-police: This proposal was edited at 2024-11-28 16:03:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The mWeb/Chrome Chat Edition composer is cut off when editing a multiline message near the top of the screen. What is the root cause of that problem?The scroll pushed by soft input keyboard and in some cases it will cut the editor. What changes do you think we should make in order to solve the problem?I think we need to scroll to the edited report action before we perform editing. This way we can ensure that the edited message is near the top of the soft input keyboard In src/pages/home/report/ReportActionItem.tsx modify this use effect to add useEffect(() => {
if (prevDraftMessage !== undefined || draftMessage === undefined) {
return;
}
InteractionManager.runAfterInteractions(() => {
requestAnimationFrame(() => {
reportScrollManager.scrollToIndex(index);
});
})
focusComposerWithDelay(textInputRef.current)(true);
}, [prevDraftMessage, draftMessage]);
Optional:
in useReportScrollManager make /**
* Scroll to the provided index. On non-native implementations we do not want to scroll when we are scrolling because
*/
const scrollToIndex = useCallback(
(index: number, isEditing?: boolean, animated: boolean = true) => {
if (!flatListRef?.current || isEditing) {
return;
}
flatListRef.current.scrollToIndex({index, animated});
},
[flatListRef],
); And use false value in the use effect useEffect(() => {
if (prevDraftMessage !== undefined || draftMessage === undefined) {
return;
}
InteractionManager.runAfterInteractions(() => {
requestAnimationFrame(() => {
reportScrollManager.scrollToIndex(index, false, false);
});
})
focusComposerWithDelay(textInputRef.current)(true);
}, [prevDraftMessage, draftMessage]);
What alternative solutions did you explore? (Optional)We can modify src/pages/home/report/ReportActionItemMessageEdit.tsx onFocus={() => {
setIsFocused(true);
if (textInputRef.current) {
ReportActionComposeFocusManager.editComposerRef.current = textInputRef.current;
}
const shouldScrollOnEdit = canUseTouchScreen() ? isFocused && prevIsFocused === isFocused : true;
InteractionManager.runAfterInteractions(() => {
requestAnimationFrame(() => {
reportScrollManager.scrollToIndex(index, shouldScrollOnEdit );
});
});
The
|
|
@abekkala, @thesahindia 10 days overdue. Is anyone even seeing these? Hello? |
@thesahindia can you take a look at the updated proposal from @wildan-m |
I couldn’t get to it today. I’ll review it first thing when I get to work. |
@wildan-m, it doesn't look good. Screen.Recording.2024-11-28.at.9.15.16.PM.mov |
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@abekkala |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Not overdue |
@abekkala, @ZhenjaHorbach Whoops! This issue is 2 days overdue. Let's get this updated quick! |
waiting for proposals |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Not overdue |
Not overdue |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abekkala, @ZhenjaHorbach Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue @abekkala |
@abekkala, @ZhenjaHorbach Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue |
I'll check with CS and SWM after the new year |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.58-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5184687&group_by=cases:section_id&group_order=asc&group_id=292106
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When trying to edit a multiline message displayed near the top of the screen, the chat should be scrolled up to make the composer fully visible
Actual Result:
When trying to edit a multiline message displayed near the top of the screen, the chat is not scrolled up when the keyboard is opened and the edition composer gets cutted off by the chat header
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6656756_1730911459509.Edition_Box.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @thesahindiaThe text was updated successfully, but these errors were encountered: