Skip to content

Conversation

@KroZen-Dev
Copy link

@KroZen-Dev KroZen-Dev commented Jan 11, 2026

🚀 What does this PR do?
This Pull Request introduces automatic synchronization for ticket chat messages. Previously, users and administrators had to manually refresh the entire page to check for new replies. Now, the chat history updates automatically in the background every 30 seconds.

✨ Key Features:
Auto-Refresh: The ticket chat history is fetched and updated every 30 seconds via AJAX.
Improved UX: No more full page reloads required to see new messages.
Status Updates: Ticket status (e.g., Open, Answered, Closed) also updates dynamically without refreshing.

🛠 Technical Changes:
Added getComments method to TicketsController (User & Admin) to return JSON data.

Updated ticket/show.blade.php and admin/ticket/show.blade.php with JavaScript for polling.
Updated routes/web.php to include new API endpoints.

🎯 Benefits:
This improvement significantly speeds up communication between support staff and users, making the support process more fluid and responsive.

@MrWeez MrWeez requested review from 1day2die and Ferks-FK January 11, 2026 16:15
@MrWeez MrWeez added the Low Priority Can wait, not urgent. Handle when possible label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Low Priority Can wait, not urgent. Handle when possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants