ticket-overview

Information

Folder
src/components/apps/cloud/ticket-overview

Files

Schema
// src/components/apps/cloud/ticket-overview/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: https://finstral.com/apps/cloud/ticket-overview
$def:
  status_tag:
    $anchor: StatusTagSchema
    type: object
    required:
      - status
      - color
    additionalProperties: false
    properties:
      status:
        type: string
      color:
        type: string
  tickets:
    $anchor: TicketSchema
    type: array
    items:
      type: object
      required:
        - subject
        - id
        - name
        - service
        - status_tags
        - date
        - url
      additionalProperties: false
      properties:
        date:
          type: string
        id:
          type: string
        name:
          type: string
        service:
          type: string
        status_tags:
          type: array
          items:
            $ref: '#StatusTagSchema'
        subject:
          type: string
        url:
          type: string
          format: uri-reference
type: object
required:
  - breadcrumb
  - is_employee
additionalProperties: false
properties:
  breadcrumb:
    type: array
    items:
      type: object
      additionalProperties: false
      required:
        - text
      properties:
        text:
          type: string
        url:
          type: string
          format: uri-reference
  completed_tickets:
    $ref: '#TicketSchema'
  is_employee:
    type: boolean
  open_tickets:
    $ref: '#TicketSchema'
  org_name:
    type: string
Mocks
// src/components/apps/cloud/ticket-overview/mocks.yaml

$hidden: true
completed_tickets:
  - subject: Test von Factorial
    id: CompINC-142231
    name: Tiziana Sicurcasa
    service: Contacts
    status_tags:
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Neutral
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Success
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Critical
    date: 26.03.2024
    url: /
  - subject: Richiesta disattivazione
    id: CompINC-142232
    name: Tiziana Sicurcasa
    service: Webmonitor
    status_tags:
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Neutral
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Success
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Critical
    date: 26.03.2024
    url: /
is_employee: false
open_tickets:
  - subject: Test von Factorial
    id: CompINC-142231
    name: Tiziana Sicurcasa
    service: Contacts
    status_tags:
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Neutral
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Success
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Critical
    date: 26.03.2024
    url: /
  - subject: Richiesta disattivazione
    id: CompINC-142232
    name: Tiziana Sicurcasa
    service: Webmonitor
    status_tags:
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Neutral
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Success
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Critical
    date: 26.03.2024
    url: /
  - subject: Anfrage Deaktivierung
    id: CompINC-142233
    name: Tiziana Sicurcasa
    service: Cloud
    status_tags:
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Neutral
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Success
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Critical
    date: 26.03.2024
    url: /
  - subject: Anfrage Änderung Cloud
    id: CompINC-142234
    name: Tiziana Sicurcasa
    service: Composer
    status_tags:
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Neutral
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Success
      - $ref: /apps/cloud/ticket-overview/app-ticket-overview/status-tag#Critical
    date: 26.03.2024
    url: /
org_name: 2SRA SICURCASA SAS di
$variants:
  - $name: Full page
    breadcrumb:
      - text: Dashboard
        url: url
      - text: Ticket Overview
Template
// src/components/apps/cloud/ticket-overview/ticket-overview.twig

{% set template_components_breadcrumb %}
	{% include "@template-components/breadcrumb/breadcrumb.twig" with {
		breadcrumb: breadcrumb
	} only %}
{% endset %}

{% set app_cloud_ticket_overview_app_ticket_overview %}
	{% include "@apps/cloud/ticket-overview/app-ticket-overview/app-ticket-overview.twig" with {
		completed_tickets: completed_tickets,
		is_employee: is_employee,
		open_tickets: open_tickets,
		org_name: org_name,
	} only %}
{% endset %}

{% include "@templates/cloud/cloud.twig" with {
		breadcrumb: template_components_breadcrumb,
		content: app_cloud_ticket_overview_app_ticket_overview,
} only %}

Variants

Full page
Open

ticket_overview.title

ticket_status.title.open

2SRA SICURCASA SAS di
ticket_status.section.title
ticket_table.label_subject ticket_table.label_id ticket_table.label_name ticket_table.label_service ticket_table.label_tags ticket_table.label_date
CompINC-142231
Tiziana Sicurcasa
Contacts
  • 1st Level
  • Abgeschlossen
  • Offen
26.03.2024
CompINC-142232
Tiziana Sicurcasa
Webmonitor
  • 1st Level
  • Abgeschlossen
  • Offen
26.03.2024
CompINC-142233
Tiziana Sicurcasa
Cloud
  • 1st Level
  • Abgeschlossen
  • Offen
26.03.2024
CompINC-142234
Tiziana Sicurcasa
Composer
  • 1st Level
  • Abgeschlossen
  • Offen
26.03.2024

ticket_status.title.closed

ticket_status.section.title
ticket_table.label_subject ticket_table.label_id ticket_table.label_name ticket_table.label_service ticket_table.label_tags ticket_table.label_date
CompINC-142231
Tiziana Sicurcasa
Contacts
  • 1st Level
  • Abgeschlossen
  • Offen
26.03.2024
CompINC-142232
Tiziana Sicurcasa
Webmonitor
  • 1st Level
  • Abgeschlossen
  • Offen
26.03.2024