From 1b8f61df5f284a4510a363bae4bdc445aa13cf65 Mon Sep 17 00:00:00 2001 From: Marco Sadjadi Date: Mon, 25 May 2026 17:36:31 +0200 Subject: [PATCH] fix(admin): make whole support-ticket row clickable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Table-cell Link only wrapped the subject text โ€” clicks on email/status/time cells did nothing, which read as 'cannot open ticket' for the admin. Convert to a flex-grid Link wrapping the entire row, same pattern as the user-side /settings/support list. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/app/admin/support/page.tsx | 78 ++++++++++++++--------------- 1 file changed, 37 insertions(+), 41 deletions(-) diff --git a/apps/web/app/admin/support/page.tsx b/apps/web/app/admin/support/page.tsx index 7903b03..fb51f83 100644 --- a/apps/web/app/admin/support/page.tsx +++ b/apps/web/app/admin/support/page.tsx @@ -45,7 +45,10 @@ export default function AdminSupport() {
- + โ† Admin

Support tickets

@@ -70,7 +73,7 @@ export default function AdminSupport() { {error &&

{error}

} -
+
{rows === null && (
@@ -82,49 +85,42 @@ export default function AdminSupport() {
)} {rows && filtered.length > 0 && ( - - - - - - - - - - - {filtered.map((r) => ( - - - - - - - ))} - -
SubjectFromStatusLast activity
- - {r.ticket.subject} - - - {r.userEmail ?? - (r.ticket.guestEmail - ? `${r.ticket.guestEmail} (guest)` - : 'unknown')} - +
    + {filtered.map((r) => { + const from = r.userEmail + ? `${r.userName ? `${r.userName} ยท ` : ''}${r.userEmail}` + : r.ticket.guestEmail + ? `${r.ticket.guestEmail} (guest)` + : 'unknown'; + return ( +
  • + {/* Whole row is the link โ€” table-style layout via flex + so any pixel inside is clickable, not just the subject. */} + +
    +
    + {r.ticket.subject} +
    +
    + {from} +
    +
    {r.ticket.status.replace('_', ' ')} -
- {new Date(r.ticket.lastMessageAt).toLocaleString()} -
+ + {new Date(r.ticket.lastMessageAt).toLocaleString()} + + + + ); + })} + )}