mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-27 08:33:44 +00:00
* feat: SLA report table * feat: Add SLA popover card * feat: Update popover position * feat: Add loader * Update SLACardLabel.vue * feat: Update column order * chore: fix conditions * Update SLATable.vue * chore: enable reports in ui * chore: Revamp report SLA apis * chore: revert download method * chore: improve the code * Update enterprise/app/views/api/v1/accounts/applied_slas/download.csv.erb Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * chore: style fixes * chore: fix specs * feat: Add number of conversations * chore: review comments * fix: translation * Update app/javascript/dashboard/i18n/locale/en/report.json Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * Update app/javascript/dashboard/i18n/locale/en/report.json Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * Update app/javascript/dashboard/i18n/locale/en/report.json Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * Update SLAReportItem.vue * Update report.json * Update package.json * chore: review comments * chore: remove unused translation * feat: Add TableHeaderCell component * chore: more review fixes * Update app/javascript/dashboard/components/widgets/TableHeaderCell.vue Co-authored-by: Shivam Mishra <scm.mymail@gmail.com> * Update TableHeaderCell.vue --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
87 lines
2.3 KiB
JavaScript
87 lines
2.3 KiB
JavaScript
import { FEATURE_FLAGS } from '../../../../featureFlags';
|
|
import { frontendURL } from '../../../../helper/URLHelper';
|
|
|
|
const reports = accountId => ({
|
|
parentNav: 'reports',
|
|
routes: [
|
|
'account_overview_reports',
|
|
'conversation_reports',
|
|
'csat_reports',
|
|
'bot_reports',
|
|
'agent_reports',
|
|
'label_reports',
|
|
'inbox_reports',
|
|
'team_reports',
|
|
'sla_reports',
|
|
],
|
|
menuItems: [
|
|
{
|
|
icon: 'arrow-trending-lines',
|
|
label: 'REPORTS_OVERVIEW',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/overview`),
|
|
toStateName: 'account_overview_reports',
|
|
},
|
|
{
|
|
icon: 'chat',
|
|
label: 'REPORTS_CONVERSATION',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/conversation`),
|
|
toStateName: 'conversation_reports',
|
|
},
|
|
{
|
|
icon: 'emoji',
|
|
label: 'CSAT',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/csat`),
|
|
toStateName: 'csat_reports',
|
|
},
|
|
{
|
|
icon: 'bot',
|
|
label: 'REPORTS_BOT',
|
|
hasSubMenu: false,
|
|
featureFlag: FEATURE_FLAGS.RESPONSE_BOT,
|
|
toState: frontendURL(`accounts/${accountId}/reports/bot`),
|
|
toStateName: 'bot_reports',
|
|
},
|
|
{
|
|
icon: 'people',
|
|
label: 'REPORTS_AGENT',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/agent`),
|
|
toStateName: 'agent_reports',
|
|
},
|
|
{
|
|
icon: 'tag',
|
|
label: 'REPORTS_LABEL',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/label`),
|
|
toStateName: 'label_reports',
|
|
},
|
|
{
|
|
icon: 'mail-inbox-all',
|
|
label: 'REPORTS_INBOX',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/inboxes`),
|
|
toStateName: 'inbox_reports',
|
|
},
|
|
{
|
|
icon: 'people-team',
|
|
label: 'REPORTS_TEAM',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports/teams`),
|
|
toStateName: 'team_reports',
|
|
},
|
|
{
|
|
icon: 'document-list-clock',
|
|
label: 'REPORTS_SLA',
|
|
hasSubMenu: false,
|
|
featureFlag: FEATURE_FLAGS.SLA,
|
|
toState: frontendURL(`accounts/${accountId}/reports/sla`),
|
|
toStateName: 'sla_reports',
|
|
},
|
|
],
|
|
});
|
|
|
|
export default reports;
|