-
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
[$500] Chat - Three-dot menu is redundant for deleted root message with threads #34992
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01f7369ff9642cdfd4 |
Triggered auto assignment to @laurenreidexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
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.For deleted report actions, a 3-dot menu is visible What is the root cause of that problem?We show the 3-dot menu for any report action on the mini context menu without any detailed control over it: App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx Lines 500 to 504 in 6b9cea1
What changes do you think we should make in order to solve the problem?We decide which elements to show in the bubble, and which - in the expended menu - here: App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx Lines 120 to 126 in f50f9ee
We should cut off the last menu action (which is the 3-dot menu) for the menus with less than or equal to let filteredContextMenuActions = ContextMenuActions.filter((contextAction) =>
contextAction.shouldShow(type, reportAction, isArchivedRoom, betas, anchor, isChronosReport, reportID, isPinnedChat, isUnreadChat, !!isOffline, isMini),
);
if (isMini) {
filteredContextMenuActions = filteredContextMenuActions.length > CONST.MINI_CONTEXT_MENU_MAX_ITEMS
? ([...filteredContextMenuActions.slice(0, CONST.MINI_CONTEXT_MENU_MAX_ITEMS - 1), filteredContextMenuActions.at(-1)] as typeof filteredContextMenuActions)
: filteredContextMenuActions.slice(0, -1);
} Result![]() What alternative solutions did you explore? (Optional)We can simply update the shouldShow: (type, reportAction, isArchivedRoom, betas, anchor, isChronosReport, reportID, isPinnedChat, isUnreadChat, isOffline, isMini) => {
const isDeletedAction = ReportActionsUtils.isDeletedAction(reportAction);
return isMini && !isDeletedAction;
}, |
ProposalPlease re-state the problem that we are trying to solve in this issue.The three dots menu is still displayed for deleted parent message What is the root cause of that problem?We don't have any check to see if we have more options to display in the 3 dots menu, or if all options are already available in the hover menu.
What changes do you think we should make in order to solve the problem?In the 'should show' function, we should add a check to determine if more options are available before displaying the three dots menu.
What alternative solutions did you explore? (Optional) |
ProposalUpdated proposal #34992 (comment) – swapped main and alternative solutions. |
Please re-state the problem that we are trying to solve in this issue. What is the root cause of that problem? Ans : added 3-dot button with these buttons What changes do you think we should make in order to solve the problem? Ans : we will replace 3 dots action with button shown separately and will remove or will hide 3 dots until we are done with what we are expecting. As per guidelines Upworklink: https://www.upwork.com/freelancers/~01094986abb8ef2924 Thanks do contact me on my email mailto:bilal.khursheed617@gmail.com |
📣 @Bilal-Khursheed! 📣
|
@thesahindia bump for review ^^ |
@laurenreidexpensify according to Slack status, @thesahindia is currently out sick. |
I am not sure if it's worth fixing. It doesn't feel like broken. It's an improvement. P.S. I am working a little bit right now so no need to reassign. |
If we wanna fix it we can go with @paultsimura's proposal. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Yes @paultsimura this should be fixed by that |
Alright I'll close this as a dupe for now. Be sure to include testing steps to verify this is also fixed @esh-g |
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: 1.4.30-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
3-dot menu should not appear when the 3-dot menu options are the same as the hover menu
Actual Result:
3-dot menu is present when the 3-dot menu options are the same as the hover menu
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6352419_1706037322794.20240123_224324.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: