From 2b0c154bc532ee8e25779b3b652a20e31d8b153d Mon Sep 17 00:00:00 2001 From: Sojan Date: Wed, 7 May 2025 03:47:34 -0700 Subject: [PATCH] chore: dummy reports page --- .../dashboard/i18n/locale/en/report.json | 20 ++ .../settings/reports/InboxReportsShow.vue | 25 +- .../settings/reports/VoiceInboxReports.vue | 336 ++++++++++++++++++ .../settings/reports/VoiceReportsIndex.vue | 60 ++++ 4 files changed, 440 insertions(+), 1 deletion(-) create mode 100644 app/javascript/dashboard/routes/dashboard/settings/reports/VoiceInboxReports.vue create mode 100644 app/javascript/dashboard/routes/dashboard/settings/reports/VoiceReportsIndex.vue diff --git a/app/javascript/dashboard/i18n/locale/en/report.json b/app/javascript/dashboard/i18n/locale/en/report.json index 294ca2e7b..a915e1578 100644 --- a/app/javascript/dashboard/i18n/locale/en/report.json +++ b/app/javascript/dashboard/i18n/locale/en/report.json @@ -260,11 +260,31 @@ }, "INBOX_REPORTS": { "HEADER": "Inbox Overview", + "VOICE_HEADER": "Voice Channel Overview", "DESCRIPTION": "Quickly view your inbox performance with key metrics like conversations, response times, resolution times, and resolved cases—all in one place. Click an inbox name for more details.", + "VOICE_DESCRIPTION": "Track call metrics such as total calls, average duration, waiting times, and more across your voice channels.", "LOADING_CHART": "Loading chart data...", "NO_ENOUGH_DATA": "We've not received enough data points to generate report, Please try again later.", + "NO_VOICE_INBOXES": "No voice channels found", + "CREATE_VOICE_INBOX_PROMPT": "Create a voice channel first to view reports", "DOWNLOAD_INBOX_REPORTS": "Download inbox reports", + "DOWNLOAD_VOICE_REPORTS": "Download voice reports", "FILTER_DROPDOWN_LABEL": "Select Inbox", + "VOICE_METRICS": { + "TOTAL_CALLS": "Total Calls", + "INCOMING_CALLS": "Incoming Calls", + "OUTGOING_CALLS": "Outgoing Calls", + "MISSED_CALLS": "Missed Calls", + "AVG_DURATION": "Average Call Duration", + "AVG_WAITING_TIME": "Average Waiting Time", + "SUCCESS_RATE": "Call Success Rate" + }, + "VOICE_CHARTS": { + "CALLS_BY_TYPE": "Calls by Type", + "CALL_DURATION": "Average Call Duration", + "WAITING_TIME": "Average Waiting Time", + "SUCCESS_RATE": "Call Success Rate" + }, "METRICS": { "CONVERSATIONS": { "NAME": "Conversations", diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue index 06b584aae..feb07bbda 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue @@ -1,17 +1,40 @@