## Description Adds a backend endpoint that powers an account-wide calls dashboard, letting users list and filter all calls in the account. ## Linear Ticket - https://linear.app/chatwoot/issue/UPM-28/voice-call-dashboard-view ## Type of change - [ ] New feature (non-breaking change which adds functionality) ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
12 lines
248 B
Ruby
12 lines
248 B
Ruby
json.meta do
|
|
json.count @calls_count
|
|
json.current_page @calls.current_page
|
|
json.total_pages @calls.total_pages
|
|
end
|
|
|
|
json.payload do
|
|
json.array! @calls do |call|
|
|
json.partial! 'api/v1/models/call', formats: [:json], call: call
|
|
end
|
|
end
|