-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2024-04-25] [$250] Group chat - User can proceed without Start group button via CMD+Enter shortcut #39323
Comments
Triggered auto assignment to @blimpich ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@blimpich 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 |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.User can proceed without Start group button via CMD+Enter shortcut What is the root cause of that problem?There's no check for minimum number of participants in createGroup method. We are removing the confirm button but shortcut can still be used to continue. App/src/pages/NewChatConfirmPage.tsx Lines 99 to 105 in 14ff944
What changes do you think we should make in order to solve the problem?Add the below check to ensure there are at least 2 users (though it's not technically a group with 2 users, it's a DM which is going to be handled by this proposal).
The above code is tested. |
ProposalPlease re-state the problem that we are trying to solve in this issue.user can create a group chat when with no users when clicking on What is the root cause of that problem?The issue occurs because, within the App/src/components/SelectionList/BaseSelectionList.tsx Lines 458 to 473 in 3cf22d1
What changes do you think we should make in order to solve the problem?To resolve this inconsistency, we should align keyboard actions with the UI's state by deactivating the keyboard shortcut when the Confirm button is hidden.
if (onConfirm && showConfirmButton) { or if (onConfirm) {
if (!showConfirmButton) {
return;
}
onConfirm(e, focusedOption);
return;
} alternatively:
isActive: !disableKeyboardShortcuts && isFocused && !!showConfirmButton === !!onConfirm, |
this probably due to the new group chats PR #37458. Not big enough of an issue to revert, so lets just open this to contributors. |
Job added to Upwork: https://www.upwork.com/jobs/~013017903b692fbc8f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Upwork job price has been updated to $250 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Use can create a group even when only 1 participant exists What is the root cause of that problem?For the shortcut App/src/components/SelectionList/BaseSelectionList.tsx Lines 459 to 464 in 99cc0b6
But here we don't have a check which checks if What changes do you think we should make in order to solve the problem?Add a check inside App/src/pages/NewChatConfirmPage.tsx Lines 130 to 135 in 14ff944
So in /** Calls confirm action when pressing CTRL (CMD) + Enter */
useKeyboardShortcut(
CONST.KEYBOARD_SHORTCUTS.CTRL_ENTER,
(e) => {
const focusedOption = flattenedSections.allOptions[focusedIndex];
if(!showConfirmButton){
return;
} This way we make sure that we make use of the existing prop and not cause any additional regression as What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state 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?
it will violate the above rule "make sure we only allow to call
it can lead to regression because with other page that uses
What alternative solutions did you explore? (Optional)
|
Thanks for the proposals everyone! I agree with the analysis in @nkdengineer's proposal and their solution seems good. Taking into account separation of concern, it doesn't really makes sense for 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Correct i agree, i didn't notice this case. sometimes we pass the |
guessing i got assigned here b/c Ben is now OOO, going to remove him. |
Triggered auto assignment to @anmurali ( |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer You have been assigned to this job! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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 2024-04-25. 🎊 For reference, here are some details about the assignees on this 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:
|
Not due for another couple of days but @nkdengineer - you can accept the offer here. |
Regression Test Proposal
Do we agree 👍 or 👎 |
@bondydaa, @anmurali, @jjcoffee, @nkdengineer Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Paid, added regression test. |
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: 1.4.58-4
Reproducible in staging?: Y
Reproducible in production?: N
**If this was caught during regression testing, add the test name, ID and link from TestRail:**N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
User will not be able to proceed with CMD+Enter
Actual Result:
User is able to proceed with CMD+Enter when there is no Start group button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6432490_1711793679354.20240330_180951.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: