Repository navigation
Andrew/Search Chat Tickets By Name or Message Content - #355 - #361
Merged
ezraexe merged 2 commits intoSep 14, 2026
Merged
Conversation
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
Contributor
|
doesn't fully get rid of the issue, but raises the threshold significantly. i think this is fine for now given the current scale. can adjust as we go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Resolves ticket number: #355
Explain what your code changes:
Added channel-list filters, extended to $or so it uses name.$autocomplete instead of just name, also partnerName. Also added new "createdByName" attribute that gets stored at ticket creation, so you can search by the name of the creator. Keep existing members.$in, so between Unresolved/Resolved tabs and partner isolation are maintained.
Add server endpoint that searches requested ticket IDs, and returns matched IDs that get shown in the results. Staff must have support access to use it (GET /api/tickets/search?q=)
Render filter matches title/partner/creator/member_names/last-message locally for the loaded channels, and added a pending text while searching for tickets by message.content. Search placeholder text also updated.
Add createdByName to be scored in createTicketChannel from the session user. Keep in mind that the pre-existing tickets lack this property, so they wont be able to be searched in this way.
List the steps you took to test your code:

Created 2 tickets for same partner (distinct titles+words), ran searches against both Super Admin and partner1, both tabs: ran title, partner-name, creator-name, message-prefix queries: confirmed isolation. Verified that clearing the search restores the full lists, pre-existing tickets without the new creator field still work (despite not being able to be searched that way).
End result:
Checklist