* 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>
27 lines
875 B
Plaintext
27 lines
875 B
Plaintext
<% headers = [
|
|
I18n.t('reports.sla_csv.conversation_id'),
|
|
I18n.t('reports.sla_csv.sla_policy_breached'),
|
|
I18n.t('reports.sla_csv.assignee'),
|
|
I18n.t('reports.sla_csv.team'),
|
|
I18n.t('reports.sla_csv.inbox'),
|
|
I18n.t('reports.sla_csv.labels'),
|
|
I18n.t('reports.sla_csv.conversation_link'),
|
|
I18n.t('reports.sla_csv.breached_events')
|
|
] %>
|
|
<%= CSV.generate_line headers %>
|
|
|
|
<% @missed_applied_slas.each do |sla| %>
|
|
<% missed_events = sla.sla_events.map(&:event_type).join(', ') %>
|
|
<% conversation = sla.conversation %>
|
|
<%= CSV.generate_line([
|
|
conversation.display_id,
|
|
sla.sla_policy.name,
|
|
conversation.assignee&.name,
|
|
conversation.team&.name,
|
|
conversation.inbox&.name,
|
|
conversation.cached_label_list,
|
|
app_account_conversation_url(account_id: conversation.account_id, id: conversation.display_id),
|
|
missed_events
|
|
]) %>
|
|
<% end %>
|