ivy: dashboard/v1
title: Support overview
description: Tickets by status, channel and day, and how quickly they're answered. Replace templates/data/tickets.json with your own export, or have an automation write it.

sources:
  tickets:
    file: templates/data/tickets.json
  waiting:
    file: templates/data/tickets.json
    filter:
      - { column: status, op: in, value: [open, pending] }
    sort:
      - { column: opened }
  by_day:
    file: templates/data/tickets.json
    group_by: [opened]
    aggregate:
      tickets: count
      first_reply: { avg: first_reply_hours }
    sort:
      - { column: opened }
  by_channel:
    file: templates/data/tickets.json
    group_by: [channel]
    aggregate:
      tickets: count

widgets:
  - type: kpi
    title: Tickets
    source: tickets
    value: id
    aggregate: count
  - type: kpi
    title: Waiting for an answer
    source: waiting
    value: id
    aggregate: count
  - type: kpi
    title: Average first reply
    source: tickets
    value: first_reply_hours
    aggregate: avg
    format: { decimals: 1, unit: h }
  - type: kpi
    title: Slowest first reply
    source: tickets
    value: first_reply_hours
    aggregate: max
    format: { decimals: 1, unit: h }
  - type: bar
    title: Tickets by day
    width: 8
    source: by_day
    x: opened
    y: [tickets]
    format: { date: day }
  - type: pie
    title: Tickets by channel
    source: by_channel
    label: channel
    value: tickets
  - type: area
    title: Average first reply by day
    width: 12
    source: by_day
    x: opened
    y: [first_reply]
    format: { decimals: 1, unit: h, date: day }
  - type: table
    title: Waiting tickets
    source: waiting
    columns:
      - { column: id, label: Ticket }
      - { column: opened, format: { date: day } }
      - { column: channel }
      - { column: priority }
      - { column: status }
    sort: { column: opened }
