Repository navigation
created TicketAttachmentsButton.tsx and modified TicketChannelHeader.tsx - #357
Merged
Merged
Conversation
…tsxAdds an Attachments button next to the Open/Closed status pill in support ticket chat, listing all non-deleted message attachments with thumbnails/filenames and links to open them. Frontend-only, sourced from Stream's existing message data (#354).
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Contributor
…sly sourced the attachment list from useChannelStateContext()'s messages and now sourcing from channel.state directly (Stream SDK's Live State)
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.


Adds an Attachments button next to the Open/Closed status pill in support ticket chat, listing all non-deleted message attachments with thumbnails/filenames and links to open them.
Description
Resolves ticket number: #354
Explain what your code changes:
Adds an "Attachments" button next to the Open/Closed status pill in the support ticket chat header. Clicking it opens a small popup listing every file shared in that ticket — thumbnail for images, generic file icon otherwise, filename, and a link to open it. It's frontend-only, just reading attachments off the messages Stream Chat already gives us, and it filters out anything from a deleted message so the list stays accurate.
List the steps you took to test your code:
Ran tsc and eslint clean and then did a full production build. Manually tested in the browser: I created a test ticket, sent both an image and a regular file as attachments, confirmed the button shows up and the panel lists both correctly with working links, then deleted one of the messages and confirmed its attachment dropped out of the list without a refresh.
Checklist