Skip to content
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

Use zero-api to search for mentionable users in a channel #338

Merged
merged 6 commits into from
Feb 1, 2023

Conversation

dalefukami
Copy link
Contributor

What does this do?

This searches for mentionable users via the api endpoint rather than using the user list cached on the front end.

Why are we making this change?

New endpoint for mentions search

An endpoint has been created specifically for searching for mentionable users in a channel. Use it to be consistent with zero-web and other projects.

How do I test this?

In a channel, try to @ mention someone. Ensure the suggestion box contains users you would expect to see.

Key decisions and Risk Assessment:

Things to consider:

  1. How will this affect security? N/A
  2. How will this affect performance? Will be slower than the stubbed version we have now.
  3. Does this change any APIs? No

@dalefukami dalefukami requested a review from a team January 31, 2023 20:41
src/store/channels/api.ts Outdated Show resolved Hide resolved
src/platform-apps/channels/util/api.ts Show resolved Hide resolved
src/platform-apps/channels/message.tsx Outdated Show resolved Hide resolved
src/platform-apps/channels/message.tsx Outdated Show resolved Hide resolved
src/platform-apps/channels/channel-view.tsx Show resolved Hide resolved
src/platform-apps/channels/channel-view.tsx Show resolved Hide resolved
@dalefukami dalefukami merged commit d6b9246 into main Feb 1, 2023
@dalefukami dalefukami deleted the channel-mention-search/zos-74 branch February 1, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants