-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Chat - Users that are not members of the room are suggested when type "@" #24436
Comments
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Users that are not members of the room are suggested when type "@" What is the root cause of that problem?The mention suggestions are generated in App/src/pages/home/report/ReportActionCompose.js Lines 472 to 478 in da2fbe1
What changes do you think we should make in order to solve the problem?We should update
We could consider implementing similar functionality for other report types. What alternative solutions did you explore? (Optional)Alternatively, we could put the participants at the top of the list, but still include other users. |
Similar root cause #22596 (comment) It was decided to close since it's not a bug @mallenexpensify |
@mallenexpensify Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@mallenexpensify 10 days overdue. Is anyone even seeing these? Hello? |
Current assignee @mallenexpensify is eligible for the NewFeature assigner, not assigning anyone new. |
Thanks @spcheema for the link! |
Yeah sure, thank @mallenexpensify Please keep in your thoughts I was the first one purpose the same solution :) |
I'm OOO this week, will review next week once back |
Dropped in #expensify-open-source Applause reported the above, I updated it from Bug to New Feature. I'd like to move the issue folder since it makes sense to me to that the members of a room should show first in the recommendations (this happens to me a lot in a private room, when I try to tag @drew the top three recommendations are Andrew and none are members of the room) |
Will look into when I have time |
Need to prioritize soon as I think it's a useful feature request |
@mallenexpensify have you figured out where this fits and its priority? |
Good question @youssef-lr , thanks for the ping, I haven't slotted feature requests to project yet. |
Added to #vip-vsb since it doesn't involve money. It's a feature request so it might not get addressed soon. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat members are not displayed first in the mention suggestions list What is the root cause of that problem?This is a feature request. We do not consider the chat members while sorting the mention suggestions:
What changes do you think we should make in order to solve the problem?First, we should pass the Then, we should get the list of the report members (pseudo-code, we should use memo by reportID): const report = ReportUtils.getReport(reportID);
const visibleMemberIDs = ReportUtils.getVisibleMemberIDs(report); Finally, use this const sortedPersonalDetails = lodashSortBy(filteredPersonalDetails, (detail) =>
// Sorting first by being a member, and then – by title
[!visibleMemberIDs.includes(detail?.accountID ?? 0), detail?.displayName || detail?.login],
);
Result (works for rooms and chats):Screen.Recording.2024-03-22.at.20.52.2620.53.mp4What alternative solutions did you explore? (Optional) |
@cubuspl42 @youssef-lr , do you think this feature request can be addressed one-off or should we get more 👀 in #expensify-open-source to make sure any changes that would be made, wouldn't conflict with anything else? |
Looking at the recent proposal, the solution doesn't seem to be very invasive. I'd say we can address this one-off. |
Hi @mallenexpensify @cubuspl42 I did submitted proposal long ago but then issues decided not to proceed with. If we are going ahead then I'll update proposal accordingly. |
Bumping to weekly while we await prioritization and/or a holistic plan. |
I totally think we should do this. Reported it herem as well: https://expensify.slack.com/archives/C049HHMV9SM/p1712147101614789 |
Checking on here |
no action on the above, Will revisit soon. |
Checking for a Search v2 link |
Going to close for now, since I think/hope we'll be addressing this more holistically soon, as part of Search v2. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
5 suggestions should be shown at once inside the mention menu that are members of the room. As more characters are typed, if member of the room contains those characters, they'll always show at top. Any suggestions after/below that can use our existing search logic (because it's intended to be able to mention anyone in a room, we just want to prioritize showing members first)
Actual Result:
Users that are not members of the room are suggested when type "@"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.53.1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Notes/Photos/Videos: Any additional supporting documentation
Bug6161416_Recording__679.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: