From 412d750b6a2dfbccbfffe18e25434bfafeb3f362 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Tue, 30 May 2023 14:41:29 +0530 Subject: [PATCH] feat: auditlogs design refactor cw1764 (#7181) * chore: refactor auditlogs design * chore: refactor aduit log text * chore: fix 60% width for activity column * chore: improve log text formatting * Apply suggestions from code review Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> * feat: show agent names if available in auditlogs * chore: add sign_out * Apply suggestions from code review Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * chore: handle custom user actions --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Muhsin Keloth Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> --- .../dashboard/i18n/locale/en/auditLogs.json | 15 +++- .../dashboard/settings/auditlogs/Index.vue | 83 +++++++++++++++---- 2 files changed, 78 insertions(+), 20 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/auditLogs.json b/app/javascript/dashboard/i18n/locale/en/auditLogs.json index e288e2959..a2bb40135 100644 --- a/app/javascript/dashboard/i18n/locale/en/auditLogs.json +++ b/app/javascript/dashboard/i18n/locale/en/auditLogs.json @@ -10,15 +10,22 @@ "TITLE": "Manage Audit Logs", "DESC": "Audit Logs are trails for events and actions in a Chatwoot System.", "TABLE_HEADER": [ - "User", - "Action", - "IP Address", - "Time" + "Activity", + "Time", + "IP Address" ] }, "API": { "SUCCESS_MESSAGE": "AuditLogs retrieved successfully", "ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later" + }, + "ACTION": { + "ADD": "created", + "EDIT": "updated", + "DELETE": "deleted", + "SIGN_IN": "signed in", + "SIGN_OUT": "signed out", + "SYSTEM": "System" } } } diff --git a/app/javascript/dashboard/routes/dashboard/settings/auditlogs/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/auditlogs/Index.vue index 63856b6d8..f11bbb6f4 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/auditlogs/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/auditlogs/Index.vue @@ -1,8 +1,8 @@