Skip to content

Commit

Permalink
Implement row selectors in linear dashboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjsonic authored and tgsoverly committed Sep 23, 2024
1 parent 7b06e49 commit 602a997
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 11 deletions.
13 changes: 9 additions & 4 deletions dashboard/issue-flow-distribution/charts.visivo.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
includes:
- path: "models.visivo.yml"
charts:
- name: issues-distribution-daily
#{% set cohorts = ['All Time', 'Last 90 Days'] %}
#{% for cohort in cohorts %}
- name: "issues-distribution-daily-{{cohort}}"
traces:
#{% set states = ['Triage', 'Backlog', 'Todo', 'On Deck', 'In Progress', 'In Review', 'Canceled', 'Done'] %}
#{% set state_colors = ['#FC7840','#bec2c8','#e2e2e2','#db6e1f','#f2c94c','#0f783c','#95a2b3','#5e6ad2'] %}
#{% for state in states|reverse %}
- name: issue-distribution-{{state}}
- name: issue-distribution-{{state}}-{{cohort}}
model: ref(issues-stages-daily)
cohort_on: "'{{state}}'"
props:
Expand All @@ -23,11 +25,14 @@ charts:
- query(issues desc)
filters:
- query(stage_name = '{{state}}' )

#{% if cohort == 'Last 90 Days' %}
- query(as_of_date >= dateadd('day', -90, sysdate()::date))
#{% endif %}
#{% endfor %}
layout:
title:
text: Issues Distribution
text: "Issues Distribution {{cohort}}"
#{% endfor %}


- name: sankey-chart
Expand Down
36 changes: 29 additions & 7 deletions project.visivo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,56 @@ selectors:
options:
- ref(time-to-triage-all-time)
- ref(time-to-triage-last-ninety-days)
- name: issue-flow-distribution-selector
type: single
options:
- ref(All Time)
- ref(Last 90 Days)

dashboards:
- name: Linear Dashboard
rows:
- height: compact
items:
- selector: ref(big-number-selector)
- selector: ref(issue-flow-distribution-selector)
- height: small
items:
- chart: ref(Hours To Triage)
- chart: ref(Hours Triage To Start)
- chart: ref(Hours Start To Completed)
- chart: ref(Issues Created Per Week)
- chart: ref(Issues Completed Per Week)
- height: medium
items:
- chart: ref(issues-created-total-over-time)
- chart: ref(issues-completed-total-over-time)
- chart: ref(time-to-complete-total-over-time)
- height: large
- name: All Time
height: large
items:
- chart: ref(issues-distribution-daily-All Time)
- chart: ref(sankey-chart)
- name: Last 90 Days
height: large
items:
- chart: ref(issues-distribution-daily)
- chart: ref(issues-distribution-daily-Last 90 Days)
- chart: ref(sankey-chart)
- height: compact
items:
- selector:
type: single
options:
- ref(Issue Metrics Totals)
- ref(Monthly Issue Metrics Broken Out By User)

- height: medium
name: Monthly Issue Metrics Broken Out By User
items:
- chart: ref(issues-created-per-user-over-time)
- chart: ref(issues-completed-per-user-over-time)
- chart: ref(time-to-complete-per-user-over-time)
- height: medium
name: Issue Metrics Totals
items:
- chart: ref(issues-created-total-over-time)
- chart: ref(issues-completed-total-over-time)
- chart: ref(time-to-complete-total-over-time)



Expand Down

0 comments on commit 602a997

Please sign in to comment.