feat: Add Reports for teams (#3116)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Fayaz Ahmed
2021-10-06 23:53:51 +05:30
committed by GitHub
parent 3e99088fe3
commit 1c6a539c0a
15 changed files with 240 additions and 59 deletions

View File

@@ -7,6 +7,7 @@ const reports = accountId => ({
'agent_reports',
'label_reports',
'inbox_reports',
'team_reports',
],
menuItems: {
back: {
@@ -31,7 +32,7 @@ const reports = accountId => ({
toStateName: 'csat_reports',
},
agentReports: {
icon: 'ion-ios-people',
icon: 'ion-person-stalker',
label: 'REPORTS_AGENT',
hasSubMenu: false,
toState: frontendURL(`accounts/${accountId}/reports/agent`),
@@ -51,6 +52,13 @@ const reports = accountId => ({
toState: frontendURL(`accounts/${accountId}/reports/inboxes`),
toStateName: 'inbox_reports',
},
teamReports: {
icon: 'ion-ios-people',
label: 'REPORTS_TEAM',
hasSubMenu: false,
toState: frontendURL(`accounts/${accountId}/reports/teams`),
toStateName: 'team_reports',
},
},
});