Skip to content

created TicketAttachmentsButton.tsx and modified TicketChannelHeader.tsx - #357

Merged
ezraexe merged 4 commits into
mainfrom
attachments-tab-in-support-tickets
Oct 4, 2026
Merged

ezraexe merged 4 commits into
mainfrom
attachments-tab-in-support-tickets

Conversation

@Theerth1

@Theerth1 Theerth1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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

  • [✓] The ticket is mentioned above
  • [✓] The changes fulfill the success criteria of the ticket
  • [✓] The changes were self-reviewed
  • [✓] A review was requested

…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).
@Theerth1 Theerth1 linked an issue Sep 9, 2026 that may be closed by this pull request
@netlify

netlify Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hope-for-haiti ready!

Name Link
🔨 Latest commit 5cc4e3a
🔍 Latest deploy log https://app.netlify.com/projects/hope-for-haiti/deploys/6aab3154ea293a0008e12ee2
😎 Deploy Preview https://deploy-preview-357--hope-for-haiti.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Theerth1
Theerth1 requested a review from ezraexe September 9, 2026 23:24
@ezraexe

ezraexe commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Image referencing the suggestions:

image

Simply for view, can resolve whenever

@ezraexe

ezraexe commented Sep 12, 2026

Copy link
Copy Markdown
Contributor
image

When I reload the website locally, older attachments don't come up until I scroll up. Not 100% sure what the fix is for this, but if you can look into it. Everything else within the suggested should fix the issues in the image above

Theerth1 and others added 3 commits September 15, 2026 22:31
…sly sourced the attachment list from useChannelStateContext()'s

messages and now sourcing from channel.state directly (Stream SDK's Live State)
@netlify

netlify Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hope-for-haiti ready!

Name Link
🔨 Latest commit 0818985
🔍 Latest deploy log https://app.netlify.com/projects/hope-for-haiti/deploys/6ac2ae634631e800099db4f6
😎 Deploy Preview https://deploy-preview-357--hope-for-haiti.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ezraexe
ezraexe merged commit 30a8ac9 into main Oct 4, 2026
5 checks passed
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.

Adding Attachments Feature in Chat

2 participants