-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD #15598] Make "save changes" and "cancel" buttons visible when editing comment #16601
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
Comments
Current assignee @puneetlath is eligible for the Bug assigner, not assigning anyone new. |
Bug0 Triage Checklist (Main S/O)
|
Absolutely! |
Taking a look |
Job added to Upwork: https://www.upwork.com/jobs/~01c04802076c08f73f |
Current assignee @eVoloshchak is eligible for the Internal assigner, not assigning anyone new. |
I am exploring the use of ViewPort and scrollToIndex along with the viewOffset to ensure that the list item is centered as much as possible within the list. |
I am exploring the onFocus event from the input element to retrieve viewport data and determine whether the input element might be covered by the keyboard. If this is the case, I plan to shift the FlatList element so that the input element has more visibility, along with the buttons. |
@puneetlath, @gedu, @eVoloshchak Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Chatting internally a proposal |
ProposalPlease restate the problem that we are trying to solve in this issue. What is the root cause of that problem? What changes do you think we should make in order to solve the problem? What alternative solutions did you explore? (Optional) |
@gedu I'm not 100% following. I have some follow-up questions.
Would you mind explaining this? What is not exact about it?
What are the multiple edit modes? I'm not familiar. I thought there is only one way to edit a message.
I'm having a hard time imagining how this would look. Would there just be blank space below the message being edited if there are no messages after it?
That's interesting. However, I notice that they have different behavior on mobile vs desktop. I think we'd prefer to have the behavior consistent across platforms if possible. |
Sorry for the vague explanation earlier. I'm not entirely sure if react-native-web has limitations, but I've noticed that some functions from the list aren't working as expected. For example, when I use scrollToIndex to go to index 35, it doesn't take me there. The same issue occurs with scrollToOffset, which misses by a couple of pixels and becomes unpredictable when the keyboard is showing or not. I suspect that the problem lies with the getItemLayout function. Although the code makes sense, I believe that something is not matching with the actual behavior of the app. This issue would require further investigation. I mean this
Ideally, the app should show one or two messages above the edited message. If the edited message is closer to the start of the chat, it should show more items to ensure that the chat is always filled with messages, if possible. If there is no deadline or urgency on this issue, I can give another round of tests on this and chat with the team. |
This feels like the most intuitive approach to me, however that would take away the ability to edit multiple messages in different tabs, since composer is synced between tabs, while the edit message composer isn't |
Yes, no problem. Let's try to find the best solution, even if it takes a little longer. |
@puneetlath, @gedu, @eVoloshchak Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@puneetlath, @gedu, @eVoloshchak Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue, waiting for proposals |
@puneetlath @gedu @eVoloshchak this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Exploring the possibility of using |
Another option was raised here of putting the buttons inside the input, like they are in the regular compose box. Would that solve the problems we're talking about? https://expensify.slack.com/archives/C049HHMV9SM/p1677476774053969 |
I think it will help make the buttons always visible. Should we focus on the scrolling behavior? or that UI change will fix this issue? @puneetlath |
should we talk in that thread about scrolling to the on-edit message? and how should behave when the keyboard shows? because in the last video, the keyboard is always hidden |
Yeah that's a good idea @gedu. Let's bring this up in that thread. |
@puneetlath, @gedu, @eVoloshchak Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue, looks like discussion is still in progress on slack |
@puneetlath @gedu @eVoloshchak this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
Putting on hold as we discussed in Slack until #15598 is done. |
Still on hold. |
Uh oh!
There was an error while loading. Please reload this page.
When you are editing a comment, depending on how you are scrolled, the "save changes" and "cancel" buttons aren't always visible.
This can be true on all platforms, but is especially likely on mobile where the keyboard that comes up can cover the buttons.
Let's update this so that whenever we enter editing mode on a message, the buttons are visible.
@eVoloshchak would you like to C+ this since you were the C+ on this issue where we originally came to this conclusion.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: