From 874b07f4d732d839d329842b8cb4ebc6c24b9544 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 28 Jan 2026 22:06:50 -0500 Subject: [PATCH] More UI/UX updated to ticket details shrink padding on right cards, update wordings, changed header paddings, made unassigned a clickable badge no longer red, swapped trash cans for times icons, much cleaner overall --- agent/modals/ticket/ticket_add_v2.php | 2 +- agent/modals/ticket/ticket_assign.php | 2 +- agent/ticket.php | 154 +++++++++++--------------- js/app.js | 2 +- 4 files changed, 66 insertions(+), 94 deletions(-) diff --git a/agent/modals/ticket/ticket_add_v2.php b/agent/modals/ticket/ticket_add_v2.php index 6ee2e843..7113b253 100644 --- a/agent/modals/ticket/ticket_add_v2.php +++ b/agent/modals/ticket/ticket_add_v2.php @@ -158,7 +158,7 @@ ob_start(); - + Not Assigned"; + $ticket_assigned_to_display = "Unassigned"; } else { $ticket_assigned_to_display = nullable_htmlentities($row['user_name']); } @@ -210,30 +210,6 @@ if (isset($_GET['ticket_id'])) { $row = mysqli_fetch_assoc($ticket_total_reply_time); $ticket_total_reply_time = nullable_htmlentities($row['ticket_total_reply_time']); - - // Client Tags - $client_tag_name_display_array = array(); - $client_tag_id_array = array(); - $sql_client_tags = mysqli_query($mysqli, "SELECT * FROM client_tags LEFT JOIN tags ON client_tags.tag_id = tags.tag_id WHERE client_id = $client_id ORDER BY tag_name ASC"); - while ($row = mysqli_fetch_assoc($sql_client_tags)) { - - $client_tag_id = intval($row['tag_id']); - $client_tag_name = nullable_htmlentities($row['tag_name']); - $client_tag_color = nullable_htmlentities($row['tag_color']); - if (empty($client_tag_color)) { - $client_tag_color = "dark"; - } - $client_tag_icon = nullable_htmlentities($row['tag_icon']); - if (empty($client_tag_icon)) { - $client_tag_icon = "tag"; - } - - $client_tag_id_array[] = $client_tag_id; - $client_tag_name_display_array[] = "$client_tag_name"; - } - $client_tags_display = implode(' ', $client_tag_name_display_array); - - // Get the number of ticket Responses $ticket_responses_sql = mysqli_query($mysqli, "SELECT COUNT(ticket_reply_id) AS ticket_responses FROM ticket_replies WHERE ticket_reply_archived_at IS NULL AND ticket_reply_ticket_id = $ticket_id"); $row = mysqli_fetch_assoc($ticket_responses_sql); @@ -376,7 +352,7 @@ if (isset($_GET['ticket_id'])) { - + @@ -463,13 +439,13 @@ if (isset($_GET['ticket_id'])) {
- Last updated: + Last updated: ($ticket_updated_at_ago)" ?>
- Assigned Agent: + Assigned Agent: @@ -481,6 +457,9 @@ if (isset($_GET['ticket_id'])) {
+
+ +
@@ -539,16 +518,11 @@ if (isset($_GET['ticket_id'])) {
- Tasks Completed - % -
-
/
+
Tasks
+
+
- -
- -
@@ -559,8 +533,8 @@ if (isset($_GET['ticket_id'])) {
-
-
+
+
Description / Comments
@@ -570,7 +544,7 @@ if (isset($_GET['ticket_id'])) {
-
+
-
-
Activity Summary
+
+
Activity Summary
-
+
-
- Created: +
+ Created: + ()
@@ -839,36 +814,36 @@ if (isset($_GET['ticket_id'])) { $ticket_created_by_display = nullable_htmlentities($row['user_name']); ?> -
- Created by: +
+ Created by:
-
- Source: +
+ Source:
-
- Category: +
+ Category:
-
- First Response: +
+ 1st resp:
-
- Total time worked: +
+ Total time:
@@ -883,8 +858,8 @@ if (isset($_GET['ticket_id'])) {
-