_performance_indicator.erb 4.84 KB
Newer Older
1
<%= performance_indicator.name %>
Eric Johnson's avatar
Eric Johnson committed
2

3 4 5 6 7

<% if performance_indicator.parent %>
   <p>This is a subset of an existing KPI. Please see <a href="<%=performance_indicator.parent=%>">the definition for the parent KPI.</a></p>
<% end %>

8
<p><%= performance_indicator.definition %></p>
Eric Johnson's avatar
Eric Johnson committed
9

Kenny Johnston's avatar
Kenny Johnston committed
10 11 12 13
<% if performance_indicator.funnel %>
  <p><b>Funnel Description:</b> <a href="<%= performance_indicator.funnel %>">Handbook Link</a></p>
<% end %>

14 15
<% if performance_indicator.product_analytics_type %>
  <p><b>SaaS/SM:</b> <%= performance_indicator.product_analytics_type %></p>
Jerome Ng's avatar
Jerome Ng committed
16 17
<% end %>

Eric Johnson's avatar
Eric Johnson committed
18 19 20
<% if performance_indicator.target %>
  <p><b>Target:</b> <%= performance_indicator.target %></p>
<% end %>
Jerome Ng's avatar
Jerome Ng committed
21 22 23 24

<% if performance_indicator.is_primary %>
  <p><b>Is Primary PI:</b> <%= performance_indicator.is_primary %></p>
<% end %>
Eric Johnson's avatar
Eric Johnson committed
25

emilie's avatar
emilie committed
26
<% if performance_indicator.public == false %>
emilie's avatar
emilie committed
27
  <p><b>This KPI cannot be public.</b> </p>
emilie's avatar
emilie committed
28 29
<% end %>

30 31 32 33 34
<% if performance_indicator.urls %>
  <b>URL(s)</b>
  <ul>
  <% performance_indicator.urls.each do |url| %>
    <li><a href="<%= url %>"><%= url %></a></li>
Kathleen Tam's avatar
Kathleen Tam committed
35
  <% end %>
36
  </ul>
37 38
<% end %>

39 40 41 42
<% if performance_indicator.metric_name %>
  <p><b>Metric Name:</b> <%= performance_indicator.metric_name %></p>
<% end %>

43
<% if performance_indicator.sisense_data %>
emilie's avatar
emilie committed
44 45
  <b>Chart</b>
    <% if performance_indicator.sisense_data.shared_dashboard%>
46
      (<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data.shared_dashboard %>" target="_blank">Sisense↗</a>)
emilie's avatar
emilie committed
47
    <% elsif performance_indicator.sisense_data.chart && performance_indicator.sisense_data.dashboard%>
48
      (<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data.dashboard %>/?widget=<%= performance_indicator.sisense_data.chart %>" target="_blank">Sisense↗</a>)
emilie's avatar
emilie committed
49
    <% end %>
50
  <% if ENV['PERISCOPE_EMBED_API_KEY'] %>
emilie's avatar
emilie committed
51
    <embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data) %>">
52
  <% else %>
emilie's avatar
emilie committed
53
    <p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
54
  <% end %>
55 56
<% end %>

Jerome Ng's avatar
Jerome Ng committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70
<% if performance_indicator.sisense_data_secondary %>
  <b>Secondary Chart</b>
    <% if performance_indicator.sisense_data_secondary.shared_dashboard%>
      (<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data_secondary.shared_dashboard %>">Sisense↗</a>)
    <% elsif performance_indicator.sisense_data_secondary.chart && performance_indicator.sisense_data_secondary.dashboard%>
      (<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data_secondary.dashboard %>/?widget=<%= performance_indicator.sisense_data_secondary.chart %>">Sisense↗</a>)
    <% end %>
  <% if ENV['PERISCOPE_EMBED_API_KEY'] %>
    <embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data_secondary) %>">
  <% else %>
    <p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
  <% end %>
<% end %>

Mathieu Peychet's avatar
Mathieu Peychet committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
<% if performance_indicator.sisense_data_tertiary %>
  <b>Tertiary Chart</b>
    <% if performance_indicator.sisense_data_tertiary.shared_dashboard%>
      (<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data_tertiary.shared_dashboard %>">Sisense↗</a>)
    <% elsif performance_indicator.sisense_data_tertiary.chart && performance_indicator.sisense_data_tertiary.dashboard%>
      (<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data_tertiary.dashboard %>/?widget=<%= performance_indicator.sisense_data_tertiary.chart %>">Sisense↗</a>)
    <% end %>
  <% if ENV['PERISCOPE_EMBED_API_KEY'] %>
    <embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data_tertiary) %>">
  <% else %>
    <p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
  <% end %>
<% end %>

<b>Health: <%= color_code_health(performance_indicator.health.level) %></b>

<% performance_indicator.health.reasons.each do |reason| %>
<%="  * #{reason}"%>
<% end %>
90

91
<% if performance_indicator.implementation %>
92 93 94 95
  <b>Implementation Status:</b> <%= performance_indicator.implementation.status %>
  
  <% if performance_indicator.implementation.reasons %>
    <% performance_indicator.implementation.reasons.each do |reason| %>
Sam Kerr's avatar
Sam Kerr committed
96
<%="  * #{reason}"%>
97 98
    <% end %>
  <% end %>
David DeSanto's avatar
David DeSanto committed
99
<% end %>
100

101
<% if performance_indicator.lessons %>
David DeSanto's avatar
David DeSanto committed
102
<b>Lessons Learned (<%= Date::MONTHNAMES[Date.today.prev_month.month] %>):</b>
103

104
<% performance_indicator.lessons.learned.each do |reason| %>
105 106
<%="  * #{reason}"%>
<% end %>
David DeSanto's avatar
David DeSanto committed
107
<% end %>
108 109


110
<% if performance_indicator.monthly_focus %>
David DeSanto's avatar
David DeSanto committed
111
<b>Focus This Month (<%= Date::MONTHNAMES[Date.today.month] %>):</b>
112

113
<% performance_indicator.monthly_focus.goals.each do |reason| %>
114
<%="  * #{reason}"%>
David DeSanto's avatar
David DeSanto committed
115 116
<% end %>
<% end %>