{{ $publicHandbookRef := "main" }} {{ .Page.Store.Set "hastableau" true -}} {{- $data := slice }} {{- $dataURL := printf "https://gitlab.com/gitlab-com/content-sites/handbook/-/raw/%s/data/engineering-productivity/space.yml" $publicHandbookRef }} {{- with resources.GetRemote $dataURL }} {{- with .Err}}

Unable to fetch data

{{- else }} {{ $data = . | transform.Unmarshal }} {{- end }} {{- end }} {{- $satisfaction := where $data "category" "eq" "satisfaction" }} {{- $performance := where $data "category" "eq" "performance" }} {{- $activity := where $data "category" "eq" "activity" }} {{- $collaboration := where $data "category" "eq" "collaboration" }} {{- $efficiency := where $data "category" "eq" "efficiency" }} {{- $space := slice $satisfaction $performance $activity $collaboration $efficiency }} {{- range $space -}} {{- $first := index . 0 -}} {{- $category := $first.category -}}

{{ strings.FirstUpper $category }} #

{{- range . -}} {{- end }}
Name Health Status
{{- $link := printf "%s#%s" $.Page.RelPermalink (anchorize .name) }} {{ .name }} {{- with .health.level -}} {{- partial "performance-indicators/health-level" . -}} {{- else }} Unknown {{- end -}} {{- with .health.reasons -}} {{- partial "performance-indicators/health-reasons" . -}} {{- end -}}
{{- end -}} {{- range $space -}} {{- $first := index . 0 -}} {{- $category := $first.category -}}

Metrics for {{ $category }} #

{{- range . -}} {{- $anchor := .name | anchorize -}}

{{ .name }} #

{{ .definition }}

Target: {{ .target }} Health: {{- with .health.level -}} {{- partial "performance-indicators/health-level" . -}} {{- else }} Unknown {{- end -}} {{- with .health.reasons -}} {{- partial "performance-indicators/health-reasons" . -}} {{- end -}}

{{- with .tableau_data -}}

{{- partial "performance-indicators/tableau-chart" (dict "data" . "open" true) -}}

{{ end }} {{- if .urls -}}

URL(s):

{{- end -}} {{- end -}} {{- end -}}