* 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>
23 lines
685 B
Ruby
23 lines
685 B
Ruby
json.payload do
|
|
json.array! @applied_slas do |applied_sla|
|
|
json.applied_sla applied_sla.push_event_data
|
|
json.conversation do
|
|
conversation = applied_sla.conversation
|
|
json.id conversation.id
|
|
json.contact do
|
|
json.name conversation.contact.name if conversation.contact
|
|
end
|
|
json.labels conversation.cached_label_list
|
|
json.assignee conversation.assignee.push_event_data if conversation.assignee
|
|
end
|
|
json.sla_events applied_sla.sla_events do |sla_event|
|
|
json.partial! 'api/v1/models/sla_event', formats: [:json], sla_event: sla_event
|
|
end
|
|
end
|
|
end
|
|
|
|
json.meta do
|
|
json.count @count
|
|
json.current_page @current_page
|
|
end
|